ChannelRegistrationPayload implements JsonSerializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ChannelRegistrationPayload that = (ChannelRegistrationPayload) o; if (optIn != that.optIn) return false; if (backgroundEnabled != that.backgroundEnabled) return false; if (setTags != that.setTags) return false; if (deviceType != null ? !deviceType.equals(that.deviceType) : that.deviceType != null) return false; if (pushAddress != null ? !pushAddress.equals(that.pushAddress) : that.pushAddress != null) return false; if (tags != null ? !tags.equals(that.tags) : that.tags != null) return false; if (userId != null ? !userId.equals(that.userId) : that.userId != null) return false; if (apid != null ? !apid.equals(that.apid) : that.apid != null) return false; if (timezone != null ? !timezone.equals(that.timezone) : that.timezone != null) return false; if (language != null ? !language.equals(that.language) : that.language != null) return false; if (country != null ? !country.equals(that.country) : that.country != null) return false; if (locationSettings != null ? !locationSettings.equals(that.locationSettings) : that.locationSettings != null) return false; if (appVersion != null ? !appVersion.equals(that.appVersion) : that.appVersion != null) return false; if (sdkVersion != null ? !sdkVersion.equals(that.sdkVersion) : that.sdkVersion != null) return false; if (deviceModel != null ? !deviceModel.equals(that.deviceModel) : that.deviceModel != null) return false; if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) return false; if (carrier != null ? !carrier.equals(that.carrier) : that.carrier != null) return false; if (accengageDeviceId != null ? !accengageDeviceId.equals(that.accengageDeviceId) : that.accengageDeviceId != null) return false; if (namedUserId != null ? !namedUserId.equals(that.namedUserId) : that.namedUserId != null) return false; return deliveryType != null ? deliveryType.equals(that.deliveryType) : that.deliveryType == null; } private  ChannelRegistrationPayload(Builder builder); @NonNull ChannelRegistrationPayload minimizedPayload(@Nullable ChannelRegistrationPayload last); @NonNull @Override JsonValue toJsonValue(); @NonNull @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @NonNull
    static final String ANDROID_DEVICE_TYPE; @NonNull
    static final String AMAZON_DEVICE_TYPE; final boolean optIn; final boolean backgroundEnabled; final String deviceType; final String pushAddress; final boolean setTags; final Set<String> tags; final String userId; final String apid; final String timezone; final String language; final String country; final Boolean locationSettings; final String appVersion; final String sdkVersion; final String deviceModel; final Integer apiVersion; final String carrier; final String accengageDeviceId; final String deliveryType; final String namedUserId; }
@Test public void testPayloadEqualToItself() { payload = new ChannelRegistrationPayload.Builder() .setOptIn(testOptIn) .setDeviceType(testDeviceType) .setPushAddress(testPushAddress) .setTags(testSetTags, testTags) .setUserId(testUserId) .setApid(testApid) .setLocationSettings(true) .setAppVersion("123") .setApiVersion(123) .setSdkVersion("1.2.3") .setDeviceModel("Device model") .setCarrier("Carrier") .build(); assertTrue("Payload should be equal to itself.", payload.equals(payload)); }