Class StandardNotificationBuilder

java.lang.Object
dev.getelements.elements.service.notification.StandardNotificationBuilder
All Implemented Interfaces:
dev.getelements.elements.sdk.service.notification.NotificationBuilder, dev.getelements.elements.sdk.service.notification.NotificationParameters

public class StandardNotificationBuilder extends Object implements dev.getelements.elements.sdk.service.notification.NotificationBuilder, dev.getelements.elements.sdk.service.notification.NotificationParameters
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    add(String key, String value)
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    addAll(Map<String,String> allData)
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    application(dev.getelements.elements.sdk.model.application.Application application)
     
    dev.getelements.elements.sdk.service.notification.Notification
     
    dev.getelements.elements.sdk.model.application.Application
     
     
     
    Function<dev.getelements.elements.sdk.service.notification.NotificationParameters,dev.getelements.elements.sdk.service.notification.Notification>
     
    dev.getelements.elements.sdk.model.profile.Profile
     
     
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    message(String message)
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    recipient(dev.getelements.elements.sdk.model.profile.Profile recipient)
     
    void
    setNotificationFactory(dev.getelements.elements.sdk.service.notification.NotificationFactory notificationFactory)
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    sound(String sound)
     
    dev.getelements.elements.sdk.service.notification.NotificationBuilder
    title(String title)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface dev.getelements.elements.sdk.service.notification.NotificationBuilder

    sender, sound
  • Constructor Details

    • StandardNotificationBuilder

      public StandardNotificationBuilder()
  • Method Details

    • application

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder application(dev.getelements.elements.sdk.model.application.Application application)
      Specified by:
      application in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • recipient

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder recipient(dev.getelements.elements.sdk.model.profile.Profile recipient)
      Specified by:
      recipient in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • title

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder title(String title)
      Specified by:
      title in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • message

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder message(String message)
      Specified by:
      message in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • sound

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder sound(String sound)
      Specified by:
      sound in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • add

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder add(@Nonnull String key, @Nonnull String value)
      Specified by:
      add in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • addAll

      public dev.getelements.elements.sdk.service.notification.NotificationBuilder addAll(Map<String,String> allData)
      Specified by:
      addAll in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • getRecipient

      public dev.getelements.elements.sdk.model.profile.Profile getRecipient()
      Specified by:
      getRecipient in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • getApplication

      public dev.getelements.elements.sdk.model.application.Application getApplication()
      Specified by:
      getApplication in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • getSound

      public String getSound()
      Specified by:
      getSound in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • getExtraProperties

      @Nonnull public Map<String,String> getExtraProperties()
      Specified by:
      getExtraProperties in interface dev.getelements.elements.sdk.service.notification.NotificationParameters
    • build

      public dev.getelements.elements.sdk.service.notification.Notification build()
      Specified by:
      build in interface dev.getelements.elements.sdk.service.notification.NotificationBuilder
    • getNotificationFactory

      public Function<dev.getelements.elements.sdk.service.notification.NotificationParameters,dev.getelements.elements.sdk.service.notification.Notification> getNotificationFactory()
    • setNotificationFactory

      @Inject public void setNotificationFactory(dev.getelements.elements.sdk.service.notification.NotificationFactory notificationFactory)
    • toString

      public String toString()
      Overrides:
      toString in class Object