SBDScheduledUserMessageParams Class Reference

Inherits from SBDUserMessageParams : SBDBaseMessageParams : NSObject
Declared in SBDScheduledUserMessageParams.h

Overview

Represents a schduled user message params.

  scheduledDateTimeString

The scheduled date to send a message. (YYYY-MM-DD hh:mm)

@property (strong, nullable, readonly) NSString *scheduledDateTimeString

Declared In

SBDScheduledUserMessageParams.h

  scheduledTimezone

The timezone for the scheduled date to send a message.

@property (strong, nullable, readonly) NSString *scheduledTimezone

Declared In

SBDScheduledUserMessageParams.h

– init

Don’t use this initializer. Initializes an instance of a user message params.

- (nullable instancetype)init

Return Value

nil as this method is unavailable.

Availability

3.0.90

Declared In

SBDUserMessageParams.h

– initWithMessage:year:month:day:hour:min:timezone:

Initializes this params instance with a text message and the date to send the message.

- (nullable instancetype)initWithMessage:(nonnull NSString *)message year:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour min:(NSInteger)min timezone:(nonnull NSString *)timezone

Parameters

message

The text message to be sent.

year

Year (YYYY), e.g. 2018.

month

Month (1~12).

day

Day (1~31).

hour

Hour (0~23).

min

Minute (0~59).

timezone

The timezone.

Return Value

SBDScheduledUserMessageParams instance.

Declared In

SBDScheduledUserMessageParams.h

– setScheduleWithYear:month:day:hour:min:timezone:

Sets the specific time to send a message.

- (BOOL)setScheduleWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day hour:(NSInteger)hour min:(NSInteger)min timezone:(nonnull NSString *)timezone

Parameters

year

Year (YYYY), e.g. 2018.

month

Month (1~12).

day

Day (1~31).

hour

Hour (0~23).

min

Minute (0~59).

timezone

The timezone.

Return Value

If YES, the values are valid.

Declared In

SBDScheduledUserMessageParams.h