Exemple #1
0
        /// <summary>
        /// Begins the Http request
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public UnityTask PostAsync(string url)
        {
            var state = new UnityTask();

            TaskManager.StartRoutine(PostAsync(state.FromJsonResponse(), url, null));

            return(state);
        }
Exemple #2
0
        /// <summary>
        /// Begins the Http request
        /// </summary>
        /// <param name="url"></param>
        /// <param name="content"></param>
        /// <returns></returns>
        public UnityTask <T> PostAsync <T>(string url, string content)
        {
            var state = new UnityTask <T>();

            TaskManager.StartRoutine(PostAsync(state.FromJsonResponse(), url, content));

            return(state);
        }
Exemple #3
0
        /// <summary>
        /// Begins the Http request
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public UnityTask <T> GetAsync <T>(string url)
        {
            var state = new UnityTask <T>();

            TaskManager.StartRoutine(GetAsync(state.FromJsonResponse(), url));

            return(state);
        }