| Total Complexity | 16 |
| Total Lines | 189 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.base.Models; |
||
| 3 | public class Message extends BaseModel { |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Message content |
||
| 7 | */ |
||
| 8 | private String content; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Message type |
||
| 12 | */ |
||
| 13 | private String type; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Message thread_id |
||
| 17 | */ |
||
| 18 | private String thread_id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Message sender_id |
||
| 22 | */ |
||
| 23 | private String sender_id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Message sender_type |
||
| 27 | */ |
||
| 28 | private String sender_type; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Message slug |
||
| 32 | */ |
||
| 33 | private String slug; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Message Sender |
||
| 37 | */ |
||
| 38 | private User sender; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Message Attachments |
||
| 42 | */ |
||
| 43 | private Media[] attachments; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get Message Sender |
||
| 47 | * |
||
| 48 | * @return User |
||
| 49 | */ |
||
| 50 | public User getSender() { |
||
| 51 | return sender; |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Set Message Sender |
||
| 56 | * |
||
| 57 | * @param sender |
||
| 58 | * @return |
||
| 59 | */ |
||
| 60 | public Message setSender(User sender) { |
||
| 61 | this.sender = sender; |
||
| 62 | return this; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Message Content |
||
| 67 | * |
||
| 68 | * @return Content |
||
| 69 | */ |
||
| 70 | public String getContent() { |
||
| 71 | return content; |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Set Message Content |
||
| 76 | * |
||
| 77 | * @param content |
||
| 78 | * @return |
||
| 79 | */ |
||
| 80 | public Message setContent(String content) { |
||
| 81 | this.content = content; |
||
| 82 | return this; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Message Type |
||
| 87 | * |
||
| 88 | * @return Type |
||
| 89 | */ |
||
| 90 | public String getType() { |
||
| 91 | return type; |
||
| 92 | } |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Set Message Type |
||
| 96 | * |
||
| 97 | * @param type |
||
| 98 | * @return |
||
| 99 | */ |
||
| 100 | public Message setType(String type) { |
||
| 101 | this.type = type; |
||
| 102 | return this; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Message Thread_id |
||
| 107 | * |
||
| 108 | * @return Thread_id |
||
| 109 | */ |
||
| 110 | public String getThread_id() { |
||
|
|
|||
| 111 | return thread_id; |
||
| 112 | } |
||
| 113 | |||
| 114 | /** |
||
| 115 | * Set Message Thread_id |
||
| 116 | * |
||
| 117 | * @param thread_id |
||
| 118 | * @return |
||
| 119 | */ |
||
| 120 | public Message setThread_id(String thread_id) { |
||
| 121 | this.thread_id = thread_id; |
||
| 122 | return this; |
||
| 123 | } |
||
| 124 | |||
| 125 | /** |
||
| 126 | * Message Sender_id |
||
| 127 | * |
||
| 128 | * @return Sender_id |
||
| 129 | */ |
||
| 130 | public String getSender_id() { |
||
| 131 | return sender_id; |
||
| 132 | } |
||
| 133 | |||
| 134 | /** |
||
| 135 | * Set Message Sender_id |
||
| 136 | * |
||
| 137 | * @param sender_id |
||
| 138 | * @return |
||
| 139 | */ |
||
| 140 | public Message setSender_id(String sender_id) { |
||
| 141 | this.sender_id = sender_id; |
||
| 142 | return this; |
||
| 143 | } |
||
| 144 | |||
| 145 | /** |
||
| 146 | * Message Sender_type |
||
| 147 | * |
||
| 148 | * @return Sender_type |
||
| 149 | */ |
||
| 150 | public String getSender_type() { |
||
| 151 | return sender_type; |
||
| 152 | } |
||
| 153 | |||
| 154 | /** |
||
| 155 | * Set Message Sender_type |
||
| 156 | * |
||
| 157 | * @param sender_type |
||
| 158 | * @return |
||
| 159 | */ |
||
| 160 | public Message setSender_type(String sender_type) { |
||
| 161 | this.sender_type = sender_type; |
||
| 162 | return this; |
||
| 163 | } |
||
| 164 | |||
| 165 | /** |
||
| 166 | * Message Slug |
||
| 167 | * |
||
| 168 | * @return Slug |
||
| 169 | */ |
||
| 170 | public String getSlug() { |
||
| 171 | return slug; |
||
| 172 | } |
||
| 173 | |||
| 174 | /** |
||
| 175 | * Set Message Slug |
||
| 176 | * |
||
| 177 | * @param slug |
||
| 178 | * @return |
||
| 179 | */ |
||
| 180 | public Message setSlug(String slug) { |
||
| 181 | this.slug = slug; |
||
| 182 | return this; |
||
| 183 | } |
||
| 184 | |||
| 185 | public Media[] getAttachments() { |
||
| 186 | return attachments; |
||
| 187 | } |
||
| 188 | |||
| 189 | public Message setAttachments(Media[] attachments) { |
||
| 190 | this.attachments = attachments; |
||
| 191 | return this; |
||
| 192 | } |
||
| 194 |