Udostępnij za pośrednictwem


CommunicationSmsModelFactory.OptOutResponseItem Method

Definition

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
isOptedOut
Nullable<Boolean>

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