public void updateInventoryItem_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateInventoryItem_args args = new updateInventoryItem_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateInventoryItem_result result = new updateInventoryItem_result(); try { result.Success = iface_.updateInventoryItem(args.AuthString, args.PlayerName, args.Item, args.ItemIndex); } catch (org.phybros.thrift.EAuthException aex) { result.Aex = aex; } catch (org.phybros.thrift.EDataException dex) { result.Dex = dex; } oprot.WriteMessageBegin(new TMessage("updateInventoryItem", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_updateInventoryItem(string authString, string playerName, ItemStack item, int itemIndex) #endif { oprot_.WriteMessageBegin(new TMessage("updateInventoryItem", TMessageType.Call, seqid_)); updateInventoryItem_args args = new updateInventoryItem_args(); args.AuthString = authString; args.PlayerName = playerName; args.Item = item; args.ItemIndex = itemIndex; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }