Table of Contents

Struct CreateEventRequest

Namespace
Vonage.Conversations.CreateEvent
Assembly
Vonage.dll
public readonly struct CreateEventRequest : IVonageRequest
Implements
Inherited Members

Properties

Body

The event body.

[JsonPropertyOrder(2)]
public JsonElement Body { get; }

Property Value

JsonElement

ConversationId

The conversation Id.

[JsonIgnore]
public string ConversationId { get; }

Property Value

string

From

The member Id.

[JsonPropertyOrder(1)]
[JsonConverter(typeof(MaybeJsonConverter<string>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<string> From { get; }

Property Value

Maybe<string>

Type

The type of event.

[JsonPropertyOrder(0)]
public string Type { get; }

Property Value

string

Methods

Build()

Initializes a builder.

public static IBuilderForConversationId Build()

Returns

IBuilderForConversationId

The builder.

BuildRequestMessage()

Converts the request to a HttpRequest.

public HttpRequestMessage BuildRequestMessage()

Returns

HttpRequestMessage

The Http request.