//public readonly internal GetWalletProcedure(UgsClient iClient) : base(iClient) { var url = MakeURL(Client.Session, "player", "wallet"); Request = new WWW(url); }
public CharacterViewProcedure(UgsClient client) : base(client) { var url = MakeURL(client.Session, "player"); Request = new WWW(url); Debug.Log("URL:" + url); }
internal AchievementsProcedure(UgsClient client, string iCategory) : base(client) { var url = MakeURL(client.Session, "player", "achievments", iCategory); Request = new WWW(url); Debug.Log("URL:" + url); }
public LessonViewProcedure(UgsClient client, string lessonId, bool lf) : base(client) { var url = lf? MakeURL("lessonfile", lessonId) : MakeURL("lesson", lessonId); Request = new WWW(url); }
public DownloadAvatarProcedure(UgsClient client, string username) : base(client) { Avatar = null; string url = MakeURL("player", username, "load_avatar"); Request = new WWW(url); Done += InitAvatar; }
//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); }
public LoadProfileProcedure(UgsClient ugsClient) : base(ugsClient) { var url = MakeURL(ugsClient.Session, "player", "load_profile"); Request = new WWW(url); Debug.Log("URL:" + url); }
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); }
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); }
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(); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public GetExperienceCategoriesProcedure(UgsClient ugsClient) : base(ugsClient) { var url = MakeURL("gamedata", "experience"); Request = new WWW(url); }
protected UGSRequestProcedure(UgsClient client) { Client = client; }