4747 */
4848@ ApiModel (description = "DTO container with a comment." )
4949public class Comment extends CommentLink {
50- @ SerializedName ("Author " )
51- protected String author ;
50+ @ SerializedName ("RangeStart " )
51+ protected DocumentPosition rangeStart ;
5252
53- @ SerializedName ("Content " )
54- protected StoryChildNodes content ;
53+ @ SerializedName ("RangeEnd " )
54+ protected DocumentPosition rangeEnd ;
5555
56- @ SerializedName ("DateTime " )
57- protected OffsetDateTime dateTime ;
56+ @ SerializedName ("Author " )
57+ protected String author ;
5858
5959 @ SerializedName ("Initial" )
6060 protected String initial ;
6161
62- @ SerializedName ("RangeEnd" )
63- protected DocumentPosition rangeEnd ;
64-
65- @ SerializedName ("RangeStart" )
66- protected DocumentPosition rangeStart ;
62+ @ SerializedName ("DateTime" )
63+ protected OffsetDateTime dateTime ;
6764
6865 @ SerializedName ("Text" )
6966 protected String text ;
67+
68+ @ SerializedName ("Content" )
69+ protected StoryChildNodes content ;
7070 /**
71- * Gets or sets the author name for a comment .
72- * @return author
71+ * Gets or sets the link to comment range start node .
72+ * @return rangeStart
7373 **/
74- @ ApiModelProperty (value = "Gets or sets the author name for a comment ." )
75- public String getAuthor () {
76- return author ;
74+ @ ApiModelProperty (value = "Gets or sets the link to comment range start node ." )
75+ public DocumentPosition getRangeStart () {
76+ return rangeStart ;
7777 }
7878
79- public Comment author ( String author ) {
80- this .author = author ;
79+ public Comment rangeStart ( DocumentPosition rangeStart ) {
80+ this .rangeStart = rangeStart ;
8181 return this ;
8282 }
8383
84- public void setAuthor ( String author ) {
85- this .author = author ;
84+ public void setRangeStart ( DocumentPosition rangeStart ) {
85+ this .rangeStart = rangeStart ;
8686 }
8787
8888
8989 /**
90- * Gets or sets the content of the comment.
91- * @return content
90+ * Gets or sets the link to comment range end node .
91+ * @return rangeEnd
9292 **/
93- @ ApiModelProperty (value = "Gets or sets the content of the comment." )
94- public StoryChildNodes getContent () {
95- return content ;
93+ @ ApiModelProperty (value = "Gets or sets the link to comment range end node ." )
94+ public DocumentPosition getRangeEnd () {
95+ return rangeEnd ;
9696 }
9797
98- public Comment content ( StoryChildNodes content ) {
99- this .content = content ;
98+ public Comment rangeEnd ( DocumentPosition rangeEnd ) {
99+ this .rangeEnd = rangeEnd ;
100100 return this ;
101101 }
102102
103- public void setContent ( StoryChildNodes content ) {
104- this .content = content ;
103+ public void setRangeEnd ( DocumentPosition rangeEnd ) {
104+ this .rangeEnd = rangeEnd ;
105105 }
106106
107107
108108 /**
109- * Gets or sets the date and time that the comment was made .
110- * @return dateTime
109+ * Gets or sets the author name for a comment.
110+ * @return author
111111 **/
112- @ ApiModelProperty (value = "Gets or sets the date and time that the comment was made ." )
113- public OffsetDateTime getDateTime () {
114- return dateTime ;
112+ @ ApiModelProperty (value = "Gets or sets the author name for a comment." )
113+ public String getAuthor () {
114+ return author ;
115115 }
116116
117- public Comment dateTime ( OffsetDateTime dateTime ) {
118- this .dateTime = dateTime ;
117+ public Comment author ( String author ) {
118+ this .author = author ;
119119 return this ;
120120 }
121121
122- public void setDateTime ( OffsetDateTime dateTime ) {
123- this .dateTime = dateTime ;
122+ public void setAuthor ( String author ) {
123+ this .author = author ;
124124 }
125125
126126
@@ -144,71 +144,71 @@ public void setInitial(String initial) {
144144
145145
146146 /**
147- * Gets or sets the link to comment range end node .
148- * @return rangeEnd
147+ * Gets or sets the date and time that the comment was made .
148+ * @return dateTime
149149 **/
150- @ ApiModelProperty (value = "Gets or sets the link to comment range end node ." )
151- public DocumentPosition getRangeEnd () {
152- return rangeEnd ;
150+ @ ApiModelProperty (value = "Gets or sets the date and time that the comment was made ." )
151+ public OffsetDateTime getDateTime () {
152+ return dateTime ;
153153 }
154154
155- public Comment rangeEnd ( DocumentPosition rangeEnd ) {
156- this .rangeEnd = rangeEnd ;
155+ public Comment dateTime ( OffsetDateTime dateTime ) {
156+ this .dateTime = dateTime ;
157157 return this ;
158158 }
159159
160- public void setRangeEnd ( DocumentPosition rangeEnd ) {
161- this .rangeEnd = rangeEnd ;
160+ public void setDateTime ( OffsetDateTime dateTime ) {
161+ this .dateTime = dateTime ;
162162 }
163163
164164
165165 /**
166- * Gets or sets the link to comment range start node .
167- * @return rangeStart
166+ * Gets or sets text of the comment.
167+ * @return text
168168 **/
169- @ ApiModelProperty (value = "Gets or sets the link to comment range start node ." )
170- public DocumentPosition getRangeStart () {
171- return rangeStart ;
169+ @ ApiModelProperty (value = "Gets or sets text of the comment." )
170+ public String getText () {
171+ return text ;
172172 }
173173
174- public Comment rangeStart ( DocumentPosition rangeStart ) {
175- this .rangeStart = rangeStart ;
174+ public Comment text ( String text ) {
175+ this .text = text ;
176176 return this ;
177177 }
178178
179- public void setRangeStart ( DocumentPosition rangeStart ) {
180- this .rangeStart = rangeStart ;
179+ public void setText ( String text ) {
180+ this .text = text ;
181181 }
182182
183183
184184 /**
185- * Gets or sets text of the comment.
186- * @return text
185+ * Gets or sets the content of the comment.
186+ * @return content
187187 **/
188- @ ApiModelProperty (value = "Gets or sets text of the comment." )
189- public String getText () {
190- return text ;
188+ @ ApiModelProperty (value = "Gets or sets the content of the comment." )
189+ public StoryChildNodes getContent () {
190+ return content ;
191191 }
192192
193- public Comment text ( String text ) {
194- this .text = text ;
193+ public Comment content ( StoryChildNodes content ) {
194+ this .content = content ;
195195 return this ;
196196 }
197197
198- public void setText ( String text ) {
199- this .text = text ;
198+ public void setContent ( StoryChildNodes content ) {
199+ this .content = content ;
200200 }
201201
202202
203203 public Comment () {
204204 super ();
205+ this .rangeStart = null ;
206+ this .rangeEnd = null ;
205207 this .author = null ;
206- this .content = null ;
207- this .dateTime = null ;
208208 this .initial = null ;
209- this .rangeEnd = null ;
210- this .rangeStart = null ;
209+ this .dateTime = null ;
211210 this .text = null ;
211+ this .content = null ;
212212 }
213213
214214 /*
@@ -231,33 +231,33 @@ public boolean equals(java.lang.Object o) {
231231
232232 Comment comment = (Comment ) o ;
233233 return
234+ Objects .equals (this .rangeStart , comment .rangeStart ) &&
235+ Objects .equals (this .rangeEnd , comment .rangeEnd ) &&
234236 Objects .equals (this .author , comment .author ) &&
235- Objects .equals (this .content , comment .content ) &&
236- Objects .equals (this .dateTime , comment .dateTime ) &&
237237 Objects .equals (this .initial , comment .initial ) &&
238- Objects .equals (this .rangeEnd , comment .rangeEnd ) &&
239- Objects .equals (this .rangeStart , comment .rangeStart ) &&
238+ Objects .equals (this .dateTime , comment .dateTime ) &&
240239 Objects .equals (this .text , comment .text ) &&
240+ Objects .equals (this .content , comment .content ) &&
241241 super .equals (o );
242242 }
243243
244244 @ Override
245245 public int hashCode () {
246- return Objects .hash (author , content , dateTime , initial , rangeEnd , rangeStart , text , super .hashCode ());
246+ return Objects .hash (rangeStart , rangeEnd , author , initial , dateTime , text , content , super .hashCode ());
247247 }
248248
249249 @ Override
250250 public String toString () {
251251 StringBuilder sb = new StringBuilder ();
252252 sb .append ("class Comment {\n " );
253253 sb .append (" link: " ).append (toIndentedString (getLink ())).append ("\n " );
254+ sb .append (" rangeStart: " ).append (toIndentedString (getRangeStart ())).append ("\n " );
255+ sb .append (" rangeEnd: " ).append (toIndentedString (getRangeEnd ())).append ("\n " );
254256 sb .append (" author: " ).append (toIndentedString (getAuthor ())).append ("\n " );
255- sb .append (" content: " ).append (toIndentedString (getContent ())).append ("\n " );
256- sb .append (" dateTime: " ).append (toIndentedString (getDateTime ())).append ("\n " );
257257 sb .append (" initial: " ).append (toIndentedString (getInitial ())).append ("\n " );
258- sb .append (" rangeEnd: " ).append (toIndentedString (getRangeEnd ())).append ("\n " );
259- sb .append (" rangeStart: " ).append (toIndentedString (getRangeStart ())).append ("\n " );
258+ sb .append (" dateTime: " ).append (toIndentedString (getDateTime ())).append ("\n " );
260259 sb .append (" text: " ).append (toIndentedString (getText ())).append ("\n " );
260+ sb .append (" content: " ).append (toIndentedString (getContent ())).append ("\n " );
261261 sb .append ("}" );
262262 return sb .toString ();
263263 }
0 commit comments