public class SMSMessage extends Object
This class is used within the XBee Java Library to read SMS sent to Cellular devices.
| Constructor and Description |
|---|
SMSMessage(String phoneNumber,
String data)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getData()
Returns a string containing the data of the message.
|
String |
getPhoneNumber()
Returns the phone number that sent the message.
|
public SMSMessage(String phoneNumber, String data)
SMSMessage with the given parameters.phoneNumber - The phone number that sent the message.data - String containing the message text.IllegalArgumentException - if phoneNumber is invalid.NullPointerException - if phoneNumber == null or
if data == null.public String getData()
public String getPhoneNumber()
© Copyright 2014 - 2019 Digi International Inc. All rights reserved.