Code example for Parcel

Methods: readInt, readString

0
            int    subscriptionId; 
            int    valid; 
            int    unknownConstant; 
            int    unknownConstant2; 
 
            transactionSlot = source.readInt(); 
            valid = source.readInt(); 
 
            if (valid == 0) { 
                return new OVChipTransaction(transactionSlot, source.readString()); 
            } 
 
            date             = source.readInt(); 
            time             = source.readInt(); 
            transfer         = source.readInt(); 
            company          = source.readInt(); 
            id               = source.readInt(); 
            station          = source.readInt(); 
            machineId        = source.readInt(); 
            vehicleId        = source.readInt(); 
            productId        = source.readInt(); 
            amount           = source.readInt(); 
            subscriptionId   = source.readInt(); 
            unknownConstant  = source.readInt(); 
            unknownConstant2 = source.readInt(); 
 
            return new OVChipTransaction(transactionSlot, 
                    date, time, transfer, company, id, station, 
                    machineId, vehicleId, productId, amount, 
                    subscriptionId, valid, unknownConstant,