public void getWorlds_Process(int seqid, TProtocol iprot, TProtocol oprot) { getWorlds_args args = new getWorlds_args(); args.Read(iprot); iprot.ReadMessageEnd(); getWorlds_result result = new getWorlds_result(); try { result.Success = iface_.getWorlds(args.AuthString); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } oprot.WriteMessageBegin(new TMessage("getWorlds", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public List<World> recv_getWorlds() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getWorlds_result result = new getWorlds_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.aex) { throw result.Aex; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getWorlds failed: unknown result"); }