@Override public void writePortable(PortableWriter portableWriter) throws IOException { System.out.println("Writing portable"); portableWriter.writeUTF("name", name); portableWriter.writeLong("id", id); }
@Override public void writePortable(PortableWriter portableWriter) throws IOException { portableWriter.writeLong("id", Objects.nonNull(id) ? id : 0); portableWriter.writeUTF("notification", notification); portableWriter.writeUTF("deviceId", deviceId); portableWriter.writeLong("networkId", Objects.nonNull(networkId) ? networkId : 0); portableWriter.writeLong("deviceTypeId", Objects.nonNull(deviceTypeId) ? deviceTypeId : 0); portableWriter.writeLong("timestamp", Objects.nonNull(timestamp) ? timestamp.getTime() :0); boolean parametersIsNotNull = Objects.nonNull(parameters) && Objects.nonNull(parameters.getJsonString()); portableWriter.writeUTF("parameters", parametersIsNotNull ? parameters.getJsonString() : null); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeLong("networkId", Objects.nonNull(networkId) ? networkId : 0); writer.writeLong("deviceTypeId", Objects.nonNull(deviceTypeId) ? deviceTypeId : 0); writer.writeUTF("deviceId", deviceId); writer.writeUTF("eventName", eventName); writer.writeUTF("name", name); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeInt("id", id); writer.writeUTF("name", name); writer.writeLong("lastOrder", lastOrder.getTime()); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeInt("id", id); writer.writeUTF("name", name); writer.writeLong("lastOrder", lastOrder.getTime()); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeLong("id", id); writer.writeUTF("replyTo", replyTo); writer.writeUTF("correlationId", correlationId); }
@Override public void writePortable(PortableWriter portableWriter) throws IOException { portableWriter.writeLong("id", Objects.nonNull(id) ? id : 0); portableWriter.writeUTF("command", command); portableWriter.writeLong("timestamp", Objects.nonNull(timestamp) ? timestamp.getTime() :0); portableWriter.writeLong("lastUpdated", Objects.nonNull(lastUpdated) ? lastUpdated.getTime() :0); portableWriter.writeLong("userId", Objects.nonNull(userId) ? userId : 0); portableWriter.writeUTF("deviceId", deviceId); portableWriter.writeLong("networkId", Objects.nonNull(networkId) ? networkId : 0); portableWriter.writeLong("deviceTypeId", Objects.nonNull(deviceTypeId) ? deviceTypeId : 0); boolean parametersIsNotNull = Objects.nonNull(parameters) && Objects.nonNull(parameters.getJsonString()); portableWriter.writeUTF("parameters", parametersIsNotNull ? parameters.getJsonString() : null); portableWriter.writeInt("lifetime", Objects.nonNull(lifetime) ? lifetime : 0); portableWriter.writeUTF("status", status); boolean resultIsNotNull = Objects.nonNull(result) && Objects.nonNull(result.getJsonString()); portableWriter.writeUTF("result", resultIsNotNull ? result.getJsonString() : null); portableWriter.writeBoolean("isUpdated", Objects.nonNull(isUpdated)? isUpdated : false); }
out.writeLong("locality_id", locality_id); out.writeUTF("locality_name", locality_name); out.writeLong("division_id", division_id); out.writeUTF("division_name", division_name); out.writeLong("brand_id", brand_id); out.writeUTF("brand_name", brand_name); out.writeLong("media_id", media_id); out.writeUTF("media_name", media_name); out.writeInt("media_content_approval_instruction", media_content_approval_instruction); out.writeBoolean("media_music_report_required", media_music_report_required); out.writeInt("media_delivery_hours", media_delivery_hours); out.writeLong("media_destination_id", media_destination_id); out.writeLong("media_slave_destination_id", media_slave_destination_id); out.writeLong("copy_code_id", copy_code_id); out.writeLong("region_id", region_id); out.writeLong("media_type_media_extension_id", media_type_media_extension_id); out.writeUTF("copy_code", copy_code); out.writeBoolean("aired", aired); out.writeLong("poster_id", poster_id); out.writeInt("film_length", film_length); out.writeLong("first_air_date", first_air_date); out.writeInt("content_type", content_type); out.writeUTF("title", title); out.writeBoolean("stopped", stopped); out.writeBoolean("request_upload", request_upload); out.writeLong("urr_time", urr_time);
@Override public void writePortable(PortableWriter out) throws IOException { out.writeUTF("key", key); out.writeUTF("stringVal", stringVal); out.writeDouble("doubleVal", doubleVal); out.writeLong("longVal", longVal); out.writeInt("intVal", intVal); }
@Override public void write(PortableWriter writer) throws IOException { super.write(writer); writer.writeInt("syncBackupCount", syncBackupCount); writer.writeInt("asyncBackupCount", asyncBackupCount); writer.writeLong("backupDelayNanos", backupDelayNanos); writer.writeInt("partitionId", partitionId); }
@Override public void write(PortableWriter writer) throws IOException { super.write(writer); writer.writeInt("syncBackupCount", syncBackupCount); writer.writeInt("asyncBackupCount", asyncBackupCount); writer.writeLong("backupDelayNanos", backupDelayNanos); writer.writeInt("partitionId", partitionId); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeUTF("mn", mapName); writer.writeUTF("cn", cacheId); writer.writeInt("bas", batchSize); writer.writeInt("bus", bufferSize); writer.writeLong("ds", delaySeconds); writer.writeBoolean("iv", includeValue); writer.writeBoolean("ps", publishable); writer.writeBoolean("co", coalesce); writer.writeBoolean("po", populate); ObjectDataOutput output = writer.getRawDataOutput(); output.writeObject(predicate); }
@Override public void writePortable(PortableWriter writer) throws IOException { writer.writeUTF("mn", mapName); writer.writeUTF("cn", cacheId); writer.writeInt("bas", batchSize); writer.writeInt("bus", bufferSize); writer.writeLong("ds", delaySeconds); writer.writeBoolean("iv", includeValue); writer.writeBoolean("ps", publishable); writer.writeBoolean("co", coalesce); writer.writeBoolean("po", populate); ObjectDataOutput output = writer.getRawDataOutput(); output.writeObject(predicate); }