示例#1
0
        public static async Task <BodyExercise> GetAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExerciseKey key)
        {
            Dictionary <string, string> datas = new Dictionary <string, string>();

            datas.Add("Id", key.Id.ToString());
            return(await webApiWrapper.HttpClientPoolManager.GetAsync <BodyExercise>(userId, cookie, _baseUrl + "Get", datas));
        }
示例#2
0
 public static async Task <bool> DeleteAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExerciseKey key)
 {
     return(await webApiWrapper.HttpClientPoolManager.PostAsync <BodyExerciseKey, bool>(userId, cookie, _baseUrl + "Delete", key));
 }
示例#3
0
 public static async Task <List <BodyExercise> > UpdateListAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, List <BodyExercise> bodyExercices)
 {
     return(await webApiWrapper.HttpClientPoolManager.PostAsync <List <BodyExercise>, List <BodyExercise> >(userId, cookie, _baseUrl + "UpdateList", bodyExercices));
 }
示例#4
0
 public static async Task <BodyExercise> UpdateAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExercise bodyExercice)
 {
     return(await webApiWrapper.HttpClientPoolManager.PostAsync <BodyExercise, BodyExercise>(userId, cookie, _baseUrl + "Update", bodyExercice));
 }
示例#5
0
 public static async Task <List <BodyExercise> > FindAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie)
 {
     return(await webApiWrapper.HttpClientPoolManager.GetAsync <List <BodyExercise> >(userId, cookie, _baseUrl + "Find"));
 }