
com.kintone.client.api.app.GetPerRecordNotificationsResponseBody Maven / Gradle / Ivy
// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client.api.app;
import com.kintone.client.api.KintoneResponseBody;
import com.kintone.client.model.app.PerRecordNotification;
import java.util.List;
/**
* A response object for Get Per Record Notification Settings API.
*/
public final class GetPerRecordNotificationsResponseBody implements KintoneResponseBody {
/**
* An array of objects containing data of the Per Record Notification settings.
*/
private final List notifications;
/**
* The revision number of the App settings.
*/
private final long revision;
@java.beans.ConstructorProperties({"notifications", "revision"})
@java.lang.SuppressWarnings("all")
public GetPerRecordNotificationsResponseBody(final List notifications, final long revision) {
this.notifications = notifications;
this.revision = revision;
}
/**
* An array of objects containing data of the Per Record Notification settings.
*/
@java.lang.SuppressWarnings("all")
public List getNotifications() {
return this.notifications;
}
/**
* The revision number of the App settings.
*/
@java.lang.SuppressWarnings("all")
public long getRevision() {
return this.revision;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof GetPerRecordNotificationsResponseBody)) return false;
final GetPerRecordNotificationsResponseBody other = (GetPerRecordNotificationsResponseBody) o;
if (this.getRevision() != other.getRevision()) return false;
final java.lang.Object this$notifications = this.getNotifications();
final java.lang.Object other$notifications = other.getNotifications();
if (this$notifications == null ? other$notifications != null : !this$notifications.equals(other$notifications)) return false;
return true;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final long $revision = this.getRevision();
result = result * PRIME + (int) ($revision >>> 32 ^ $revision);
final java.lang.Object $notifications = this.getNotifications();
result = result * PRIME + ($notifications == null ? 43 : $notifications.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "GetPerRecordNotificationsResponseBody(notifications=" + this.getNotifications() + ", revision=" + this.getRevision() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy