77import com .afollestad .bridge .annotations .Body ;
88import com .proxerme .library .interfaces .IdItem ;
99import com .proxerme .library .interfaces .TimeItem ;
10+ import com .proxerme .library .parameters .ActionParameter .Action ;
1011
1112/**
1213 * Class that represents a single message.
@@ -62,8 +63,8 @@ public Message[] newArray(int size) {
6263 * @param device The device this message was sent from. In most cases "default".
6364 */
6465 public Message (@ NonNull String id , @ NonNull String conferenceId , @ NonNull String userId ,
65- @ NonNull String username , @ NonNull String message , @ NonNull String action ,
66- long time , @ NonNull String device ) {
66+ @ NonNull String username , @ NonNull String message ,
67+ @ NonNull @ Action String action , long time , @ NonNull String device ) {
6768 this .id = id ;
6869 this .conferenceId = conferenceId ;
6970 this .userId = userId ;
@@ -87,6 +88,7 @@ protected Message(Parcel in) {
8788
8889 /**
8990 * Returns the id of this message.
91+ *
9092 * @return The id.
9193 */
9294 @ NonNull
@@ -97,6 +99,7 @@ public String getId() {
9799
98100 /**
99101 * Returns the id of the conferenceInfo this message belongs to.
102+ *
100103 * @return The id.
101104 */
102105 @ NonNull
@@ -106,6 +109,7 @@ public String getConferenceId() {
106109
107110 /**
108111 * Returns the id of the user.
112+ *
109113 * @return The id.
110114 */
111115 @ NonNull
@@ -115,6 +119,7 @@ public String getUserId() {
115119
116120 /**
117121 * Returns the username of the user.
122+ *
118123 * @return The username.
119124 */
120125 @ NonNull
@@ -124,6 +129,7 @@ public String getUsername() {
124129
125130 /**
126131 * Returns the actual contents of this message.
132+ *
127133 * @return The contents of this message.
128134 */
129135 @ NonNull
@@ -133,15 +139,18 @@ public String getMessage() {
133139
134140 /**
135141 * Returns the action of this message. Might be empty.
142+ *
136143 * @return The action.
137144 */
138145 @ NonNull
146+ @ Action
139147 public String getAction () {
140148 return action ;
141149 }
142150
143151 /**
144152 * Returns the time of this message.
153+ *
145154 * @return The time.
146155 */
147156 @ Override
@@ -151,6 +160,7 @@ public long getTime() {
151160
152161 /**
153162 * Returns the device this message was sent from.
163+ *
154164 * @return The device.
155165 */
156166 @ NonNull
0 commit comments