TTRoleGroup Class Reference

Inherits from TTGroup : TTParty : NSManagedObject
Declared in TTRoleGroup.h

Overview

A group that represents a one on one conversation with a role.

This is a way to mask a group with role(s) and owner(s) as a P2P conversation, so a “P2P” between a user and a role (and its owner) makes a TTRoleGroup.

  conversationTarget

The other member of the conversation.

@property (nullable, nonatomic, retain) TTUser *conversationTarget

Discussion

If a role (Doctor) is in a conversation with a user (Patient), to the doctor, the conversationTarget is the patient. To the patient, the conversationTarget is the doctor (TTRole is a subclass of TTUser).

Note: This is mainly used on the inbox to determine which avatar to show, and in conversation to determine the recipient of the messages/calls.

Declared In

TTRoleGroup.h