Exemplo n.º 1
0
 public GetSwitchPointReturnStruct recv_GetSwitchPoint()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetSwitchPoint_result result = new GetSwitchPoint_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetSwitchPoint failed: unknown result");
 }
Exemplo n.º 2
0
 public void GetSwitchPoint_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetSwitchPoint_args args = new GetSwitchPoint_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetSwitchPoint_result result = new GetSwitchPoint_result();
   result.Success = iface_.GetSwitchPoint(args._id, args._idx);
   oprot.WriteMessageBegin(new TMessage("GetSwitchPoint", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }