Interface StreamMessageContext

All Superinterfaces:
MessageContext

public interface StreamMessageContext extends MessageContext
A change to a player's stream status. Builds on MessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.command.stream.model.StreamMessageContextImpl.StreamMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • turned

      boolean turned()
      Whether streaming was announced, rather than ended.
      Returns:
      whether streaming was announced, rather than ended
    • urls

      @Nullable String urls()
      The stream links, or null if none were given.
      Returns:
      the stream links, or null if none were given
    • withTurned

      StreamMessageContext withTurned(boolean turned)
      Returns a copy carrying a different value.
      Parameters:
      turned - whether streaming was announced, rather than ended
      Returns:
      the copy
    • withUrls

      StreamMessageContext withUrls(@Nullable String urls)
      Returns a copy carrying a different value.
      Parameters:
      urls - the stream links, or null if none were given
      Returns:
      the copy