Struct CreateMemberRequest
- Namespace
- Vonage.Conversations.CreateMember
- Assembly
- Vonage.dll
public readonly struct CreateMemberRequest : IVonageRequest
- Implements
- Inherited Members
Properties
Channel
[JsonPropertyOrder(2)]
public MemberChannel Channel { get; }
Property Value
ConversationId
[JsonIgnore]
public string ConversationId { get; }
Property Value
From
[JsonConverter(typeof(MaybeJsonConverter<string>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<string> From { get; }
Property Value
InvitingMemberId
Member ID of the member that sends the invitation
[JsonConverter(typeof(MaybeJsonConverter<string>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<string> InvitingMemberId { get; }
Property Value
KnockingId
Knocker ID. A knocker is a pre-member of a conversation who does not exist yet
[JsonConverter(typeof(MaybeJsonConverter<string>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<string> KnockingId { get; }
Property Value
Media
Details about the current media setting states
[JsonConverter(typeof(MaybeJsonConverter<MemberMedia>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<MemberMedia> Media { get; }
Property Value
State
Invite or join a member to a conversation
[JsonConverter(typeof(EnumDescriptionJsonConverter<CreateMemberRequest.AvailableStates>))]
[JsonPropertyOrder(0)]
public CreateMemberRequest.AvailableStates State { get; }
Property Value
User
Either the user id or name is required.
[JsonPropertyOrder(1)]
public MemberUser User { get; }
Property Value
Methods
Build()
Initializes a builder for CreateMemberRequest.
public static IBuilderForConversationId Build()
Returns
- IBuilderForConversationId
The builder.
BuildRequestMessage()
Converts the request to a HttpRequest.
public HttpRequestMessage BuildRequestMessage()
Returns
- HttpRequestMessage
The Http request.