TTGroup Class Reference
Inherits from | TTParty : NSManagedObject |
---|---|
Declared in | TTGroup.h |
isPublic
Boolean value. If YES, the group is public and the local user can join it.
@property (nullable, nonatomic, retain) NSNumber *isPublic
Declared In
TTGroup.h
isUserPartOfGroup
Boolean value. If YES, the local user is a part of this group.
@property (nullable, nonatomic, retain) NSNumber *isUserPartOfGroup
Declared In
TTGroup.h
isDistributionList
Boolean value. If YES, the group is a distribution list.
@property (nullable, nonatomic, retain) NSNumber *isDistributionList
Declared In
TTGroup.h
members
NSSet containing TTUser objects, representing all users which are members of this group.
@property (nullable, nonatomic, retain) NSSet<TTUser*> *members
Declared In
TTGroup.h
message
Last TTMessage received for this group.
@property (nullable, nonatomic, retain) TTMessage *message
Declared In
TTGroup.h
replayHistory
BOOL value to indicate whether to show history in the group when a new member joins.
@property (nullable, nonatomic, retain) NSNumber *replayHistory
Declared In
TTGroup.h
messagesCount
Group messages count (only available for public groups/rooms for now).
@property (nullable, nonatomic, retain) NSNumber *messagesCount
Declared In
TTGroup.h
roomMembersCount
Group members count (only available for public groups/rooms for now).
@property (nullable, nonatomic, retain) NSNumber *roomMembersCount
Declared In
TTGroup.h
createdTime
Group created date (only available for public groups/rooms for now).
@property (nullable, nonatomic, retain) NSDate *createdTime
Declared In
TTGroup.h
groupDescription
Group description (only available for public groups/rooms for now).
@property (nullable, nonatomic, retain) NSString *groupDescription
Declared In
TTGroup.h
createdBy
Return the TTUser who created to group (only available for public groups/rooms for now).
@property (nullable, nonatomic, retain) TTUser *createdBy
Declared In
TTGroup.h
proxiedMembers
NSDictionary storing information about users in the group as roles.
@property (nullable, nonatomic, retain) NSObject *proxiedMembers
Discussion
A user is a “proxiedMember” if the user is in the group as the owner of a role.
Declared In
TTGroup.h
– roleMembers
Returns list of members who are Roles
- (NSSet<TTRole*> *_Nullable)roleMembers
Declared In
TTGroup.h
– isUserTokenPartOfGroup:
Checks whether the given user token belongs to a member of the group.
- (BOOL)isUserTokenPartOfGroup:(NSString *_Nonnull)token
Declared In
TTGroup.h
– isUserPartOfGroup:
Checks whether the given user is a member of the group.
- (BOOL)isUserPartOfGroup:(TTUser *_Nonnull)user
Declared In
TTGroup.h
– isUserInGroupNotAsRoleOwner:
- Checks whether the given user is in the group as the user, and not as a role owner. *
- (BOOL)isUserInGroupNotAsRoleOwner:(TTUser *_Nonnull)user
Return Value
YES if the user’s user token is not in proxiedMembers
.
Declared In
TTGroup.h