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 bool recv_updateInventoryItem() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } updateInventoryItem_result result = new updateInventoryItem_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, "updateInventoryItem failed: unknown result"); }