public void GetAllBooks_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetAllBooks_args args = new GetAllBooks_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetAllBooks_result result = new GetAllBooks_result(); result.Success = iface_.GetAllBooks(); oprot.WriteMessageBegin(new TMessage("GetAllBooks", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List <BookInfo> recv_GetAllBooks() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetAllBooks_result result = new GetAllBooks_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetAllBooks failed: unknown result"); }