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 void send_addItemToInventory(string authString, string playerName, ItemStack item) #endif { oprot_.WriteMessageBegin(new TMessage("addItemToInventory", TMessageType.Call, seqid_)); addItemToInventory_args args = new addItemToInventory_args(); args.AuthString = authString; args.PlayerName = playerName; args.Item = item; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }