C# Class Senseix.Message.Request

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: senseix/thinksy_unity_plugin Class Usage Examples

Méthodes publiques

Méthode Description
BugReport ( string deviceID, string report ) : IEnumerator
CoroutinePostRequest ( ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url, bool isGet ) : IEnumerator
CoroutinePostRequest ( WWW recvResult, ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url ) : IEnumerator
CoroutinePostRequest ( object parametersObject ) : IEnumerator
GetEncouragements ( string player_id ) : IEnumerator
GetEnrollGameURL ( ) : string
GetPlayerRank ( string PlayerId ) : IEnumerator

Stores a Players rank and Players surrounding it based on the call preferences. By default we only return the Players rank and score.

GetProblems ( string player_id, UInt32 count ) : IEnumerator
GetSingletonInstance ( ) : Request
GetSpecifiedProblems ( string player_id, LearningAction specifyingLearningAction, UInt32 count ) : IEnumerator
HandleResult ( WWW recvResult, ResponseHandlerDelegate resultHandler ) : void
IsInSecretStagingMode ( ) : bool
LeaderboardPage ( UInt32 pageNumber, Leaderboard sortBy, UInt32 pageSize ) : void

Returns a page from the Leaderboard with the request parameters, by default 25 entries are are returned per page.

ListPlayerItems ( string playerId ) : IEnumerator
ListPlayers ( ) : IEnumerator
NetworkErrorChecking ( WWW recvResult ) : bool

Returns false for an error, or true for no errors.

PostProblems ( string PlayerId, Queue problems ) : IEnumerator

Posts a list of Problems that have been answered or skipped by the Player to the server. This is mainly for internal use/developers should not have to worry about this.

RegisterDevice ( ) : IEnumerator

Registers the device with the Senseix server, allows a temporary account to be created and the Player to begin playing without logging in. Once an account is registered or created the temporary account is transitioned into a permanent one.

RegisterPlayer ( string player_id ) : IEnumerator

This should be called each time a new Player is selected. It will add this game to a list of played games for the Player and add them to things like the game's Leaderboard.

SecretStagingSwap ( int tapOrder ) : void
SendParentEmail ( string recruitmentEmail ) : IEnumerator
SetUpRecvResult ( ProtoBuf serializableRequest, string url, bool isGet ) : WWW
SubmitProblemPostCache ( ) : IEnumerator
UpdatePlayerScore ( string playerId, UInt32 score ) : IEnumerator

Pushes a Players score to the Leaderboard, this is dependent on the developer to take care of what "score" really means in their application.

VerifyGame ( string verificationCode ) : IEnumerator

Adds the temporary verification code to the server. When the user enters the verificationCode on the Senseix website now, it will be able to link this game with the user's account.

Private Methods

Méthode Description
HandleNonerrorResponse ( byte responseBytes, ResponseHandlerDelegate resultHandler ) : void
SetPlayerForProblemIfNeeded ( Senseix &problemPostBuilder ) : void
WaitForRequest ( WWW recvResult ) : IEnumerator
WriteRequestToCache ( PostRequestParameters parameters ) : void

Method Details

BugReport() public static méthode

public static BugReport ( string deviceID, string report ) : IEnumerator
deviceID string
report string
Résultat IEnumerator

CoroutinePostRequest() public static méthode

public static CoroutinePostRequest ( ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url, bool isGet ) : IEnumerator
serializableRequest ProtoBuf
responseHandler ResponseHandlerDelegate
url string
isGet bool
Résultat IEnumerator

CoroutinePostRequest() public static méthode

public static CoroutinePostRequest ( WWW recvResult, ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url ) : IEnumerator
recvResult UnityEngine.WWW
serializableRequest ProtoBuf
responseHandler ResponseHandlerDelegate
url string
Résultat IEnumerator

CoroutinePostRequest() public static méthode

public static CoroutinePostRequest ( object parametersObject ) : IEnumerator
parametersObject object
Résultat IEnumerator

GetEncouragements() public static méthode

public static GetEncouragements ( string player_id ) : IEnumerator
player_id string
Résultat IEnumerator

