---
description: Wisej.Hybrid.Shared.Communication.SmsMessage
---

# SmsMessage

Namespace: **Wisej.Hybrid.Shared.Communication**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Represents a single SMS message.

{% tabs %}
{% tab title="C#" %}
```csharp
public class SmsMessage
```
{% endtab %}

{% tab title="VB.NET" %}
```visual-basic
Public Class SmsMessage
```
{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SmsMessage()

Initializes a new instance of the [SmsMessage](wisej.hybrid.shared.communication.smsmessage) class.

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SmsMessage(body, recipient)

Initializes a new instance of the [SmsMessage](wisej.hybrid.shared.communication.smsmessage) class.

| Name          | Type                                                          | Description                                                     |
| ------------- | ------------------------------------------------------------- | --------------------------------------------------------------- |
| **body**      | [String](https://docs.microsoft.com/dotnet/api/system.string) | The body text that is used to prefill the composed SMS message. |
| **recipient** | [String](https://docs.microsoft.com/dotnet/api/system.string) | A single recipient that is added to the composed SMS message.   |

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SmsMessage(body, recipients)

Initializes a new instance of the [SmsMessage](wisej.hybrid.shared.communication.smsmessage) class.

| Name           | Type                                                                                                   | Description                                                            |
| -------------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------- |
| **body**       | [String](https://docs.microsoft.com/dotnet/api/system.string)                                          | The body text that is used to prefill the composed SMS message.        |
| **recipients** | [IEnumerable\<String>](https://docs.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | A collection of recipients that are added to the composed SMS message. |

Values in _recipients_ that are or whitespace are not added as recipients.

## Properties

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Body

[String](https://docs.microsoft.com/dotnet/api/system.string): Gets or sets the body of this message.

### ![](https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Recipients

[List\<String>](https://docs.microsoft.com/dotnet/api/system.collections.generic.list-1): Gets or sets the recipients for this message.
