C# Класс Senseix.Message.Request

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HandleNonerrorResponse ( byte responseBytes, ResponseHandlerDelegate resultHandler ) : void
SetPlayerForProblemIfNeeded ( Senseix &problemPostBuilder ) : void
WaitForRequest ( WWW recvResult ) : IEnumerator
WriteRequestToCache ( PostRequestParameters parameters ) : void

Описание методов

BugReport() публичный статический Метод

public static BugReport ( string deviceID, string report ) : IEnumerator
deviceID string
report string
Результат IEnumerator

CoroutinePostRequest() публичный статический Метод

public static CoroutinePostRequest ( ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url, bool isGet ) : IEnumerator
serializableRequest ProtoBuf
responseHandler ResponseHandlerDelegate
url string
isGet bool
Результат IEnumerator

CoroutinePostRequest() публичный статический Метод

public static CoroutinePostRequest ( WWW recvResult, ProtoBuf serializableRequest, ResponseHandlerDelegate responseHandler, string url ) : IEnumerator
recvResult UnityEngine.WWW
serializableRequest ProtoBuf
responseHandler ResponseHandlerDelegate
url string
Результат IEnumerator

CoroutinePostRequest() публичный статический Метод

public static CoroutinePostRequest ( object parametersObject ) : IEnumerator
parametersObject object
Результат IEnumerator

GetEncouragements() публичный статический Метод

public static GetEncouragements ( string player_id ) : IEnumerator
player_id string
Результат IEnumerator

GetEnrollGameURL() публичный статический Метод

public static GetEnrollGameURL ( ) : string
Результат string

GetPlayerRank() публичный статический Метод

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
Результат IEnumerator

GetProblems() публичный статический Метод

public static GetProblems ( string player_id, UInt32 count ) : IEnumerator
player_id string
count System.UInt32
Результат IEnumerator

GetSingletonInstance() публичный статический Метод

public static GetSingletonInstance ( ) : Request
Результат Request

GetSpecifiedProblems() публичный статический Метод

public static GetSpecifiedProblems ( string player_id, LearningAction specifyingLearningAction, UInt32 count ) : IEnumerator
player_id string
specifyingLearningAction LearningAction
count System.UInt32
Результат IEnumerator

HandleResult() публичный статический Метод

public static HandleResult ( WWW recvResult, ResponseHandlerDelegate resultHandler ) : void
recvResult UnityEngine.WWW
resultHandler ResponseHandlerDelegate
Результат void

IsInSecretStagingMode() публичный статический Метод

public static IsInSecretStagingMode ( ) : bool
Результат bool

LeaderboardPage() публичный статический Метод

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
Результат void

ListPlayerItems() публичный статический Метод

public static ListPlayerItems ( string playerId ) : IEnumerator
playerId string
Результат IEnumerator

ListPlayers() публичный статический Метод

public static ListPlayers ( ) : IEnumerator
Результат IEnumerator

NetworkErrorChecking() публичный статический Метод

Returns false for an error, or true for no errors.
public static NetworkErrorChecking ( WWW recvResult ) : bool
recvResult UnityEngine.WWW
Результат bool

PostProblems() публичный статический Метод

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
Результат IEnumerator

RegisterDevice() публичный статический Метод

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
Результат IEnumerator

RegisterPlayer() публичный статический Метод

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
Результат IEnumerator

SecretStagingSwap() публичный Метод

public SecretStagingSwap ( int tapOrder ) : void
tapOrder int
Результат void

SendParentEmail() публичный статический Метод

public static SendParentEmail ( string recruitmentEmail ) : IEnumerator
recruitmentEmail string
Результат IEnumerator

SetUpRecvResult() публичный статический Метод

public static SetUpRecvResult ( ProtoBuf serializableRequest, string url, bool isGet ) : WWW
serializableRequest ProtoBuf
url string
isGet bool
Результат UnityEngine.WWW

SubmitProblemPostCache() публичный статический Метод

public static SubmitProblemPostCache ( ) : IEnumerator
Результат IEnumerator

UpdatePlayerScore() публичный статический Метод

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
Результат IEnumerator

VerifyGame() публичный статический Метод

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
Результат IEnumerator