C# Класс Cryptid.Candidate

This class holds all an ID holders information. In the case of this project, candidate is synonomyous with ID holder and client.
Наследование: IPackable, IUnpackable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
IsComplete bool

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IsComplete ( ) : bool

Описание методов

Deserialize() публичный статический Метод

Gets the Candidate object from the MessagePack object bytes
public static Deserialize ( byte b ) : Candidate
b byte The MessagePack object bytes
Результат Candidate

GetEyeColor() публичный Метод

Gets the EyeColor enum from a string representing the eye color
public GetEyeColor ( string s ) : EyeColor
s string
Результат EyeColor

PackToMessage() публичный Метод

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
Результат void

Serialize() публичный Метод

Serializes the candidate to a MessagePack object
public Serialize ( ) : byte[]
Результат byte[]

UnpackFromMessage() публичный Метод

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
Результат void