29 JoinSessionButton.interactable =
false;
30 EndSessionButton.interactable =
false;
31 SendEventButton.interactable =
false;
36 JoinSessionButton.interactable =
true;
37 EndSessionButton.interactable =
false;
38 SendEventButton.interactable =
false;
43 JoinSessionButton.interactable =
false;
44 EndSessionButton.interactable =
false;
45 SendEventButton.interactable =
false;
50 Debug.Log(
"We joined a session!");
51 EndSessionButton.interactable =
true;
52 SendEventButton.interactable =
true;
57 EndSessionButton.interactable =
false;
58 SendEventButton.interactable =
false;
63 Debug.Log(
"We completed a session!");
64 EndSessionButton.interactable =
false;
65 SendEventButton.interactable =
false;
75 contextExtension.
AddSimple(
"Session Start Time", $
"{DateTime.UtcNow}");
76 contextExtension.AddSimple(
"UserName", $
"Hello World");
77 contextExtension.AddSimple(
"Mode", $
"Mode");
83 float raw = (float)System.Convert.ToDouble(
RawScoreInput.text);
85 float min = (float)System.Convert.ToDouble(
MinScoreInput.text);
86 float max = (float)System.Convert.ToDouble(
MaxScoreInput.text);
static bool SendSimpleSessionEvent(string action, string targetObject, Extension contextExtension)
static bool JoinSession(string scenarioID=null, Extension contextExtension=null)
static bool CompleteSession(SessionData currentSessionData, Extension contextExtension=null, Extension resultExtension=null)
void AddSimple(string key, string value)
void OnSessionJoinedSuccess(HttpResponseMessage joinResponse)
void OnLoginFailed(FailureResponse failedLoginResponse)
InputField EventNameInput
void OnSessionCompletedSuccess(HttpResponseMessage joinResponse)
void OnSessionJoinedFailed(FailureResponse failedLoginResponse)
void OnSessionCompletedFailed(FailureResponse failedLoginResponse)
InputField ScaledScoreInput
void OnLoginSuccess(LoginResponseContent loginResponse)