コード例 #1
0
ファイル: ImageInfoRet.cs プロジェクト: xushiwei/csharp-sdk
 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
ファイル: StatRet.cs プロジェクト: xushiwei/csharp-sdk
 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
ファイル: CallRet.cs プロジェクト: xushiwei/csharp-sdk
 public CallRet(CallRet ret)
 {
     StatusCode = ret.StatusCode;
     Exception = ret.Exception;
     Response = ret.Response;
 }