| |
|
|
|
SMSMessage class
Full name
HeadwindGSM.SMSMessage
Properties
- String From - source address;
- String To - destination address;
- String Body - message body;
- String URL - URL (for WAP Push message);
- Long ID - message ID (set by Headwind GSM modem driver);
- Long Timestamp - UNIX timestamp of message creation date;
- Long Expired - UNIX timestamp of message expiration date;
- Long Flags - message flags:
0x0001 - show SMS on the phone screen (Flash SMS)
0x0002 - unread
0x0004 - request delivery report
- [read-only] Long SegmentNumber - number of segments for long message;
- [read-only] String Coding - message coding (available values: "7-bit", "8-bit", "UCS-2", "utf-8");
- [read-only] String StatusStr - message status (available values: "pending" "sent" "failed");
- [read-only] Long StatusCode - message status code (0 - pending, 1 - sent, 2 - failed).
- [read-only] Long ReferenceID - reference ID set by SMSC when the message is sent (0-255). This reference ID is used in delivery reports.
Methods
- Send() - send message.
- SendSync(Bool bWaitDelivery, Long nTimeout) - send message synchronously (the function does not return until the SMS is sent or delivered, or the timeout occurs). Timeout is set in seconds, the flag bWaitDelivery tells whether the delivery report is requested;
- SendAndTrace(Object observer) - send message and trace its status using the
SMSDriver class (which is sent as the method parameter). When the SMS is sent or delivered,
an "SMSStatusChanged" event is raised.
|
|
|
|