Class SMSMessage
This class represents an SMS message containing the phone number that sent the message and the content (data) of the message.
Inheritance
System.Object
SMSMessage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public class SMSMessage
Remarks
This class is used within the library to read SMS messages sent to Cellular devices.
Constructors
SMSMessage(String, String)
Class constructor. Instantiates a new object of type SMSMessage with the given parameters.
Declaration
public SMSMessage(string phoneNumber, string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | phoneNumber | The phone number that sent the message. |
System.String | data | String containing the message text. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If |
System.ArgumentNullException | If |
Properties
Data
A string containing the data of the message.
Declaration
public string Data { get; }
Property Value
Type | Description |
---|---|
System.String |
PhoneNumber
The phone number that sent the message.
Declaration
public string PhoneNumber { get; }
Property Value
Type | Description |
---|---|
System.String |