GetEnrollGameURL() public static méthode

public static GetEnrollGameURL ( ) : string
Résultat string

GetPlayerRank() public static méthode

Stores a Players rank and Players surrounding it based on the call preferences. By default we only return the Players rank and score.
public static GetPlayerRank ( string PlayerId ) : IEnumerator
PlayerId string
Résultat IEnumerator

GetProblems() public static méthode

public static GetProblems ( string player_id, UInt32 count ) : IEnumerator
player_id string
count System.UInt32
Résultat IEnumerator

GetSingletonInstance() public static méthode

public static GetSingletonInstance ( ) : Request
Résultat Request

GetSpecifiedProblems() public static méthode

public static GetSpecifiedProblems ( string player_id, LearningAction specifyingLearningAction, UInt32 count ) : IEnumerator
player_id string
specifyingLearningAction LearningAction
count System.UInt32
Résultat IEnumerator

HandleResult() public static méthode

public static HandleResult ( WWW recvResult, ResponseHandlerDelegate resultHandler ) : void
recvResult UnityEngine.WWW
resultHandler ResponseHandlerDelegate
Résultat void

IsInSecretStagingMode() public static méthode

public static IsInSecretStagingMode ( ) : bool
Résultat bool

LeaderboardPage() public static méthode

Returns a page from the Leaderboard with the request parameters, by default 25 entries are are returned per page.
public static LeaderboardPage ( UInt32 pageNumber, Leaderboard sortBy, UInt32 pageSize ) : void
pageNumber System.UInt32
sortBy Leaderboard
pageSize System.UInt32
Résultat void

ListPlayerItems() public static méthode

public static ListPlayerItems ( string playerId ) : IEnumerator
playerId string
Résultat IEnumerator

ListPlayers() public static méthode

public static ListPlayers ( ) : IEnumerator
Résultat IEnumerator

NetworkErrorChecking() public static méthode

Returns false for an error, or true for no errors.
public static NetworkErrorChecking ( WWW recvResult ) : bool
recvResult UnityEngine.WWW
Résultat bool

PostProblems() public static méthode

Posts a list of Problems that have been answered or skipped by the Player to the server. This is mainly for internal use/developers should not have to worry about this.
public static PostProblems ( string PlayerId, Queue problems ) : IEnumerator
PlayerId string
problems System.Collections.Queue
Résultat IEnumerator

RegisterDevice() public static méthode

Registers the device with the Senseix server, allows a temporary account to be created and the Player to begin playing without logging in. Once an account is registered or created the temporary account is transitioned into a permanent one.
public static RegisterDevice ( ) : IEnumerator
Résultat IEnumerator

RegisterPlayer() public static méthode

This should be called each time a new Player is selected. It will add this game to a list of played games for the Player and add them to things like the game's Leaderboard.
public static RegisterPlayer ( string player_id ) : IEnumerator
player_id string
Résultat IEnumerator

SecretStagingSwap() public méthode

public SecretStagingSwap ( int tapOrder ) : void
tapOrder int
Résultat void

SendParentEmail() public static méthode

public static SendParentEmail ( string recruitmentEmail ) : IEnumerator
recruitmentEmail string
Résultat IEnumerator

SetUpRecvResult() public static méthode

public static SetUpRecvResult ( ProtoBuf serializableRequest, string url, bool isGet ) : WWW
serializableRequest ProtoBuf
url string
isGet bool
Résultat UnityEngine.WWW

SubmitProblemPostCache() public static méthode

public static SubmitProblemPostCache ( ) : IEnumerator
Résultat IEnumerator

UpdatePlayerScore() public static méthode

Pushes a Players score to the Leaderboard, this is dependent on the developer to take care of what "score" really means in their application.
public static UpdatePlayerScore ( string playerId, UInt32 score ) : IEnumerator
playerId string
score System.UInt32
Résultat IEnumerator

VerifyGame() public static méthode

Adds the temporary verification code to the server. When the user enters the verificationCode on the Senseix website now, it will be able to link this game with the user's account.
public static VerifyGame ( string verificationCode ) : IEnumerator
verificationCode string
Résultat IEnumerator