public void addItemToInventory_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   addItemToInventory_args args = new addItemToInventory_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   addItemToInventory_result result = new addItemToInventory_result();
   try {
     result.Success = iface_.addItemToInventory(args.AuthString, args.PlayerName, args.Item);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("addItemToInventory", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public bool recv_addItemToInventory()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   addItemToInventory_result result = new addItemToInventory_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, "addItemToInventory failed: unknown result");
 }