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