/** * used by {@link Demarshallable} * * @param wire a wire */ @UsedViaReflection private SCQRoll(@NotNull WireIn wire) { length = wire.read(RollFields.length).int32(); format = wire.read(RollFields.format).text(); epoch = wire.read(RollFields.epoch).int64(); ValueIn rollTimeVIN = wire.read(RollFields.rollTime); if (rollTimeVIN.hasNext()) rollTime = rollTimeVIN.time(); String zoneId = wire.read(RollFields.rollTimeZone).text(); if (zoneId != null) rollTimeZone = ZoneId.of(zoneId); else rollTimeZone = null; }
@Override public void readMarshallable(@NotNull WireIn wire) throws IORuntimeException { wire.read(() -> "loggedIn").time(this, (o, b) -> o.loggedIn = b) .read(() -> "recentInteraction").time(this, (o, b) -> o.recentInteraction = b) .read(() -> "totalInteractions").int16(this, (o, b) -> o.totalInteractions = b); }
@Override public void readMarshallable(@NotNull WireIn wire) throws IORuntimeException { wire.read(() -> "firstSubscribed").time(this, (o, b) -> o.firstSubscribed = b) .read(() -> "recentlySubscribed").time(this, (o, b) -> o.recentlySubscribed = b) .read(() -> "activeSubscriptions").int16(this, (o, b) -> o.activeSubscriptions = b) .read(() -> "totalSubscriptions").int16(this, (o, b) -> o.totalSubscriptions = b); }
/** * used by {@link Demarshallable} * * @param wire a wire */ @UsedViaReflection private SCQRoll(@NotNull WireIn wire) { length = wire.read(RollFields.length).int32(); format = wire.read(RollFields.format).text(); epoch = wire.read(RollFields.epoch).int64(); ValueIn rollTimeVIN = wire.read(RollFields.rollTime); if (rollTimeVIN.hasNext()) rollTime = rollTimeVIN.time(); String zoneId = wire.read(RollFields.rollTimeZone).text(); if (zoneId != null) rollTimeZone = ZoneId.of(zoneId); else rollTimeZone = null; }