|
| 1 | +package com.messagebird.objects.conversations; |
| 2 | + |
| 3 | +public class ConversationSendRequest { |
| 4 | + private String to; |
| 5 | + private ConversationContentType type; |
| 6 | + private ConversationContent content; |
| 7 | + private String from; |
| 8 | + private String reportUrl; |
| 9 | + private ConversationFallbackOption fallback; |
| 10 | + |
| 11 | + public ConversationSendRequest(String to, ConversationContentType type, ConversationContent content, String from, String reportUrl, ConversationFallbackOption fallback) { |
| 12 | + this.to = to; |
| 13 | + this.type = type; |
| 14 | + this.content = content; |
| 15 | + this.from = from; |
| 16 | + this.reportUrl = reportUrl; |
| 17 | + this.fallback = fallback; |
| 18 | + } |
| 19 | + |
| 20 | + public ConversationSendRequest() { |
| 21 | + } |
| 22 | + |
| 23 | + |
| 24 | + public String getTo() { |
| 25 | + return to; |
| 26 | + } |
| 27 | + |
| 28 | + public void setTo(String to) { |
| 29 | + this.to = to; |
| 30 | + } |
| 31 | + |
| 32 | + public ConversationContentType getType() { |
| 33 | + return type; |
| 34 | + } |
| 35 | + |
| 36 | + public void setType(ConversationContentType type) { |
| 37 | + this.type = type; |
| 38 | + } |
| 39 | + |
| 40 | + public ConversationContent getContent() { |
| 41 | + return content; |
| 42 | + } |
| 43 | + |
| 44 | + public void setContent(ConversationContent content) { |
| 45 | + this.content = content; |
| 46 | + } |
| 47 | + |
| 48 | + public String getFrom() { |
| 49 | + return from; |
| 50 | + } |
| 51 | + |
| 52 | + public void setFrom(String from) { |
| 53 | + this.from = from; |
| 54 | + } |
| 55 | + |
| 56 | + public String getReportUrl() { |
| 57 | + return reportUrl; |
| 58 | + } |
| 59 | + |
| 60 | + public void setReportUrl(String reportUrl) { |
| 61 | + this.reportUrl = reportUrl; |
| 62 | + } |
| 63 | + |
| 64 | + public ConversationFallbackOption getFallback() { |
| 65 | + return fallback; |
| 66 | + } |
| 67 | + |
| 68 | + public void setFallback(ConversationFallbackOption fallback) { |
| 69 | + this.fallback = fallback; |
| 70 | + } |
| 71 | + |
| 72 | + @Override |
| 73 | + public String toString() { |
| 74 | + return "ConversationSendRequest{" + |
| 75 | + "to='" + to + '\'' + |
| 76 | + ", type=" + type + |
| 77 | + ", content=" + content + |
| 78 | + ", from='" + from + '\'' + |
| 79 | + ", reportUrl='" + reportUrl + '\'' + |
| 80 | + ", fallback=" + fallback + |
| 81 | + '}'; |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | + |
0 commit comments