EkoMessage


@interface EkoMessage : NSObject

Message object

  • Uniquely identifies this message.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) NSString *messageId;

    Swift

    var messageId: String { get }
  • Identifies the channel where this message has been posted.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) NSString *channelId;

    Swift

    var channelId: String { get }
  • The message author userId.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) NSString *userId;

    Swift

    var userId: String { get }
  • The message author.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) EkoUser *user;

    Swift

    var user: EkoUser? { get }
  • The message data.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSDictionary *data;

    Swift

    var data: [AnyHashable : Any]? { get }
  • The reaction data.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSDictionary *reactions;

    Swift

    var reactions: [AnyHashable : Any]? { get }
  • The message type.

    Declaration

    Objective-C

    @property (readonly, nonatomic) EkoMessageType messageType;

    Swift

    var messageType: EkoMessageType { get }
  • Whether the message has been deleted.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isDeleted;

    Swift

    var isDeleted: Bool { get }
  • The sync state of the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic) EkoSyncState syncState;

    Swift

    var syncState: EkoSyncState { get }
  • Number of people that have flagged this message

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger flagCount;

    Swift

    var flagCount: UInt { get }
  • Number of reaction on this message

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger reactionsCount;

    Swift

    var reactionsCount: UInt { get }
  • Number of people that have read this message

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger readByCount;

    Swift

    var readByCount: UInt { get }
  • The message creation time.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) NSDate *createdAtDate;

    Swift

    var createdAtDate: Date { get }
  • The last time this message has been updated.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nonnull) NSDate *editedAtDate;

    Swift

    var editedAtDate: Date { get }
  • The message tags.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray<NSString *> *tags;

    Swift

    unowned(unsafe) var tags: NSArray { get }
  • The list of my reactions to this message.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray<NSString *> *myReactions;

    Swift

    unowned(unsafe) var myReactions: NSArray { get }
  • The messageId of the parent message.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *parentId;

    Swift

    var parentId: String? { get set }
  • The number of children of this message.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger childrenNumber;

    Swift

    var childrenNumber: UInt { get set }