public Sentence(@Nullable
java.lang.String text,
@NotNull
java.util.List<ai.tock.bot.engine.message.GenericMessage> messages,
@Nullable
ai.tock.translator.UserInterfaceType userInterface,
long delay)
Could be a simple text, or a complex message using secondary constructor.
public Sentence(@Nullable
java.lang.String text,
@NotNull
java.util.List<ai.tock.bot.connector.ConnectorMessage> messages,
@Nullable
ai.tock.translator.UserInterfaceType userInterface)
@NotNull public EventType getEventType()
@NotNull public Action toAction(@NotNull PlayerId playerId, @NotNull java.lang.String applicationId, @NotNull PlayerId recipientId)
@NotNull public java.lang.String toPrettyString()
Returns a human readable string representation of the message.
public boolean isSimpleMessage()
@Nullable public java.lang.String getText()
@NotNull public java.util.List<ai.tock.bot.engine.message.GenericMessage> getMessages()
@Nullable public ai.tock.translator.UserInterfaceType getUserInterface()
public long getDelay()
@Nullable public java.lang.String component1()
@NotNull public java.util.List<ai.tock.bot.engine.message.GenericMessage> component2()
@Nullable public ai.tock.translator.UserInterfaceType component3()
public long component4()
@NotNull public Sentence copy(@Nullable java.lang.String text, @NotNull java.util.List<ai.tock.bot.engine.message.GenericMessage> messages, @Nullable ai.tock.translator.UserInterfaceType userInterface, long delay)
Could be a simple text, or a complex message using secondary constructor.
@NotNull public java.lang.String toString()
Could be a simple text, or a complex message using secondary constructor.
public int hashCode()
Could be a simple text, or a complex message using secondary constructor.
public boolean equals(@Nullable
java.lang.Object p)
Could be a simple text, or a complex message using secondary constructor.