|
|
| |
|
|
|
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).
Methods
- Send() - send message.
- 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.
|
|
|
|
|
|
|