C# 클래스 Senseix.Message.Request

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: senseix/thinksy_unity_plugin 1 사용 예제들

공개 메소드들

메소드 설명
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