MessageExpiration Property

Denotes the validity period of the current message.

Syntax

ANSI (Cross Platform)
char* GetMessageExpiration();
int SetMessageExpiration(const char* lpszMessageExpiration); Unicode (Windows) LPWSTR GetMessageExpiration();
INT SetMessageExpiration(LPCWSTR lpszMessageExpiration);
@property (nonatomic,readwrite,assign,getter=messageExpiration,setter=setMessageExpiration:) NSString* messageExpiration;
- (NSString*)messageExpiration;
- (void)setMessageExpiration:(NSString*)newMessageExpiration;
#define PID_SMPP_MESSAGEEXPIRATION 10

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_SMPP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_SMPP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property indicates the MC expiration time, after which the message should be discarded if not delivered to the destination. It can be set using absolute or relative time formats.

Absolute Time Format is a 16-character string represented as "YYMMDDhhmmsstnnp" where:

YYthe last two digits of the year (00-99)
MMmonth (01-12)
DDday (01-31)
hhhour (00-23)
mmminute (00-59)
sssecond (00-59)
ttenths of a second (0-9)
nnquarter-hour time difference between local time and UTC time (00-48)
p"+" or "-" indicating the direction of the time offset in nn

Relative Time Format is the same 16-character string where "p" should be set to "R" for "relative". For relative time, "tnn" are ignored and thus should be set to a constant value of "000".

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]