public void getOfflinePlayer_Process(int seqid, TProtocol iprot, TProtocol oprot) { getOfflinePlayer_args args = new getOfflinePlayer_args(); args.Read(iprot); iprot.ReadMessageEnd(); getOfflinePlayer_result result = new getOfflinePlayer_result(); try { result.Success = iface_.getOfflinePlayer(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("getOfflinePlayer", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public OfflinePlayer recv_getOfflinePlayer() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getOfflinePlayer_result result = new getOfflinePlayer_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, "getOfflinePlayer failed: unknown result"); }