code: protected TransactionTypeEnum getType(byte logstate) {
  		switch ( (logstate & 0x60) >> 5) {
  		case 0: return TransactionTypeEnum.LOADED;
  		case 1: return TransactionTypeEnum.UNLOADED;
  		case 2: return TransactionTypeEnum.PURCHASE;
  		case 3: return TransactionTypeEnum.REFUND;
  		}
  		return null;
      }
docs: Method used to get the transaction type
  @param logstate the log state
  @return the transaction type or null