示例#1
0
        public static TReturnType Post <TReturnType>(string url, object bodyData, string title, string operation)
        {
            var request = ServerControllerBase.PostRequest(url, bodyData);

            if (!ProcessRequest(request, title, operation))
            {
                return(default(TReturnType));
            }

            return(JsonConvert.DeserializeObject <TReturnType>(request.downloadHandler.text));
        }
示例#2
0
        public static bool Post(string url, object bodyData, string title, string operation)
        {
            var request = ServerControllerBase.PostRequest(url, bodyData);

            return(ProcessRequest(request, title, operation));
        }