Package com.vonage.client.conversations
Class Member.Builder
java.lang.Object
com.vonage.client.conversations.Member.Builder
- Enclosing class:
Member
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the Member.channelType(ChannelType channelType) (REQUIRED) Top-level channel type.(OPTIONAL) TODO document thisfromChannel(Channel from) (OPTIONAL) Concrete channel to use when sending messages.knockingId(String knockingId) (OPTIONAL) Unique knocking identifier.media(MemberMedia media) (OPTIONAL) Media settings for this member.memberIdInviting(String memberIdInviting) (OPTIONAL) Unique member ID to invite.state(MemberState state) (REQUIRED) Invite or join a member to a conversation.(OPTIONAL) Concrete channel to use when receiving messages.(REQUIRED) Either the user ID or unique name is required.
-
Method Details
-
user
(REQUIRED) Either the user ID or unique name is required. This method will automatically determine which is provided. User IDs start withUSR-followed by a UUID.- Parameters:
userNameOrId- Either the unique user ID, or the name.- Returns:
- This builder.
-
state
(REQUIRED) Invite or join a member to a conversation.- Parameters:
state- The state as an enum.- Returns:
- This builder.
-
channelType
(REQUIRED) Top-level channel type. You should also provide fromChannel(Channel) and toChannel(Channel). If this is set to anything other than ChannelType.APP, then both fromChannel(Channel) and toChannel(Channel) must be of the same type as each other.- Parameters:
channelType- The channel type as an enum.- Returns:
- This builder.
-
fromChannel
(OPTIONAL) Concrete channel to use when sending messages. See com.vonage.client.users.channels for options.- Parameters:
from- The sender channel.- Returns:
- This builder.
- See Also:
-
toChannel
(OPTIONAL) Concrete channel to use when receiving messages. See com.vonage.client.users.channels for options.- Parameters:
to- The receiver channel.- Returns:
- This builder.
- See Also:
-
media
(OPTIONAL) Media settings for this member.- Parameters:
media- The media settings object.- Returns:
- This builder.
-
knockingId
(OPTIONAL) Unique knocking identifier.- Parameters:
knockingId- The knocking ID as a string.- Returns:
- This builder.
-
memberIdInviting
(OPTIONAL) Unique member ID to invite.- Parameters:
memberIdInviting- The inviting member ID, ornullif unspecified.- Returns:
- This builder.
-
from
(OPTIONAL) TODO document this- Parameters:
from- The from field.- Returns:
- This builder.
-
build
Builds the Member.- Returns:
- An instance of Member, populated with all fields from this builder.
-