Inherits from NSObject
Declared in NMPushObject.h
NMPushObject.m

Overview

NMRichPushObject class is used to store related data of a plain push message.

Tasks

Properties

alertText

Plain message of the push notification.

@property (nonatomic, strong) NSString *alertText

Discussion

Plain message of the push notification.

Declared In

NMPushObject.h

createDate

Creation Date of the push notification.

@property (nonatomic, strong) NSDate *createDate

Discussion

Creation Date of the push notification.

Declared In

NMPushObject.h

customPayload

Custom payload information that sent with push notification.

@property (nonatomic, strong) NSMutableDictionary *customPayload

Discussion

Custom payload information that sent with push notification.

Declared In

NMPushObject.h

notificationId

Id of the push notification that is sent to the devices.

@property (nonatomic, strong) NSString *notificationId

Discussion

Id of the push notification that is sent to the devices.

Declared In

NMPushObject.h

type

Type of the created push notification object.

@property (nonatomic, assign) NMNotificationType type

Discussion

Type of the created push notification object.

Warning: enum NotificationType options.

NotificationTypeStandard, plain-text push notification is sent to the relevant devices.

NotificationTypeRich, push notification that contains HTML-formatted rich content is sent to the relevant devices.

NotificationTypePopup, pop-up object that contains HTML-formatted content.

NotificationTypeURLPush, push notification that contains an URL for the rich content is sent to the relevant devices.

Declared In

NMPushObject.h

Class Methods

notificationTypeFromString:

Converts a relevant string format into NotificationType enum type.

+ (NMNotificationType)notificationTypeFromString:(NSString *)typeString

Parameters

typeString

String representation of the push notification type.

Return Value

Corresponding enum type of the push notification type.

Discussion

Converts a relevant string format into NotificationType enum type.

Declared In

NMPushObject.h

stringFromNotificationType:

Converts NotificationType enum type into string format that refers to notification type.

+ (NSString *)stringFromNotificationType:(NMNotificationType)type

Parameters

type

Enum type of the push notification type.

Return Value

Corresponding string of the push notification type.

Discussion

Converts NotificationType enum type into string format that refers to notification type.

Declared In

NMPushObject.h