Package com.cbe

Class Member


  • public class Member
    extends java.lang.Object
    Class Member, Contains API:s for managing group members.
    • Constructor Summary

      Constructors 
      Constructor Description
      Member()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ban​(java.lang.String banComment, GroupEventProtocol delegate)
      ban member.
      BanInfo getMemberBanInfo()
      Returns ban information, BanInfo is a AbstractMap of 2 pairs where the key pair contains (banned member id, banned by member id) and the value pair contains (banned time (unix), ban reason).
      long groupId()
      Returns group id that the member belongs to.
      void kick​(java.lang.String kickComment, GroupEventProtocol delegate)
      kick member.
      long memberId()
      Returns member id.
      java.lang.String name()
      Returns the member name.
      void unBan​(GroupEventProtocol delegate)
      un ban member
      Visibility visibility()
      Returns member visibility, private or public
      • Methods inherited from class java.lang.Object

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

      • Member

        public Member()
    • Method Detail

      • kick

        public void kick​(java.lang.String kickComment,
                         GroupEventProtocol delegate)
        kick member.
        Parameters:
        delegate - , delegate is a callback delegate to the user defined/implementation of the callbacks on GroupEventProtocol.
      • ban

        public void ban​(java.lang.String banComment,
                        GroupEventProtocol delegate)
        ban member.
        Parameters:
        delegate - , delegate is a callback delegate to the user defined/implementation of the callbacks on GroupEventProtocol.
      • unBan

        public void unBan​(GroupEventProtocol delegate)
        un ban member
        Parameters:
        delegate - , delegate is a callback delegate to the user defined/implementation of the callbacks on GroupEventProtocol.
      • memberId

        public long memberId()
        Returns member id.
      • name

        public java.lang.String name()
        Returns the member name.
      • visibility

        public Visibility visibility()
        Returns member visibility, private or public
      • groupId

        public long groupId()
        Returns group id that the member belongs to.
      • getMemberBanInfo

        public BanInfo getMemberBanInfo()
        Returns ban information, BanInfo is a AbstractMap of 2 pairs where the key pair contains (banned member id, banned by member id) and the value pair contains (banned time (unix), ban reason).