Property | Type | Description | |
---|---|---|---|
Categories | string>.Dictionary |
Method | Description | |
---|---|---|
CheckServerReply ( WWW www ) : bool |
Check if a reply from the server was accepted. All response codes from 200 to 299 are accepted.
|
|
CreateMD5Hash ( string input ) : string |
Encodes the input as a MD5 hash
|
|
CreateSha1Hash ( string input ) : string |
Encodes the input as a sha1 hash
|
|
DictToJson ( List |
Dicts to json. This function is 35% faster than the LitJson library.
|
|
GetBaseURL ( bool inclVersion ) : string |
Gets the base url to the GA server
|
|
GetPrivateKey ( ) : string | ||
GetURL ( string category, string pubKey ) : string |
Gets the url on the GA server matching the specific service we are interested in
|
|
SetupKeys ( string publicKey, string privateKey ) : void |
Sets the users public and private keys for the GA server
|
|
Submit ( Dictionary |
Takes a dictionary with a item list for each category type. All items in each category are submitted together to the GA server.
|
|
SubmitQueue ( List |
Devides a list of messages into categories and calls Submit to send the messages to the GA servers.
|
Method | Description | |
---|---|---|
GetUrlStart ( ) : string |
public CheckServerReply ( WWW www ) : bool | ||
www | WWW | /// The www object which contains response headers /// |
return | bool |
public CreateMD5Hash ( string input ) : string | ||
input | string |
/// The input we want encoded |
return | string |
public CreateSha1Hash ( string input ) : string | ||
input | string |
/// The input we want to encoded |
return | string |
public static DictToJson ( List |
||
list | List |
/// List. /// |
return | string |
public GetBaseURL ( bool inclVersion ) : string | ||
inclVersion | bool |
/// Should the version be included? |
return | string |
public GetURL ( string category, string pubKey ) : string | ||
category | string |
/// Determines the GA service/category |
pubKey | string | |
return | string |
public SetupKeys ( string publicKey, string privateKey ) : void | ||
publicKey | string |
/// The public key which identifies this users game |
privateKey | string |
/// The private key used to encode messages |
return | void |
public Submit ( Dictionary |
||
categories | Dictionary |
|
successEvent | SubmitSuccessHandler |
/// If successful this will be fired |
errorEvent | SubmitErrorHandler |
/// If an error occurs this will be fired |
gaTracking | bool | |
pubKey | string | |
priKey | string | |
return | IEnumerator |
public SubmitQueue ( List |
||
queue | List |
|
successEvent | SubmitSuccessHandler |
/// If successful this will be fired |
errorEvent | SubmitErrorHandler |
/// If an error occurs this will be fired |
gaTracking | bool | |
pubKey | string | |
priKey | string | |
return | void |