Class InboxEventFactory

    • Constructor Detail

      • InboxEventFactory

        public InboxEventFactory()
        Constructs a new InboxEventFactory.
    • Method Detail

      • createAddedEvent

        public static InboxAddedEvent createAddedEvent​(DiscoveryResult discoveryResult)
        Creates an inbox added event.
        Parameters:
        discoveryResult - the discovery result
        Returns:
        the created inbox added event
        Throws:
        IllegalArgumentException - if discoveryResult is null
      • createRemovedEvent

        public static InboxRemovedEvent createRemovedEvent​(DiscoveryResult discoveryResult)
        Creates an inbox removed event.
        Parameters:
        discoveryResult - the discovery result
        Returns:
        the created inbox removed event
        Throws:
        IllegalArgumentException - if discoveryResult is null
      • createUpdatedEvent

        public static InboxUpdatedEvent createUpdatedEvent​(DiscoveryResult discoveryResult)
        Creates an inbox updated event.
        Parameters:
        discoveryResult - the discovery result
        Returns:
        the created inbox updated event
        Throws:
        IllegalArgumentException - if discoveryResult is null