Class ChannelExtensionKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean isAnonymousChannel(Channel $self)
      final static Boolean isMutedFor(Channel $self, User user) Checks if Channel is muted for user.
      final static List<User> getUsersExcludingCurrent(Channel $self, User currentUser) Returns a list of users that are members of the channel excluding the currently logged in user.
      final static List<Member> getMembersExcludingCurrent(Channel $self, User currentUser) Returns a list of members of the channel excluding the currently logged in user.
      final static Integer countUnreadMentionsForUser(Channel $self, User user) Counts messages in which user is mentioned.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isMutedFor

         final static Boolean isMutedFor(Channel $self, User user)

        Checks if Channel is muted for user.

      • getUsersExcludingCurrent

         final static List<User> getUsersExcludingCurrent(Channel $self, User currentUser)

        Returns a list of users that are members of the channel excluding the currently logged in user.

        Parameters:
        currentUser - The currently logged in user.
      • getMembersExcludingCurrent

         final static List<Member> getMembersExcludingCurrent(Channel $self, User currentUser)

        Returns a list of members of the channel excluding the currently logged in user.

        Parameters:
        currentUser - The currently logged in user.
      • countUnreadMentionsForUser

         final static Integer countUnreadMentionsForUser(Channel $self, User user)

        Counts messages in which user is mentioned. The method relies on the Channel.messages list and doesn't do any API call. Therefore, the count might be not reliable as it relies on the local data.

        Parameters:
        user - The User object for which unread mentions are counted.