Example #1
0
 public ImageInfoRet(CallRet ret)
     : base(ret)
 {
     if (!String.IsNullOrEmpty(Response))
     {
         try
         {
             Unmarshal(Response);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.ToString());
             this.Exception = e;
         }
     }
 }
Example #2
0
 public StatRet(CallRet ret)
     : base(ret)
 {
     if (OK && Response != null)
     {
         try
         {
             Unmarshal(Response);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.ToString());
             this.Exception = e;
         }
     }
 }
Example #3
0
 public static void PrintRet(CallRet callRet)
 {
     Console.WriteLine("\n[CallRet]");
     Console.WriteLine("StatusCode: " + callRet.StatusCode.ToString());
     Console.WriteLine("Response:\n" + callRet.Response);
     Console.WriteLine();
 }
Example #4
0
 public CallRet(CallRet ret)
 {
     StatusCode = ret.StatusCode;
     Exception = ret.Exception;
     Response = ret.Response;
 }