switch(tagId) {
case 0: // Get the general auction information
// TODO -- What if it's already in the database?
break;
case 1: // Get bid info
Currency bidAmount = Currency.getCurrency(curElement.getProperty("CURRENCY"),
curElement.getProperty("PRICE"));
setBid(bidAmount);
setBidQuantity(Integer.parseInt(curElement.getProperty("QUANTITY")));
if(curElement.getProperty("WHEN", null) != null) {
mBidAt = Long.parseLong(curElement.getProperty("WHEN"));
}
break;
case 2: // Get the snipe info together
Currency snipeAmount = Currency.getCurrency(curElement.getProperty("CURRENCY"),
curElement.getProperty("PRICE"));
prepareSnipe(snipeAmount, Integer.parseInt(curElement.getProperty("QUANTITY")));
mSnipeAt = Long.parseLong(curElement.getProperty("SECONDSPRIOR"));
break;
case 3:
setComplete(true);
break;
case 4:
setInvalid();
break;
case 5:
setComment(curElement.getContents());
break;
case 6:
mEntryEvents = new EventLogger(getIdentifier(), getId(), getTitle());
mEntryEvents.fromXML(curElement);
break;
case 7:
MQFactory.getConcrete("multisnipe_xml").enqueue(getIdentifier() + " " + curElement.toString());
break;
case 8:
Currency shipping = Currency.getCurrency(curElement.getProperty("CURRENCY"),
curElement.getProperty("PRICE"));
setShipping(shipping);
break;
case 9:
setCategory(curElement.getContents());