TTRosterEntry Class Reference

Inherits from NSManagedObject
Declared in TTRosterEntry.h

Overview

A TTRosterEntry is a conversation. The conversation may have several properties which are detailed below. A TTRosterEntry must always have a target, which can be a TTUser or a TTGroup (both inherit from TTParty).

  avatarUrl

URL of the TTRosterEntry’s avatar.

@property (nullable, nonatomic, retain) NSString *avatarUrl

Declared In

TTRosterEntry.h

  conversationHash

Conversation hash. Can be used to retrieve related objects, such as TTMessages.

@property (nullable, nonatomic, retain) NSString *conversationHash

Declared In

TTRosterEntry.h

  encryptedDisplayName

Display name of the roster entry.

@property (nullable, nonatomic, retain) NSData *encryptedDisplayName

Declared In

TTRosterEntry.h

  displayName

Display name of the roster entry.

@property (nullable, nonatomic, retain) NSString *displayName

Declared In

TTRosterEntry.h

  ignoreApiUpdate

When set to YES, TTRosterEntry can only be deleted locally. Default is NO.

@property (nullable, nonatomic, retain) NSNumber *ignoreApiUpdate

Declared In

TTRosterEntry.h

  isGroup

YES if the TTRosterEntry’s target is a TTGroup.

@property (nullable, nonatomic, retain) NSNumber *isGroup

Declared In

TTRosterEntry.h

  isUser

YES if the TTRosterEntry’s target is a TTUser.

@property (nullable, nonatomic, retain) NSNumber *isUser

Declared In

TTRosterEntry.h

  organizationToken

Organization token of the TTOrganization to which the TTRosterEntry belongs to.

@property (nullable, nonatomic, retain) NSString *organizationToken

Declared In

TTRosterEntry.h

  timestamp

Latest message received or sent for this TTRosterEntry. Epoch format.

@property (nullable, nonatomic, retain) NSNumber *timestamp

Declared In

TTRosterEntry.h

  token

TTRosterEntry token. Internal, use conversationHash instead.

@property (nullable, nonatomic, retain) NSString *token

Declared In

TTRosterEntry.h

  title

When set to YES, TTRosterEntry can only be deleted locally. Default is NO.

@property (nullable, nonatomic, retain) NSString *title

Declared In

TTRosterEntry.h

  department

When set to YES, TTRosterEntry can only be deleted locally. Default is NO.

@property (nullable, nonatomic, retain) NSString *department

Declared In

TTRosterEntry.h

  latestMessage

Latest TTMessage related to this TTRosterEntry.

@property (nullable, nonatomic, retain) TTMessage *latestMessage

Declared In

TTRosterEntry.h

  organization

TTOrganization related to this TTRosterEntry.

@property (nullable, nonatomic, retain) TTOrganization *organization

Declared In

TTRosterEntry.h

  target

The target of the TTRosterEntry. Can be a TTUser or a TTGroup (both inherit from TTParty).

@property (nullable, nonatomic, retain) TTParty *target

Declared In

TTRosterEntry.h

  dnd

Do not disturb state

@property (nullable, nonatomic, retain) NSNumber *dnd

Declared In

TTRosterEntry.h

  dndText

Do not disturb text

@property (nullable, nonatomic, retain) NSString *dndText

Declared In

TTRosterEntry.h

  autoforwardReceiver

Original Autoforwarding receiver token set by the roster target user in a P2P conversation.

@property (nullable, nonatomic, retain) NSString *autoforwardReceiver

Declared In

TTRosterEntry.h

  priority

Indicates if the Roster has a higher priorty (common scenarios will be unread priority messages or escalation groups).

@property (nullable, nonatomic, retain) NSNumber *priority

Declared In

TTRosterEntry.h

  hasUnreadPriorityMessage

Indicates if the Roster has unread priority messages.

@property (nullable, nonatomic, retain) NSNumber *hasUnreadPriorityMessage

Declared In

TTRosterEntry.h

  autoforward

Convenience getter for autoforwardReceiver is non-empty, when autoforward is enabled.

@property (readonly) BOOL autoforward

Declared In

TTRosterEntry.h

  service

Indicates if the Roster belongs to any service (like alerts).

@property (nullable, nonatomic, retain) NSString *service

Declared In

TTRosterEntry.h