Пример #1
0
        private static IEnumerator _isCommentMine(string modId, string commentId, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "isCommentMine";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("modId", modId);
            json.AppendValue("commentId", commentId);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #2
0
        private static IEnumerator _createAccount(string username, string password, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "createAccount";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("username", username);
            json.AppendValue("password", password);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #3
0
        private static IEnumerator _favoriteMod(string modID, string favorite, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "favoriteMod";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("modID", modID);
            json.AppendValue("favorite", favorite);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #4
0
        private static IEnumerator _deleteComment(string targetModId, string targetCommentId, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "deleteComment";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("targetModId", targetModId);
            json.AppendValue("targetCommentId", targetCommentId);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #5
0
        private static IEnumerator _like(string likedModId, string likeState, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "like";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("likedModId", likedModId);
            json.AppendValue("likeState", likeState);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #6
0
        private static IEnumerator _editTag(string tagID, string body, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "editTag";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("tagID", tagID);
            json.AppendValue("body", body);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #7
0
        private static IEnumerator _signInFromGame(string username, string password, string playfabID, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "signInFromGame";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("username", username);
            json.AppendValue("password", password);
            json.AppendValue("playfabID", playfabID);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #8
0
        private static IEnumerator _getModTemplate(string modName, string description, string tags, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "getModTemplate";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("modName", modName);
            json.AppendValue("description", description);
            json.AppendValue("tags", tags);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #9
0
        private static IEnumerator _setPlayerTags(string tags, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "setPlayerTags";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("tags", tags);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #10
0
        private static IEnumerator _downloadMod(string id, Action <string> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "downloadMod";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("id", id);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #11
0
        private static IEnumerator _downloadTempFile(string key, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "downloadTempFile";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("key", key);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #12
0
        private static IEnumerator _adminCommand(string Message, Action <string> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "adminCommand";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("Message", Message);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #13
0
        private static IEnumerator _isValidSession(string sessionId, Action <string> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "isValidSession";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("sessionId", sessionId);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #14
0
        private static IEnumerator _setCustomConsoleCss(string css, Action <string> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "setCustomConsoleCss";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("css", css);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }
Пример #15
0
        private static IEnumerator _updateUserData(string password, string username, string bio, string newPassword, string borderStyle, string showFull, Action <JsonObject> callback)
        {
            string url  = MODBOT_API_URL_BASE;
            string data = "";

            url += "updateUserData";
            JsonConstructor json = new JsonConstructor();

            json.AppendValue("password", password);
            json.AppendValue("username", username);
            json.AppendValue("bio", bio);
            json.AppendValue("newPassword", newPassword);
            json.AppendValue("borderStyle", borderStyle);
            json.AppendValue("showFull", showFull);
            data = json.ToString();

            yield return(SendRequest(url, data, callback));
        }