-
Notifications
You must be signed in to change notification settings - Fork 81
Updates conversations API with recent features. #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
denizkilic
merged 4 commits into
messagebird:master
from
mehmetminanc:conversations-updates
Oct 9, 2020
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 133 additions & 0 deletions
133
api/src/main/java/com/messagebird/objects/conversations/ConversationContentEmail.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,133 @@ | ||
| package com.messagebird.objects.conversations; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| public class ConversationContentEmail { | ||
| private String id; | ||
| private ConversationEmailRecipient from; | ||
| private List<ConversationEmailRecipient> to; | ||
| private String subject; | ||
| private ConversationEmailContent content; | ||
| private String replyTo; | ||
| private String returnPath; | ||
| private Map<String, String> headers; | ||
| private ConversationEmailTracking tracking; | ||
| private boolean performSubstitutions; | ||
| private List<ConversationEmailAttachment> attachments; | ||
| private List<ConversationEmailInlineImage> inlineImages; | ||
|
|
||
| public String getId() { | ||
| return id; | ||
| } | ||
|
|
||
| public void setId(String id) { | ||
| this.id = id; | ||
| } | ||
|
|
||
| public ConversationEmailRecipient getFrom() { | ||
| return from; | ||
| } | ||
|
|
||
| public void setFrom(ConversationEmailRecipient from) { | ||
| this.from = from; | ||
| } | ||
|
|
||
| public List<ConversationEmailRecipient> getTo() { | ||
| return to; | ||
| } | ||
|
|
||
| public void setTo(List<ConversationEmailRecipient> to) { | ||
| this.to = to; | ||
| } | ||
|
|
||
| public String getSubject() { | ||
| return subject; | ||
| } | ||
|
|
||
| public void setSubject(String subject) { | ||
| this.subject = subject; | ||
| } | ||
|
|
||
| public ConversationEmailContent getContent() { | ||
| return content; | ||
| } | ||
|
|
||
| public void setContent(ConversationEmailContent content) { | ||
| this.content = content; | ||
| } | ||
|
|
||
| public String getReplyTo() { | ||
| return replyTo; | ||
| } | ||
|
|
||
| public void setReplyTo(String replyTo) { | ||
| this.replyTo = replyTo; | ||
| } | ||
|
|
||
| public String getReturnPath() { | ||
| return returnPath; | ||
| } | ||
|
|
||
| public void setReturnPath(String returnPath) { | ||
| this.returnPath = returnPath; | ||
| } | ||
|
|
||
| public Map<String, String> getHeaders() { | ||
| return headers; | ||
| } | ||
|
|
||
| public void setHeaders(Map<String, String> headers) { | ||
| this.headers = headers; | ||
| } | ||
|
|
||
| public ConversationEmailTracking getTracking() { | ||
| return tracking; | ||
| } | ||
|
|
||
| public void setTracking(ConversationEmailTracking tracking) { | ||
| this.tracking = tracking; | ||
| } | ||
|
|
||
| public boolean isPerformSubstitutions() { | ||
| return performSubstitutions; | ||
| } | ||
|
|
||
| public void setPerformSubstitutions(boolean performSubstitutions) { | ||
| this.performSubstitutions = performSubstitutions; | ||
| } | ||
|
|
||
| public List<ConversationEmailAttachment> getAttachments() { | ||
| return attachments; | ||
| } | ||
|
|
||
| public void setAttachments(List<ConversationEmailAttachment> attachments) { | ||
| this.attachments = attachments; | ||
| } | ||
|
|
||
| public List<ConversationEmailInlineImage> getInlineImages() { | ||
| return inlineImages; | ||
| } | ||
|
|
||
| public void setInlineImages(List<ConversationEmailInlineImage> inlineImages) { | ||
| this.inlineImages = inlineImages; | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return "ConversationContentEmail{" + | ||
| "id='" + id + '\'' + | ||
| ", from=" + from + | ||
| ", to=" + to + | ||
| ", subject='" + subject + '\'' + | ||
| ", content=" + content + | ||
| ", replyTo='" + replyTo + '\'' + | ||
| ", returnPath='" + returnPath + '\'' + | ||
| ", headers=" + headers + | ||
| ", tracking=" + tracking + | ||
| ", performSubstitutions=" + performSubstitutions + | ||
| ", attachments=" + attachments + | ||
| ", inlineImages=" + inlineImages + | ||
| '}'; | ||
| } | ||
| } | ||
mehmetminanc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
60 changes: 60 additions & 0 deletions
60
api/src/main/java/com/messagebird/objects/conversations/ConversationEmailAttachment.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| package com.messagebird.objects.conversations; | ||
|
|
||
| public class ConversationEmailAttachment { | ||
| private String id; | ||
| private String name; | ||
| private String type; | ||
| private String URL; | ||
| private String length; | ||
|
|
||
| public String getId() { | ||
| return id; | ||
| } | ||
|
|
||
| public void setId(String id) { | ||
| this.id = id; | ||
| } | ||
|
|
||
| public String getName() { | ||
| return name; | ||
| } | ||
|
|
||
| public void setName(String name) { | ||
| this.name = name; | ||
| } | ||
|
|
||
| public String getType() { | ||
| return type; | ||
| } | ||
|
|
||
| public void setType(String type) { | ||
| this.type = type; | ||
| } | ||
|
|
||
| public String getURL() { | ||
| return URL; | ||
| } | ||
|
|
||
| public void setURL(String URL) { | ||
| this.URL = URL; | ||
| } | ||
|
|
||
| public String getLength() { | ||
| return length; | ||
| } | ||
|
|
||
| public void setLength(String length) { | ||
| this.length = length; | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return "ConversationEmailAttachment{" + | ||
| "id='" + id + '\'' + | ||
| ", name='" + name + '\'' + | ||
| ", type='" + type + '\'' + | ||
| ", URL='" + URL + '\'' + | ||
| ", length='" + length + '\'' + | ||
| '}'; | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
api/src/main/java/com/messagebird/objects/conversations/ConversationEmailContent.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| package com.messagebird.objects.conversations; | ||
|
|
||
| public class ConversationEmailContent { | ||
| private String html; | ||
| private String text; | ||
|
|
||
| public String getHtml() { | ||
| return html; | ||
| } | ||
|
|
||
| public void setHtml(String html) { | ||
| this.html = html; | ||
| } | ||
|
|
||
| public String getText() { | ||
| return text; | ||
| } | ||
|
|
||
| public void setText(String text) { | ||
| this.text = text; | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return "ConversationEmailContent{" + | ||
| "html='" + html + '\'' + | ||
| ", text='" + text + '\'' + | ||
| '}'; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.