public void getPlayer_Process(int seqid, TProtocol iprot, TProtocol oprot) { getPlayer_args args = new getPlayer_args(); args.Read(iprot); iprot.ReadMessageEnd(); getPlayer_result result = new getPlayer_result(); try { result.Success = iface_.getPlayer(args.AuthString, args.Name); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } catch (org.phybros.thrift.EDataException dex) { result.Dex = dex; } oprot.WriteMessageBegin(new TMessage("getPlayer", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public Player recv_getPlayer() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getPlayer_result result = new getPlayer_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.aex) { throw result.Aex; } if (result.__isset.dex) { throw result.Dex; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getPlayer failed: unknown result"); }