コード例 #1
0
 public void SetItemListingResult_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     SetItemListingResult_args args = new SetItemListingResult_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     SetItemListingResult_result result = new SetItemListingResult_result();
     try {
       result.Success = iface_.SetItemListingResult(args.Request);
     } catch (CBT.GEP.Thrift.Common.ThriftException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("SetItemListingResult", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
コード例 #2
0
 public int recv_SetItemListingResult()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     SetItemListingResult_result result = new SetItemListingResult_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.te) {
       throw result.Te;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SetItemListingResult failed: unknown result");
 }