Interface GroupColorSettings
- All Known Implementing Classes:
GroupColorSettingsProvider
Group color settings interface to manage group color settings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGroup(int groupId, int creatorId) Creates a new group and checks if the group already exists.voidcreateGroup(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.voiddeleteGroup(int groupId) Deletes a group.booleanexistsGroup(int groupId) Checks if a group exists.getColor(GroupColorType type, int groupId) Obtains the color of a group.intgetCreatorId(int groupId) Obtains the creator id of a group.getEditedDate(int groupId) Obtains the edited date of a group.longgetEditedTime(int groupId) Obtains the edited time of a group.getPrefix(GroupColorType type, int groupId) Obtains the prefix of a group.getSuffix(GroupColorType type, int groupId) Obtains the suffix of a group.voidsetColor(GroupColorType type, int groupId, int creatorId, String color) Sets the color of a group.voidsetPrefix(GroupColorType type, int groupId, int creatorId, String prefix) Sets the prefix of a group.voidsetSuffix(GroupColorType type, int groupId, int creatorId, String suffix) Sets the suffix of a group.
-
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
Obtains the edited date of a group.- Parameters:
groupId- The id of the group.- Returns:
- The edited date of the group.
-
getPrefix
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
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
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
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
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
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.
-