All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kintone.client.api.app.GetGeneralNotificationsPreviewResponseBody 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.GeneralNotification;
import java.util.List;

/**
 * A response object for Get General Notification Settings Preview API.
 */
public final class GetGeneralNotificationsPreviewResponseBody implements KintoneResponseBody {
    /**
     * An array of objects consisting of "Recipients and Conditions" options. These options define who
     * will receive the notifications.
     */
    private final List notifications;
    /**
     * Option to notify all commenters of a record when a comment is posted on that record. This
     * reflects the "Send updated comment notifications to all commenters" checkbox.
     *
     * 
    *
  • true : Notify all commenters of the record when a comment is posted *
  • false : Do not notify all commenters of the record when a comment is posted *
*/ private final boolean notifyToCommenter; /** * The revision number of the App settings. */ private final long revision; @java.beans.ConstructorProperties({"notifications", "notifyToCommenter", "revision"}) @java.lang.SuppressWarnings("all") public GetGeneralNotificationsPreviewResponseBody(final List notifications, final boolean notifyToCommenter, final long revision) { this.notifications = notifications; this.notifyToCommenter = notifyToCommenter; this.revision = revision; } /** * An array of objects consisting of "Recipients and Conditions" options. These options define who * will receive the notifications. */ @java.lang.SuppressWarnings("all") public List getNotifications() { return this.notifications; } /** * Option to notify all commenters of a record when a comment is posted on that record. This * reflects the "Send updated comment notifications to all commenters" checkbox. * *
    *
  • true : Notify all commenters of the record when a comment is posted *
  • false : Do not notify all commenters of the record when a comment is posted *
*/ @java.lang.SuppressWarnings("all") public boolean isNotifyToCommenter() { return this.notifyToCommenter; } /** * 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 GetGeneralNotificationsPreviewResponseBody)) return false; final GetGeneralNotificationsPreviewResponseBody other = (GetGeneralNotificationsPreviewResponseBody) o; if (this.isNotifyToCommenter() != other.isNotifyToCommenter()) return false; 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; result = result * PRIME + (this.isNotifyToCommenter() ? 79 : 97); 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 "GetGeneralNotificationsPreviewResponseBody(notifications=" + this.getNotifications() + ", notifyToCommenter=" + this.isNotifyToCommenter() + ", revision=" + this.getRevision() + ")"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy