TTMessage Class Reference

Inherits from NSManagedObject
Declared in TTMessage.h

Overview

A TTMessage object represents a message.

  body

The actual message string.

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

Declared In

TTMessage.h

  conversationHash

Conversation hash of the message.

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

Declared In

TTMessage.h

  createdTime

Time the message was created.

@property (nullable, nonatomic, retain) NSDate *createdTime

Declared In

TTMessage.h

  dor

Delete on read. Boolean value, sets message ttl to 60 seconds.

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

Declared In

TTMessage.h

  expired

If dor property is YES, expired property will be YES once expireTime has passed.

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

Declared In

TTMessage.h

  expireTime

Time the TTMessage will expire.

@property (nullable, nonatomic, retain) NSDate *expireTime

Declared In

TTMessage.h

  forward

Boolean value. If YES this message was forwarded from another user.

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

Declared In

TTMessage.h

  autoforward

Int16 value, mapped to TTAutoforwardType enumeration.

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

Declared In

TTMessage.h

  isLocal

Boolean value. Yes if the message has not updated on the server, NO otherwise.

@property (nonnull, nonatomic, retain) NSNumber *isLocal

Declared In

TTMessage.h

  localToken

Local token used until TTMessage is saved to server.

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

Declared In

TTMessage.h

  orgToken

Organization token to which the message is related.

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

Declared In

TTMessage.h

  originalSenderDisplayName

Original Sender’s name for the forwarded message.

@property (nullable, nonatomic, readonly) NSString *originalSenderDisplayName

Declared In

TTMessage.h

  originalSenderToken

Original Sender token for the forwarded message.

@property (nullable, nonatomic, readonly) NSString *originalSenderToken

Declared In

TTMessage.h

  originalTimestamp

Original creation date for forwarded message.

@property (nullable, nonatomic, retain) NSDate *originalTimestamp

Declared In

TTMessage.h

  recipientOrganizationToken

Organization token of the TTMessage’s recepient.

@property (nonnull, nonatomic, retain) NSString *recipientOrganizationToken

Declared In

TTMessage.h

  senderOrganizationToken

Organization token of the TTMessage’s sender.

@property (nonnull, nonatomic, retain) NSString *senderOrganizationToken

Declared In

TTMessage.h

  sortNumber

Arrival index of this TTMessage’s instance.

@property (nonnull, nonatomic, retain) NSNumber *sortNumber

Declared In

TTMessage.h

  sortSeries

When sortNumber property reached it’s max value, sortSeries will be incremented by 1 to create a new series.

@property (nonnull, nonatomic, retain) NSNumber *sortSeries

Declared In

TTMessage.h

  status

TTMessage status. See TTKitConstants for possible values.

@property (nonnull, nonatomic, retain) NSString *status

Declared In

TTMessage.h

  token

Object Token. Internal use.

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

Declared In

TTMessage.h

  ttl

TTMessage’s time to live in minutes.

@property (nonnull, nonatomic, retain) NSNumber *ttl

Declared In

TTMessage.h

  isBang

Whether this TTMessage is a bang or not.

@property (nonnull, nonatomic, retain) NSNumber *isBang

Declared In

TTMessage.h

  attachmentDescriptors

An NSOrderedSet containing all TTAttachmentDescriptors, which describe all attachments to this message.

@property (nullable, nonatomic, retain) NSOrderedSet *attachmentDescriptors

Declared In

TTMessage.h

  group

The related group to this message.

@property (nullable, nonatomic, retain) TTGroup *group

Declared In

TTMessage.h

  messageStatus

An NSSet containing all status event for a group message with more than 1 receipent.

@property (nullable, nonatomic, retain) NSSet *messageStatus

Declared In

TTMessage.h

  metadata

All metadata related to this message.

@property (nullable, nonatomic, retain) NSSet *metadata

Declared In

TTMessage.h

  recipient

The recipient. Can be either a TTGroup or a TTUser.

@property (nonnull, nonatomic, retain) TTParty *recipient

Declared In

TTMessage.h

  sender

The sender. Can be either a TTGroup or a TTUser.

@property (nonnull, nonatomic, retain) TTParty *sender

Declared In

TTMessage.h

  originalSender

The original sender of a forwarded message.

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

Declared In

TTMessage.h

  autoforwardUser

The user of an autoforwarded message.

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

Declared In

TTMessage.h

  senderRole

The message sender’s role.

@property (nullable, nonatomic, retain) TTRole *senderRole

Declared In

TTMessage.h

  groupStatus

Placeholder string, not being used

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

Declared In

TTMessage.h

  messageType

Indicates the type of message (0 = normal, 1 = DND Auto-Forward notification)

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

Declared In

TTMessage.h

  priority

Indicates if the message is of higher priority (0 = normal, 1 = High priority)

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

Declared In

TTMessage.h

  isAutomatedMessage

Indicates message was a system-generated automated message, Example: DND Auto-Forward reciever set/unset notifications.

@property (readonly) BOOL isAutomatedMessage

Declared In

TTMessage.h

  sendDelivered

For internal use, should not be changed.

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

Declared In

TTMessage.h

  ignoreApiUpdates

@property (nonatomic) BOOL ignoreApiUpdates

  encryptedBody

@property (nullable, nonatomic) NSData *encryptedBody

  ehrEvent

The related EHR event to this message.

@property (nullable, nonatomic, retain) TTEHREvent *ehrEvent

Declared In

TTMessage.h

  alertEvent

The related Alert event to this message.

@property (nullable, nonatomic, retain) TTAlertEvent *alertEvent

Declared In

TTMessage.h

  escalation

The related escalation to this message.

@property (nullable, nonatomic, retain) TTEscalation *escalation

Declared In

TTMessage.h

  detectedDatas

Set of data that is detected from the message body. For types, see TTDetectedMessageType.

@property (nullable, nonatomic, retain) NSSet<TTDetectedData*> *detectedDatas

Declared In

TTMessage.h

  didProcessDetectedData

A BOOL value indicating whether the message has been processed for detectedData already.

@property (nonnull, nonatomic, retain) NSNumber *didProcessDetectedData

Declared In

TTMessage.h

  sectionDate

sectionDate is being used to section message FetchedResultsController reuslts into section by day.

@property (nullable, nonatomic, retain) NSDate *sectionDate

Declared In

TTMessage.h

  teamRequest

Team Request Object.

@property (nullable, nonatomic, retain) TTTeamRequest *teamRequest

Declared In

TTMessage.h