Interface GroupColorSettings

All Known Implementing Classes:
GroupColorSettingsProvider

public sealed interface GroupColorSettings permits GroupColorSettingsProvider
Group color settings interface to manage group color settings.
  • Method Details

    • existsGroup

      boolean existsGroup(int groupId)
      Checks if a group exists.
      Parameters:
      groupId - The id of the group.
      Returns:
      True if the group exists, otherwise false.
    • createGroup

      void createGroup(int groupId, int creatorId)
      Creates a new group and checks if the group already exists. If the group already exists, the method will return without creating a new group.
      Parameters:
      groupId - The id of the group.
      creatorId - The creator id of the group.
    • createGroup

      void createGroup(int groupId, int creatorId, String chatPrefix, String chatSuffix, String chatColor, String tabPrefix, String tabSuffix, String tabColor, String tagPrefix, String tagSuffix, String tagColor)
      Creates a new group and checks if the group already exists. If the group already exists, the method will return without creating a new group.
      Parameters:
      groupId - The id of the group.
      creatorId - The creator id of the group.
      chatPrefix - The chat prefix of the group.
      chatSuffix - The chat suffix of the group.
      chatColor - The chat color of the group.
      tabPrefix - The tab prefix of the group.
      tabSuffix - The tab suffix of the group.
      tabColor - The tab color of the group.
      tagPrefix - The tag prefix of the group.
      tagSuffix - The tag suffix of the group.
      tagColor - The tag color of the group.
    • deleteGroup

      void deleteGroup(int groupId)
      Deletes a group.
      Parameters:
      groupId - The id of the group.
    • getCreatorId

      int getCreatorId(int groupId)
      Obtains the creator id of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The creator id of the group.
    • getEditedTime

      long getEditedTime(int groupId)
      Obtains the edited time of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The edited time of the group.
    • getEditedDate

      String getEditedDate(int groupId)
      Obtains the edited date of a group.
      Parameters:
      groupId - The id of the group.
      Returns:
      The edited date of the group.
    • getPrefix

      String getPrefix(GroupColorType type, int groupId)
      Obtains the prefix of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      Returns:
      The prefix of the group.
    • getSuffix

      String getSuffix(GroupColorType type, int groupId)
      Obtains the suffix of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      Returns:
      The suffix of the group.
    • getColor

      String getColor(GroupColorType type, int groupId)
      Obtains the color of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      Returns:
      The color of the group.
    • setPrefix

      void setPrefix(GroupColorType type, int groupId, int creatorId, String prefix)
      Sets the prefix of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      creatorId - The creator id of the group.
      prefix - The prefix of the group.
    • setSuffix

      void setSuffix(GroupColorType type, int groupId, int creatorId, String suffix)
      Sets the suffix of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      creatorId - The creator id of the group.
      suffix - The suffix of the group.
    • setColor

      void setColor(GroupColorType type, int groupId, int creatorId, String color)
      Sets the color of a group.
      Parameters:
      type - The type of the group color.
      groupId - The id of the group.
      creatorId - The creator id of the group.
      color - The color of the group.