示例#1
0
 public void getFailProductInspectNums_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getFailProductInspectNums_args args = new getFailProductInspectNums_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getFailProductInspectNums_result result = new getFailProductInspectNums_result();
   result.Success = iface_.getFailProductInspectNums(args.AccessKey, args.EntityIds, args.StartTime, args.EndTime);
   oprot.WriteMessageBegin(new TMessage("getFailProductInspectNums", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
示例#2
0
 public Dictionary<string, long> recv_getFailProductInspectNums()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getFailProductInspectNums_result result = new getFailProductInspectNums_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getFailProductInspectNums failed: unknown result");
 }