public void GetById_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetById_args args = new GetById_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetById_result result = new GetById_result(); result.Success = iface_.GetById(args.DemoId); oprot.WriteMessageBegin(new TMessage("GetById", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public DemoRequest recv_GetById() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetById_result result = new GetById_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetById failed: unknown result"); }