Beispiel #1
0
 public Response<bool> Upload(UploadRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.Upload, request, ParameterValidator.UploadCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<bool>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<bool>.BuildResponse(e);
     }
 }
Beispiel #2
0
 public IAsyncResult BeginUpload(UploadRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.Upload, request, ParameterValidator.UploadCheckRequest, UploadCallBackMethod);
 }