Ejemplo n.º 1
0
        //public readonly
        internal GetWalletProcedure(UgsClient iClient) :
            base(iClient)
        {
            var url = MakeURL(Client.Session, "player", "wallet");

            Request = new WWW(url);
        }
Ejemplo n.º 2
0
        public CharacterViewProcedure(UgsClient client) : base(client)
        {
            var url = MakeURL(client.Session, "player");

            Request = new WWW(url);
            Debug.Log("URL:" + url);
        }
Ejemplo n.º 3
0
        internal AchievementsProcedure(UgsClient client, string iCategory)
            : base(client)
        {
            var url = MakeURL(client.Session, "player", "achievments", iCategory);

            Request = new WWW(url);
            Debug.Log("URL:" + url);
        }
Ejemplo n.º 4
0
        public LessonViewProcedure(UgsClient client, string lessonId, bool lf) : base(client)
        {
            var url = lf?
                      MakeURL("lessonfile", lessonId) :
                      MakeURL("lesson", lessonId);

            Request = new WWW(url);
        }
Ejemplo n.º 5
0
        public DownloadAvatarProcedure(UgsClient client, string username) : base(client)
        {
            Avatar = null;
            string url = MakeURL("player", username, "load_avatar");

            Request = new WWW(url);
            Done   += InitAvatar;
        }
Ejemplo n.º 6
0
        //private string _login = null;

        public PublicProfileProcedure(UgsClient client, string login) : base(client)
        {
            // this._login = login;
            var url = MakeURL("player", login, "public_profile");

            Debug.Log("URL:" + url);
            Request = new WWW(url);
        }
Ejemplo n.º 7
0
        public LoadProfileProcedure(UgsClient ugsClient) :
            base(ugsClient)
        {
            var url = MakeURL(ugsClient.Session, "player", "load_profile");

            Request = new WWW(url);
            Debug.Log("URL:" + url);
        }
Ejemplo n.º 8
0
        public ScorePolicyProcedure(UgsClient ugsClient, string gamename) : base(ugsClient)
        {
            var url  = MakeURL("gamedata", "score_policy");
            var form = new WWWForm();

            form.AddField("game", gamename);
            Request = new WWW(url, form);
        }
Ejemplo n.º 9
0
        internal LessonCreateProcedure(UgsClient client, bool lf)
            : base(client)
        {
            var url = lf?
                      MakeURL(Client.Session, "lessonfile", "create")
                    : MakeURL(Client.Session, "lesson", "create");

            Request = new WWW(url);
        }
Ejemplo n.º 10
0
 public CheckoutProcedure(UgsClient client, string lessonId, bool lf)
     : base(client)
 {
     Url = lf?
           MakeURL(Client.Session, "lessonfile", lessonId, "checkout"):
           MakeURL(Client.Session, "lesson", lessonId, "checkout");
     LessonId = lessonId;
     Form     = new WWWForm();
 }
Ejemplo n.º 11
0
        public ChangeCredentialsProcedure(UgsClient client, string login, string password) : base(client)
        {
            var url  = MakeURL(Client.Session, "auth", "change");
            var form = new WWWForm();

            _login = login;
            form.AddField("login", login);
            form.AddField("password", EncodePassword(password));
            Request = new WWW(url, form);
        }
Ejemplo n.º 12
0
        public CharacterSaveProcedure(UgsClient client, string newConfig) : base(client)
        {
            var url = MakeURL(client.Session, "player", "character");

            Debug.Log("set_url:" + url);
            var form = new WWWForm();

            form.AddField("character", newConfig);
            Request = new WWW(url, form);
        }
Ejemplo n.º 13
0
        internal LessonCommitProcedure(UgsClient client, string lessonId, bool lf)
            : base(client)
        {
            LessonId = lessonId;
            var url = lf?
                      MakeURL(Client.Session, "lessonfile", LessonId, "commit"):
                      MakeURL(Client.Session, "lesson", LessonId, "commit");

            Request = new WWW(url);
        }
Ejemplo n.º 14
0
        public PurchaseProcedure(UgsClient client, string iOid) : base(client)
        {
            var url = MakeURL(client.Session, "player", "purchase");

            var form = new WWWForm();

            form.AddField("oid", iOid);

            Request = new WWW(url, form);
            Debug.Log("URL:" + url);
        }
Ejemplo n.º 15
0
        public UploadAvatarProcedure(UgsClient client, byte[] iPng) : base(client)
        {
            png = iPng;
            Url = MakeURL(Client.Session, "player", "upload_avatar");
            //LessonId = lessonId;
            Form = new WWWForm();
            Form.AddField("avatar", "avatar.png");
            Form.AddBinaryData("avatar", png);

            // Request = new WWW(Url, Form);
        }
Ejemplo n.º 16
0
        internal LessonSwitchProcedure(UgsClient client, string lessonId, int number, bool lf)
            : base(client)
        {
            LessonId = lessonId;
            _number  = number;
            var url = lf?
                      MakeURL(Client.Session, "lessonfile", LessonId, "switch", number.ToString(CultureInfo.InvariantCulture)):
                      MakeURL(Client.Session, "lesson", LessonId, "switch", number.ToString(CultureInfo.InvariantCulture));

            Request = new WWW(url);
        }
Ejemplo n.º 17
0
        internal LoadScoreProcedure(UgsClient iClient, string iGameId)
            : base(iClient)
        {
            GameId = iGameId;
            var url  = MakeURL(Client.Session, "player", "load_score");
            var form = new WWWForm();

            form.AddField("game", iGameId);

            Request = new WWW(url, form);
        }
Ejemplo n.º 18
0
        internal GetStateProcedure(UgsClient iClient, string iGameId)
            : base(iClient)
        {
            GameID = iGameId;
            var url  = MakeURL(Client.Session, "player", "get_state");
            var form = new WWWForm();

            form.AddField("game", iGameId);

            Request = new WWW(url, form);
        }
Ejemplo n.º 19
0
        internal SaveScoreProcedure(UgsClient iClient, string iGameID, int iScore)
            : base(iClient)
        {
            GameID = iGameID;
            var url  = MakeURL(Client.Session, "player", "save_score");
            var form = new WWWForm();

            form.AddField("game", iGameID);
            form.AddField("value", iScore);

            Request = new WWW(url, form);
        }
Ejemplo n.º 20
0
        internal Auth_PIN(UgsClient client, string mac_adress)
            : base(client)
        {
            var url = MakeURL(mac_adress);
            //DebugLog(form.data.OrderByDescending(`));


            WWWForm form = new WWWForm();
            Dictionary <string, string> headers = form.headers;

            headers["device-mac"] = mac_adress;

            Request = new WWW(url, null, headers);
        }
Ejemplo n.º 21
0
        internal LoginProcedure(UgsClient client, string login, string password)
            : base(client)
        {
            _login = login;
            var form = new WWWForm();

            form.AddField("login", login);
            form.AddField("password", EncodePassword(password));

            var url = MakeURL("auth", "login");

            //DebugLog(form.data.OrderByDescending(`));
            Request = new WWW(url, form);
        }
Ejemplo n.º 22
0
        public GetExperienceCategoriesProcedure(UgsClient ugsClient) : base(ugsClient)
        {
            var url = MakeURL("gamedata", "experience");

            Request = new WWW(url);
        }
Ejemplo n.º 23
0
 protected UGSRequestProcedure(UgsClient client)
 {
     Client = client;
 }