Record Class Localization.Integration.Twitch

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Integration.Twitch
All Implemented Interfaces:
LocalizationSetting
Enclosing class:
Localization.Integration

public static record Localization.Integration.Twitch(String nullPlayer, String senderName, String formatReply, Map<String,String> customCommand, Map<String,String> messageChannel) extends Record implements LocalizationSetting
Since:
1.7.1
  • Constructor Details

    • Twitch

      public Twitch(String nullPlayer, String senderName, String formatReply, Map<String,String> customCommand, Map<String,String> messageChannel)
      Creates an instance of a Twitch record class.
      Parameters:
      nullPlayer - the value for the nullPlayer record component
      senderName - the value for the senderName record component
      formatReply - the value for the formatReply record component
      customCommand - the value for the customCommand record component
      messageChannel - the value for the messageChannel record component
  • Method Details

    • builder

    • toBuilder

    • withNullPlayer

      public Localization.Integration.Twitch withNullPlayer(String nullPlayer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSenderName

      public Localization.Integration.Twitch withSenderName(String senderName)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatReply

      public Localization.Integration.Twitch withFormatReply(String formatReply)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCustomCommand

      public Localization.Integration.Twitch withCustomCommand(Map<String,String> customCommand)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMessageChannel

      public Localization.Integration.Twitch withMessageChannel(Map<String,String> messageChannel)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • 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.
    • nullPlayer

      public String nullPlayer()
      Returns the value of the nullPlayer record component.
      Returns:
      the value of the nullPlayer record component
    • senderName

      public String senderName()
      Returns the value of the senderName record component.
      Returns:
      the value of the senderName record component
    • formatReply

      public String formatReply()
      Returns the value of the formatReply record component.
      Returns:
      the value of the formatReply record component
    • customCommand

      public Map<String,String> customCommand()
      Returns the value of the customCommand record component.
      Returns:
      the value of the customCommand record component
    • messageChannel

      public Map<String,String> messageChannel()
      Returns the value of the messageChannel record component.
      Returns:
      the value of the messageChannel record component