Class UserGroupSetting

java.lang.Object
com.github.jamesnetherton.zulip.client.api.user.UserGroupSetting

public class UserGroupSetting extends Object
Represents a user group setting. Depending on the Zulip API response either the userGroupId will be populated or one / both of directMembers or directSubGroups.
See Also:
  • Method Details

    • of

      public static UserGroupSetting of(long userGroupId)
      Creates a UserGroupSetting with the given user group ID.
      Parameters:
      userGroupId - The ID of the user group
      Returns:
      A @link UserGroupSetting} configured to use the given user group ID
    • of

      public static UserGroupSetting of(List<Long> directMembers, List<Long> directSubGroups)
      Creates a UserGroupSetting with the given user group direct members or direct subgroups.
      Parameters:
      directMembers - The list of direct member group ids. Can be an empty collection.
      directSubGroups - The list of direct member group ids. Can be an empty collection.
      Returns:
      A @link UserGroupSetting} configured to use the given user group direct members or direct subgroups
    • getUserGroupId

      public long getUserGroupId()
    • getDirectMembers

      public List<Long> getDirectMembers()
    • getDirectSubGroups

      public List<Long> getDirectSubGroups()