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
파일 보기 프로젝트 열기: CryptidID/Cryptid 1 사용 예제들

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