CommunicationSmsModelFactory.OptOutResponseItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of OptOutResponseItem.
public static Azure.Communication.Sms.Models.OptOutResponseItem OptOutResponseItem (string to = default, int httpStatusCode = 0, bool? isOptedOut = default, string errorMessage = default);
static member OptOutResponseItem : string * int * Nullable<bool> * string -> Azure.Communication.Sms.Models.OptOutResponseItem
Public Shared Function OptOutResponseItem (Optional to As String = Nothing, Optional httpStatusCode As Integer = 0, Optional isOptedOut As Nullable(Of Boolean) = Nothing, Optional errorMessage As String = Nothing) As OptOutResponseItem
Parameters
- to
- String
The recipient phone number (in E.164 format).
- httpStatusCode
- Int32
Optional flag specifying if number was Opted Out from receiving messages.
- errorMessage
- String
Optional error message in case of 4xx/5xx errors.
Returns
A new OptOutResponseItem instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET