Record Class ChatUiConfig

java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.chat.ChatUiConfig

public record ChatUiConfig(String conversationId, ChatTransportMode transportMode, String historyEndpoint, String streamEndpoint, String historyTargetSelector, String historySwap, Integer pollingIntervalMs) extends Record
Simple UI hook config for chat refresh/send wiring.

History and message ownership remain application concerns; this config only defines client-facing hook metadata.

  • Constructor Details

    • ChatUiConfig

      public ChatUiConfig(String conversationId, ChatTransportMode transportMode, String historyEndpoint, String streamEndpoint, String historyTargetSelector, String historySwap, Integer pollingIntervalMs)
      Creates an instance of a ChatUiConfig record class.
      Parameters:
      conversationId - the value for the conversationId record component
      transportMode - the value for the transportMode record component
      historyEndpoint - the value for the historyEndpoint record component
      streamEndpoint - the value for the streamEndpoint record component
      historyTargetSelector - the value for the historyTargetSelector record component
      historySwap - the value for the historySwap record component
      pollingIntervalMs - the value for the pollingIntervalMs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • conversationId

      public String conversationId()
      Returns the value of the conversationId record component.
      Returns:
      the value of the conversationId record component
    • transportMode

      public ChatTransportMode transportMode()
      Returns the value of the transportMode record component.
      Returns:
      the value of the transportMode record component
    • historyEndpoint

      public String historyEndpoint()
      Returns the value of the historyEndpoint record component.
      Returns:
      the value of the historyEndpoint record component
    • streamEndpoint

      public String streamEndpoint()
      Returns the value of the streamEndpoint record component.
      Returns:
      the value of the streamEndpoint record component
    • historyTargetSelector

      public String historyTargetSelector()
      Returns the value of the historyTargetSelector record component.
      Returns:
      the value of the historyTargetSelector record component
    • historySwap

      public String historySwap()
      Returns the value of the historySwap record component.
      Returns:
      the value of the historySwap record component
    • pollingIntervalMs

      public Integer pollingIntervalMs()
      Returns the value of the pollingIntervalMs record component.
      Returns:
      the value of the pollingIntervalMs record component