C# Class WebSocketServer.CardSet

Represents the set of cards in the game.
Show file Open project: qJake/planning-poker Class Usage Examples

Public Properties

Property Type Description
_instance CardSet

Public Methods

Method Description
ApplyNewCards ( string cardList ) : void

Applies a new list of cards to the stored cardset.

ToHumanString ( ) : string

Returns a comma-separated list of card values, with a space in-between.

ToString ( ) : string

Returns a comma-separated list of card values.

Private Methods

Method Description
CardSet ( ) : System.Collections.Generic

Private constructor. To create a new cardset, call ApplyNewCards().

Method Details

ApplyNewCards() public method

Applies a new list of cards to the stored cardset.
public ApplyNewCards ( string cardList ) : void
cardList string The new list of string values to use for the new cards.
return void

ToHumanString() public method

Returns a comma-separated list of card values, with a space in-between.
public ToHumanString ( ) : string
return string

ToString() public method

Returns a comma-separated list of card values.
public ToString ( ) : string
return string

Property Details

_instance public static property

Where the instance is stored.
public static CardSet,WebSocketServer _instance
return CardSet