Example #1
0
 public Response<GetUserListResult> GetUserList(GetUserListRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.GetUserList, request, ParameterValidator.GetUserListCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<GetUserListResult>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<GetUserListResult>.BuildResponse(e);
     }
 }
Example #2
0
 public IAsyncResult BeginGetUserList(GetUserListRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.GetUserList, request, ParameterValidator.GetUserListCheckRequest, GetUserListCallBackMethod);
 }