Package com.cbe
Class Member
- java.lang.Object
-
- com.cbe.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 memberVisibility
visibility()
Returns member visibility, private or public
-
-
-
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).
-
-