Inherits from QBCEntity : NSObject
Conforms to NSCoding
NSCopying
Declared in QBMEvent.h

Overview

QBMEvent class interface. Event representation. If you want to send Apple push - use the QBMApplePushEvent subclass.

Tasks

Properties

active

@property (nonatomic, assign) BOOL active
Discussion

Event state.

If you want to send specific notification more than once - just edit Event & set this field to ‘YES’, Then push will be send immediately, without creating a new one Event.

Declared In

QBMEvent.h

date

@property (nonatomic, strong, nullable) NSDate *date
Discussion

The date of the event when it’ll fire.

Note: Required: No, if the envent’s ‘type’ = QBMEventTypeOneShot or QBMEventTypeMultiShot. Yes, if the envent’s ‘type’ = QBMEventTypeFixedDate or QBMEventTypePeriodDate.

Declared In

QBMEvent.h

endDate

@property (nonatomic, strong, nullable) NSDate *endDate
Discussion

Date of completion of the event.

Note: Can’t be less than the ‘date’. Required: Yes, if the envent’s ‘type’ = QBMEventTypeMultiShot and ‘notificationType’ = QBMNotificationTypePull

Declared In

QBMEvent.h

message

@property (nonatomic, strong, nullable) id message
Discussion

Event message.

Declared In

QBMEvent.h

name

@property (nonatomic, copy, nullable) NSString *name
Discussion

The name of the event. Service information. Only for the user.

Declared In

QBMEvent.h

notificationType

@property (nonatomic, assign) QBMNotificationType notificationType
Discussion

Notification type.

Declared In

QBMEvent.h

occuredCount

@property (nonatomic, assign) NSUInteger occuredCount
Discussion

Event’s occured count.

Declared In

QBMEvent.h

period

@property (nonatomic, assign) NSUInteger period
Discussion

The period of the event in seconds. Possible values: 86400 (1 day) 604800 (1 week) 2592000 (1 month) 31557600 (1 year). Required: No, if the envent’s ‘type’ = QBMEventTypeOneShot, QBMEventTypeMultiShot or QBMEventTypeFixedDate Yes, if the envent’s ‘type’ = QBMEventTypePeriodDate

Declared In

QBMEvent.h

pushType

@property (nonatomic, assign) QBMPushType pushType
Discussion

Push type.

Declared In

QBMEvent.h

senderID

@property (nonatomic, assign) NSUInteger senderID
Discussion

Event’s sender ID.

Declared In

QBMEvent.h

type

@property (nonatomic, assign) QBMEventType type
Discussion

Event type.

Declared In

QBMEvent.h

usersExternalIDs

@property (nonatomic, copy, nullable) NSString *usersExternalIDs
Discussion

Recipients - should contain a string of user external ids divided by comas.

Declared In

QBMEvent.h

usersIDs

@property (nonatomic, copy, nullable) NSString *usersIDs
Discussion

Recipients - should contain a string of user ids divided by comas.

Declared In

QBMEvent.h

usersTagsAll

@property (nonatomic, copy, nullable) NSString *usersTagsAll
Discussion

Recipients tags - should contain a string of user tags divided by comas. Recipients (users) must exactly have ONLY ALL tags that specified in list.

Declared In

QBMEvent.h

usersTagsAny

@property (nonatomic, copy, nullable) NSString *usersTagsAny
Discussion

Recipients tags - should contain a string of user tags divided by comas. Recipients (users) must have at LEAST ONE tag that specified in list.

Declared In

QBMEvent.h

usersTagsExclude

@property (nonatomic, copy, nullable) NSString *usersTagsExclude
Discussion

Recipients tags - should contain a string of user tags divided by comas. Recipients (users) mustn’t have tags that specified in list.

Declared In

QBMEvent.h

Class Methods

event

+ (QBMEvent *)event
Discussion

Create new event.

Return Value

New instance of QBMEvent

Declared In

QBMEvent.h

eventTypeFromString:

+ (QBMEventType)eventTypeFromString:(nullable NSString *)eventType

eventTypeToString:

+ (nullable NSString *)eventTypeToString:(QBMEventType)eventType

messageFromString:

+ (nullable NSDictionary<NSString*,NSString*> *)messageFromString:(nullable NSString *)message

messageToString:

+ (NSString *)messageToString:(nullable NSDictionary<NSString*,NSString*> *)message

notificationTypeFromString:

+ (QBMNotificationType)notificationTypeFromString:(nullable NSString *)notificationType

notificationTypeToString:

+ (nullable NSString *)notificationTypeToString:(QBMNotificationType)notificationType

pushTypeFromString:

+ (QBMPushType)pushTypeFromString:(nullable NSString *)pushType

pushTypeToString:

+ (nullable NSString *)pushTypeToString:(QBMPushType)pushType

Instance Methods

prepareMessage

- (void)prepareMessage