예제 #1
0
 public GetDriverStatisticsReturnStruct recv_GetDriverStatistics()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetDriverStatistics_result result = new GetDriverStatistics_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetDriverStatistics failed: unknown result");
 }
예제 #2
0
 public void GetDriverStatistics_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetDriverStatistics_args args = new GetDriverStatistics_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetDriverStatistics_result result = new GetDriverStatistics_result();
   result.Success = iface_.GetDriverStatistics(args._homeId);
   oprot.WriteMessageBegin(new TMessage("GetDriverStatistics", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }