Esempio n. 1
0
        static public IEnumerator GetSpecifiedProblems(string player_id, LearningAction specifyingLearningAction, UInt32 count)
        {
            //UnityEngine.Debug.Log ("get problems");

            Problem.SpecifiedProblemGetRequest getProblem = new Problem.SpecifiedProblemGetRequest();
            getProblem.problem_count = (count);
            getProblem.player_id     = (player_id);
            getProblem.specifying_learning_action = specifyingLearningAction.GetProto();

            Logger.BasicLog("Specified Get Problems request going off to " + SPECIFIED_GET_PROBLEM_URL);

            if (SenseixSession.GetAuthToken() == "you don't need to see my identification")
            {
                yield break;
            }

            yield return(GetSingletonInstance().StartCoroutine(
                             CoroutinePostRequest(getProblem, Response.ParseGetSpecifiedProblemResponse, GET_PROBLEM_URL, false)));
        }
Esempio n. 2
0
        public static IEnumerator GetSpecifiedProblems(string player_id, LearningAction specifyingLearningAction, UInt32 count)
        {
            //UnityEngine.Debug.Log ("get problems");

            Problem.SpecifiedProblemGetRequest getProblem = new Problem.SpecifiedProblemGetRequest();
            getProblem.problem_count = (count);
            getProblem.player_id = (player_id);
            getProblem.specifying_learning_action = specifyingLearningAction.GetProto ();

            Logger.BasicLog("Specified Get Problems request going off to " + SPECIFIED_GET_PROBLEM_URL);

            if (SenseixSession.GetAuthToken () == "you don't need to see my identification")
                yield break;

            yield return GetSingletonInstance().StartCoroutine(
                CoroutinePostRequest (getProblem, Response.ParseGetSpecifiedProblemResponse, GET_PROBLEM_URL, false));
        }