C# Class SharpTox.Core.ToxId

Represents a Tox ID (38 bytes long)
Afficher le fichier Open project: hexafluoride/Detox Class Usage Examples

Private Properties

Свойство Type Description
CalcChecksum ushort
ToxId System
ToxId System

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsValid ( byte id ) : bool

Checks whether or not the given Tox ID is valid.

IsValid ( string id ) : bool

Checks whether or not the given Tox ID is valid.

ToString ( ) : string
ToxId ( byte id ) : System

Initializes a new instance of the ToxId class.

ToxId ( string id ) : System

Initializes a new instance of the ToxId class.

operator ( ) : bool

Private Methods

Méthode Description
CalcChecksum ( byte address, int length ) : ushort
ToxId ( byte publicKey, uint nospam ) : System
ToxId ( string publicKey, uint nospam ) : System

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsValid() public static méthode

Checks whether or not the given Tox ID is valid.
public static IsValid ( byte id ) : bool
id byte A byte array with a length of ToxConstant.AddressSize, containing a Tox ID.
Résultat bool

IsValid() public static méthode

Checks whether or not the given Tox ID is valid.
public static IsValid ( string id ) : bool
id string A (ToxConstant.AddressSize * 2) character long hexadecimal string, containing a Tox ID.
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

ToxId() public méthode

Initializes a new instance of the ToxId class.
public ToxId ( byte id ) : System
id byte A byte array with a length of ToxConstant.AddressSize, containing a Tox ID.
Résultat System

ToxId() public méthode

Initializes a new instance of the ToxId class.
public ToxId ( string id ) : System
id string A (ToxConstant.AddressSize * 2) character long hexadecimal string, containing a Tox ID.
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool