Ejemplo n.º 1
0
 public Response<DownloadResult> Download(DownloadRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     var result = Method(Functions.Download, request, ParameterValidator.DownloadCheckRequest);
     try
     {
         var response = JsonConvert.DeserializeObject<Response<DownloadResult>>(result.ToString());
         return response;
     }
     catch (Exception e)
     {
         return Response<DownloadResult>.BuildResponse(e);
     }
 }
Ejemplo n.º 2
0
 public IAsyncResult BeginDownload(DownloadRequest requestObject)
 {
     JObject request = JObject.FromObject(requestObject);
     return BeginMethod(Functions.Download, request, ParameterValidator.DownloadCheckRequest, DownloadCallBackMethod);
 }