예제 #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;
         }
     }
 }
예제 #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;
         }
     }
 }
예제 #3
0
파일: Demo.cs 프로젝트: xushiwei/csharp-sdk
 public static void PrintRet(CallRet callRet)
 {
     Console.WriteLine("\n[CallRet]");
     Console.WriteLine("StatusCode: " + callRet.StatusCode.ToString());
     Console.WriteLine("Response:\n" + callRet.Response);
     Console.WriteLine();
 }
예제 #4
0
 public CallRet(CallRet ret)
 {
     StatusCode = ret.StatusCode;
     Exception = ret.Exception;
     Response = ret.Response;
 }