Class NotificationRecipient


  • public final class NotificationRecipient
    extends Object
    A resolved recipient for a notification, including it's preferred locale and target endpoints.
    • Constructor Detail

      • NotificationRecipient

        public NotificationRecipient​(NotificationAssignee assignee,
                                     NotificationChannelType channel,
                                     Locale preferredLocale,
                                     List<String> targetEndpoints)
        Creates a new NotificationRecipient instance.
        Parameters:
        assignee - The assignee representing the recipient.
        channel - The notification channel type (e.g., EMAIL).
        preferredLocale - The preferred locale of the recipient for localization purposes.
        targetEndpoints - The list of target endpoints (e.g., email addresses) for sending the notification.
    • Method Detail

      • getPreferredLocale

        public Locale getPreferredLocale()
        The preferred locale of the recipient for localization purposes.
      • getTargetEndpoints

        public List<String> getTargetEndpoints()
        The list of target endpoints (e.g., email addresses) for sending the notification.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object