ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Abstract class representing generic data operations. More...
Public Member Functions | |
object | GetObject (TKey k) |
Abstract method to get an object based on the provided key. | |
sbyte | GetSByte (TKey k, sbyte defaultValue=0) |
Gets a signed byte value associated with the provided key. | |
byte | GetByte (TKey k, byte defaultValue=0) |
Gets a byte value associated with the provided key. | |
short | GetShort (TKey k, short defaultValue=0) |
Gets a short value associated with the provided key. | |
ushort | GetUShort (TKey k, ushort defaultValue=0) |
Gets an unsigned short value associated with the provided key. | |
int | GetInt (TKey k, int defaultValue=0) |
Gets an int value associated with the provided key. | |
uint | GetUInt (TKey k, uint defaultValue=0) |
Gets an unsigned int value associated with the provided key. | |
float | GetFloat (TKey k, float defaultValue=0) |
Gets a float value associated with the provided key. | |
long | GetLong (TKey k, long defaultValue=0) |
Gets a long value associated with the provided key. | |
ulong | GetULong (TKey k, ulong defaultValue=0) |
Gets an unsigned long value associated with the provided key. | |
double | GetDouble (TKey k, double defaultValue=0) |
Gets a double value associated with the provided key. | |
bool | GetBool (TKey k, bool defaultValue=false) |
Gets a boolean value associated with the provided key. | |
string | GetString (TKey k, string defaultValue=null) |
Gets a string value associated with the provided key. | |
object | GetObject (TKey k, object defaultValue=null) |
Gets an object associated with the provided key. | |
T[] | GetArray< T > (TKey k, T[] defaultValue=null) |
Gets an array of a specified type associated with the provided key. | |
System.Collections.Generic.IList< T > | GetList< T > (TKey k, System.Collections.Generic.IList< T > defaultValue=null) |
Gets a list of a specified type associated with the provided key. | |
System.Collections.Generic.IDictionary< string, TObject > | GetDictionary< TObject > (TKey k, System.Collections.Generic.IDictionary< string, TObject > defaultValue=null) |
Gets a dictionary of a specified type associated with the provided key. | |
GNArray | GetGNArray (TKey k, GNArray defaultValue=null) |
Gets a GNArray object associated with the provided key. | |
GNHashtable | GetGNHashtable (TKey k, GNHashtable defaultValue=null) |
Gets a GNHashtable object associated with the provided key. | |
object | ToData () |
Abstract method to convert the data to an object. | |
Public Member Functions inherited from XmobiTea.Data.IGNData |
Protected Member Functions | |
object | CreateUseDataFromOriginData (object value) |
Creates data that can be used from the original data. | |
object | CreateDataFromUseData (object value) |
Converts the use data back into its original form. | |
object | CustomGet (TKey k) |
Custom method to retrieve an object based on the key and its type. | |
Abstract class representing generic data operations.
TKey | The type of the key used to access data. |
|
protected |
Converts the use data back into its original form.
value | The data used in the application. |
|
protected |
Creates data that can be used from the original data.
value | The original data value. |
|
protected |
Custom method to retrieve an object based on the key and its type.
k | The key to retrieve the object. |
T[] XmobiTea.Data.GNData< TKey >.GetArray< T > | ( | TKey | k, |
T[] | defaultValue = null ) |
Gets an array of a specified type associated with the provided key.
T | The type of elements in the array. |
k | The key to retrieve the array. |
defaultValue | The default array if the key does not exist. |
bool XmobiTea.Data.GNData< TKey >.GetBool | ( | TKey | k, |
bool | defaultValue = false ) |
Gets a boolean value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
byte XmobiTea.Data.GNData< TKey >.GetByte | ( | TKey | k, |
byte | defaultValue = 0 ) |
Gets a byte value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
System.Collections.Generic.IDictionary< string, TObject > XmobiTea.Data.GNData< TKey >.GetDictionary< TObject > | ( | TKey | k, |
System.Collections.Generic.IDictionary< string, TObject > | defaultValue = null ) |
Gets a dictionary of a specified type associated with the provided key.
TObject | The type of values in the dictionary. |
k | The key to retrieve the dictionary. |
defaultValue | The default dictionary if the key does not exist. |
double XmobiTea.Data.GNData< TKey >.GetDouble | ( | TKey | k, |
double | defaultValue = 0 ) |
Gets a double value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
float XmobiTea.Data.GNData< TKey >.GetFloat | ( | TKey | k, |
float | defaultValue = 0 ) |
Gets a float value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
GNArray XmobiTea.Data.GNData< TKey >.GetGNArray | ( | TKey | k, |
GNArray | defaultValue = null ) |
GNHashtable XmobiTea.Data.GNData< TKey >.GetGNHashtable | ( | TKey | k, |
GNHashtable | defaultValue = null ) |
Gets a GNHashtable object associated with the provided key.
k | The key to retrieve the GNHashtable. |
defaultValue | The default GNHashtable if the key does not exist. |
int XmobiTea.Data.GNData< TKey >.GetInt | ( | TKey | k, |
int | defaultValue = 0 ) |
Gets an int value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
System.Collections.Generic.IList< T > XmobiTea.Data.GNData< TKey >.GetList< T > | ( | TKey | k, |
System.Collections.Generic.IList< T > | defaultValue = null ) |
Gets a list of a specified type associated with the provided key.
T | The type of elements in the list. |
k | The key to retrieve the list. |
defaultValue | The default list if the key does not exist. |
long XmobiTea.Data.GNData< TKey >.GetLong | ( | TKey | k, |
long | defaultValue = 0 ) |
Gets a long value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
|
abstract |
Abstract method to get an object based on the provided key.
k | The key to retrieve the object. |
object XmobiTea.Data.GNData< TKey >.GetObject | ( | TKey | k, |
object | defaultValue = null ) |
Gets an object associated with the provided key.
k | The key to retrieve the object. |
defaultValue | The default object if the key does not exist. |
sbyte XmobiTea.Data.GNData< TKey >.GetSByte | ( | TKey | k, |
sbyte | defaultValue = 0 ) |
Gets a signed byte value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
short XmobiTea.Data.GNData< TKey >.GetShort | ( | TKey | k, |
short | defaultValue = 0 ) |
Gets a short value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
string XmobiTea.Data.GNData< TKey >.GetString | ( | TKey | k, |
string | defaultValue = null ) |
Gets a string value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
uint XmobiTea.Data.GNData< TKey >.GetUInt | ( | TKey | k, |
uint | defaultValue = 0 ) |
Gets an unsigned int value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
ulong XmobiTea.Data.GNData< TKey >.GetULong | ( | TKey | k, |
ulong | defaultValue = 0 ) |
Gets an unsigned long value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
ushort XmobiTea.Data.GNData< TKey >.GetUShort | ( | TKey | k, |
ushort | defaultValue = 0 ) |
Gets an unsigned short value associated with the provided key.
k | The key to retrieve the value. |
defaultValue | The default value if the key does not exist. |
|
abstract |
Abstract method to convert the data to an object.
Implements XmobiTea.Data.IGNData.