switch (evt.action) {
case 0:
((Set<Long>) trades[isBot ? 0 : 1]).add(evt.assetid);
if (!isBot) {
final Item item = inventories[isBot ? 0 : 1].getItem(evt.assetid);
final ItemInfo schemaItem = Util.getItemInfo(item.defIndex);
tradeListener.onUserAddItem(schemaItem, item);
}
break;
case 1:
((Set<Long>) trades[isBot ? 0 : 1]).remove(evt.assetid);
if (!isBot) {
final Item item2 = inventories[isBot ? 0 : 1].getItem(evt.assetid);
final ItemInfo schemaItem = Util.getItemInfo(item2.defIndex);
tradeListener.onUserRemoveItem(schemaItem, item2);
}
break;
case 2:
if (!isBot) {