Class Messaging
- java.lang.Object
-
- com.stackone.stackone_client_java.Messaging
-
public class Messaging extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncMessaging async()
Switches to the async SDK.- Returns:
- The async SDK
-
listConversations
public MessagingListConversationsRequestBuilder listConversations()
List Conversations- Returns:
- The call builder
-
listConversations
public MessagingListConversationsResponse listConversations(MessagingListConversationsRequest request)
List Conversations- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listConversations
public MessagingListConversationsResponse listConversations(MessagingListConversationsRequest request, java.util.Optional<Options> options)
List Conversations- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createConversation
public MessagingCreateConversationRequestBuilder createConversation()
Create Conversation- Returns:
- The call builder
-
createConversation
public MessagingCreateConversationResponse createConversation(java.lang.String xAccountId, MessagingCreateConversationRequestDto messagingCreateConversationRequestDto)
Create Conversation- Parameters:
xAccountId- The account identifiermessagingCreateConversationRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
createConversation
public MessagingCreateConversationResponse createConversation(java.lang.String xAccountId, MessagingCreateConversationRequestDto messagingCreateConversationRequestDto, java.util.Optional<Options> options)
Create Conversation- Parameters:
xAccountId- The account identifiermessagingCreateConversationRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getConversation
public MessagingGetConversationRequestBuilder getConversation()
Get Conversation- Returns:
- The call builder
-
getConversation
public MessagingGetConversationResponse getConversation(MessagingGetConversationRequest request)
Get Conversation- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getConversation
public MessagingGetConversationResponse getConversation(MessagingGetConversationRequest request, java.util.Optional<Options> options)
Get Conversation- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
downloadMessagingAttachment
public MessagingDownloadMessagingAttachmentRequestBuilder downloadMessagingAttachment()
Download Attachment- Returns:
- The call builder
-
downloadMessagingAttachment
public MessagingDownloadMessagingAttachmentResponse downloadMessagingAttachment(MessagingDownloadMessagingAttachmentRequest request)
Download Attachment- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
downloadMessagingAttachment
public MessagingDownloadMessagingAttachmentResponse downloadMessagingAttachment(MessagingDownloadMessagingAttachmentRequest request, java.util.Optional<Options> options)
Download Attachment- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listAttachments
public MessagingListAttachmentsRequestBuilder listAttachments()
List Attachments- Returns:
- The call builder
-
listAttachments
public MessagingListAttachmentsResponse listAttachments(MessagingListAttachmentsRequest request)
List Attachments- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listAttachments
public MessagingListAttachmentsResponse listAttachments(MessagingListAttachmentsRequest request, java.util.Optional<Options> options)
List Attachments- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAttachment
public MessagingGetAttachmentRequestBuilder getAttachment()
Get Attachment- Returns:
- The call builder
-
getAttachment
public MessagingGetAttachmentResponse getAttachment(MessagingGetAttachmentRequest request)
Get Attachment- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAttachment
public MessagingGetAttachmentResponse getAttachment(MessagingGetAttachmentRequest request, java.util.Optional<Options> options)
Get Attachment- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listUsers
public MessagingListUsersRequestBuilder listUsers()
List Users- Returns:
- The call builder
-
listUsers
public MessagingListUsersResponse listUsers(MessagingListUsersRequest request)
List Users- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listUsers
public MessagingListUsersResponse listUsers(MessagingListUsersRequest request, java.util.Optional<Options> options)
List Users- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public MessagingGetUserRequestBuilder getUser()
Get User- Returns:
- The call builder
-
getUser
public MessagingGetUserResponse getUser(MessagingGetUserRequest request)
Get User- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getUser
public MessagingGetUserResponse getUser(MessagingGetUserRequest request, java.util.Optional<Options> options)
Get User- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listConversationMessages
public MessagingListConversationMessagesRequestBuilder listConversationMessages()
List Conversation Messages- Returns:
- The call builder
-
listConversationMessages
public MessagingListConversationMessagesResponse listConversationMessages(MessagingListConversationMessagesRequest request)
List Conversation Messages- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listConversationMessages
public MessagingListConversationMessagesResponse listConversationMessages(MessagingListConversationMessagesRequest request, java.util.Optional<Options> options)
List Conversation Messages- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getMessage
public MessagingGetMessageRequestBuilder getMessage()
Get Message- Returns:
- The call builder
-
getMessage
public MessagingGetMessageResponse getMessage(MessagingGetMessageRequest request)
Get Message- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getMessage
public MessagingGetMessageResponse getMessage(MessagingGetMessageRequest request, java.util.Optional<Options> options)
Get Message- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
sendMessage
public MessagingSendMessageRequestBuilder sendMessage()
Send Message- Returns:
- The call builder
-
sendMessage
public MessagingSendMessageResponse sendMessage(java.lang.String xAccountId, MessagingMessageSendRequestDto messagingMessageSendRequestDto)
Send Message- Parameters:
xAccountId- The account identifiermessagingMessageSendRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
sendMessage
public MessagingSendMessageResponse sendMessage(java.lang.String xAccountId, MessagingMessageSendRequestDto messagingMessageSendRequestDto, java.util.Optional<Options> options)
Send Message- Parameters:
xAccountId- The account identifiermessagingMessageSendRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-