C# 클래스 GA_Submit, TheUnseen

파일 보기 프로젝트 열기: henryj41043/TheUnseen 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Categories string>.Dictionary

공개 메소드들

메소드 설명
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 list ) : string

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 categories, SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent, bool gaTracking, string pubKey, string priKey ) : IEnumerator

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 queue, SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent, bool gaTracking, string pubKey, string priKey ) : void

Devides a list of messages into categories and calls Submit to send the messages to the GA servers.

비공개 메소드들

메소드 설명
GetUrlStart ( ) : string

메소드 상세

CheckServerReply() 공개 메소드

Check if a reply from the server was accepted. All response codes from 200 to 299 are accepted.
public CheckServerReply ( WWW www ) : bool
www WWW /// The www object which contains response headers ///
리턴 bool

CreateMD5Hash() 공개 메소드

Encodes the input as a MD5 hash
public CreateMD5Hash ( string input ) : string
input string /// The input we want encoded ///
리턴 string

CreateSha1Hash() 공개 메소드

Encodes the input as a sha1 hash
public CreateSha1Hash ( string input ) : string
input string /// The input we want to encoded ///
리턴 string

DictToJson() 공개 정적인 메소드

Dicts to json. This function is 35% faster than the LitJson library.
public static DictToJson ( List list ) : string
list List /// List. ///
리턴 string

GetBaseURL() 공개 메소드

Gets the base url to the GA server
public GetBaseURL ( bool inclVersion ) : string
inclVersion bool /// Should the version be included? ///
리턴 string

GetPrivateKey() 공개 메소드

public GetPrivateKey ( ) : string
리턴 string

GetURL() 공개 메소드

Gets the url on the GA server matching the specific service we are interested in
public GetURL ( string category, string pubKey ) : string
category string /// Determines the GA service/category ///
pubKey string
리턴 string

SetupKeys() 공개 메소드

Sets the users public and private keys for the GA server
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 ///
리턴 void

Submit() 공개 메소드

Takes a dictionary with a item list for each category type. All items in each category are submitted together to the GA server.
public Submit ( Dictionary categories, SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent, bool gaTracking, string pubKey, string priKey ) : IEnumerator
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
리턴 IEnumerator

SubmitQueue() 공개 메소드

Devides a list of messages into categories and calls Submit to send the messages to the GA servers.
public SubmitQueue ( List queue, SubmitSuccessHandler successEvent, SubmitErrorHandler errorEvent, bool gaTracking, string pubKey, string priKey ) : void
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
리턴 void

프로퍼티 상세

Categories 공개적으로 프로퍼티

All the different types of GA services
public Dictionary Categories
리턴 string>.Dictionary