C# Class Cryptid.Candidate

This class holds all an ID holders information. In the case of this project, candidate is synonomyous with ID holder and client.
Inheritance: IPackable, IUnpackable
Datei anzeigen Open project: CryptidID/Cryptid Class Usage Examples

Private Properties

Property Type Description
IsComplete bool

Public Methods

Method Description
Deserialize ( byte b ) : Candidate

Gets the Candidate object from the MessagePack object bytes

GetEyeColor ( string s ) : EyeColor

Gets the EyeColor enum from a string representing the eye color

PackToMessage ( Packer packer, MsgPack.PackingOptions options ) : void

Packs the candidate to a MessagePack objects This method should not be called directly, use serialize instead.

Serialize ( ) : byte[]

Serializes the candidate to a MessagePack object

UnpackFromMessage ( Unpacker unpacker ) : void

Unpacks the message from a MessagePack object This method should not be called directly, use deserialize instead.

Private Methods

Method Description
IsComplete ( ) : bool

Method Details

Deserialize() public static method

Gets the Candidate object from the MessagePack object bytes
public static Deserialize ( byte b ) : Candidate
b byte The MessagePack object bytes
return Candidate

GetEyeColor() public method

Gets the EyeColor enum from a string representing the eye color
public GetEyeColor ( string s ) : EyeColor
s string
return EyeColor

PackToMessage() public method

Packs the candidate to a MessagePack objects This method should not be called directly, use serialize instead.
public PackToMessage ( Packer packer, MsgPack.PackingOptions options ) : void
packer MsgPack.Packer The packer
options MsgPack.PackingOptions The packer options
return void

Serialize() public method

Serializes the candidate to a MessagePack object
public Serialize ( ) : byte[]
return byte[]

UnpackFromMessage() public method

Unpacks the message from a MessagePack object This method should not be called directly, use deserialize instead.
public UnpackFromMessage ( Unpacker unpacker ) : void
unpacker MsgPack.Unpacker The unpacker
return void