Method | Description | |
---|---|---|
Equals ( object obj ) : bool |
Determines whether the specified System.Object, is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
Load ( |
Loads in data from the specified game info
|
|
Load ( byte secret ) : void |
Loads in data from the raw secret data provided
|
|
Load ( string secret ) : void |
Loads in data from the secret string provided
|
|
ToBytes ( ) : byte[] |
Gets the raw secret data as a byte array
|
|
ToString ( ) : string |
Returns a string that represents the current secret. ToString will format the secret as it would be represented in the games. Internally, this method calls ToBytes and passes the result to SecretParser.CreateString. |
Method | Description | |
---|---|---|
BinaryStringToByteArray ( string data ) : byte[] |
Converts a binary string (i.e. a string of ones and zeros) to a byte array
|
|
ByteArrayToBinaryString ( byte secret ) : string |
Converts a byte array to a string representation of ones and zeros
|
|
CalculateChecksum ( byte secret ) : byte |
Calculates the checksum for the specified secret
|
|
DecodeBytes ( byte secret ) : byte[] |
Takes an encoded secret, as used by the games, and decodes it.
|
|
EncodeBytes ( byte data ) : byte[] |
Takes a raw, unencoded secret and encodes it.
|
|
NotifyPropertyChanged ( string propertyName ) : void |
Sends a notification that a property has changed.
|
protected BinaryStringToByteArray ( string data ) : byte[] | ||
data | string | The binary string |
return | byte[] |
protected ByteArrayToBinaryString ( byte secret ) : string | ||
secret | byte | The secret. |
return | string |
protected CalculateChecksum ( byte secret ) : byte | ||
secret | byte | The secret |
return | byte |
protected DecodeBytes ( byte secret ) : byte[] | ||
secret | byte | The encoded secret. |
return | byte[] |
protected EncodeBytes ( byte data ) : byte[] | ||
data | byte | The secret data. |
return | byte[] |
public Equals ( object obj ) : bool | ||
obj | object | The |
return | bool |
public abstract Load ( |
||
info | The game info | |
return | void |
public abstract Load ( byte secret ) : void | ||
secret | byte | The raw secret data |
return | void |
protected NotifyPropertyChanged ( string propertyName ) : void | ||
propertyName | string | Name of the property. |
return | void |