4343 * Session
4444 */
4545@ JsonPropertyOrder ({
46+ Session .JSON_PROPERTY_ID ,
4647 Session .JSON_PROPERTY_TITLE ,
4748 Session .JSON_PROPERTY_DESCRIPTION ,
4849 Session .JSON_PROPERTY_STARTS_AT ,
5455 Session .JSON_PROPERTY_LIVE_URL ,
5556 Session .JSON_PROPERTY_RECORDING_URL ,
5657 Session .JSON_PROPERTY_STATUS ,
57- Session .JSON_PROPERTY_ID ,
5858 Session .JSON_PROPERTY_ROOM ,
5959 Session .JSON_PROPERTY_SPEAKERS ,
6060 Session .JSON_PROPERTY_QUESTION_ANSWERS ,
6161 Session .JSON_PROPERTY_CATEGORIES
6262})
6363public class Session {
64+ public static final String JSON_PROPERTY_ID = "id" ;
65+ private String id ;
66+
6467 public static final String JSON_PROPERTY_TITLE = "title" ;
6568 private String title ;
6669
@@ -94,9 +97,6 @@ public class Session {
9497 public static final String JSON_PROPERTY_STATUS = "status" ;
9598 private Status status ;
9699
97- public static final String JSON_PROPERTY_ID = "id" ;
98- private Integer id ;
99-
100100 public static final String JSON_PROPERTY_ROOM = "room" ;
101101 private JsonNullable <String > room = JsonNullable .<String >undefined ();
102102
@@ -112,6 +112,32 @@ public class Session {
112112 public Session () {
113113 }
114114
115+ public Session id (String id ) {
116+
117+ this .id = id ;
118+ return this ;
119+ }
120+
121+ /**
122+ * Get id
123+ * @return id
124+ **/
125+ @ jakarta .annotation .Nonnull
126+ @ JsonProperty (JSON_PROPERTY_ID )
127+ @ JsonInclude (value = JsonInclude .Include .ALWAYS )
128+
129+ public String getId () {
130+ return id ;
131+ }
132+
133+
134+ @ JsonProperty (JSON_PROPERTY_ID )
135+ @ JsonInclude (value = JsonInclude .Include .ALWAYS )
136+ public void setId (String id ) {
137+ this .id = id ;
138+ }
139+
140+
115141 public Session title (String title ) {
116142
117143 this .title = title ;
@@ -430,32 +456,6 @@ public void setStatus(Status status) {
430456 }
431457
432458
433- public Session id (Integer id ) {
434-
435- this .id = id ;
436- return this ;
437- }
438-
439- /**
440- * Get id
441- * @return id
442- **/
443- @ jakarta .annotation .Nonnull
444- @ JsonProperty (JSON_PROPERTY_ID )
445- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
446-
447- public Integer getId () {
448- return id ;
449- }
450-
451-
452- @ JsonProperty (JSON_PROPERTY_ID )
453- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
454- public void setId (Integer id ) {
455- this .id = id ;
456- }
457-
458-
459459 public Session room (String room ) {
460460 this .room = JsonNullable .<String >of (room );
461461
@@ -600,7 +600,8 @@ public boolean equals(Object o) {
600600 return false ;
601601 }
602602 Session session = (Session ) o ;
603- return Objects .equals (this .title , session .title ) &&
603+ return Objects .equals (this .id , session .id ) &&
604+ Objects .equals (this .title , session .title ) &&
604605 equalsNullable (this .description , session .description ) &&
605606 Objects .equals (this .startsAt , session .startsAt ) &&
606607 Objects .equals (this .endsAt , session .endsAt ) &&
@@ -611,7 +612,6 @@ public boolean equals(Object o) {
611612 equalsNullable (this .liveUrl , session .liveUrl ) &&
612613 equalsNullable (this .recordingUrl , session .recordingUrl ) &&
613614 Objects .equals (this .status , session .status ) &&
614- Objects .equals (this .id , session .id ) &&
615615 equalsNullable (this .room , session .room ) &&
616616 Objects .equals (this .speakers , session .speakers ) &&
617617 Objects .equals (this .questionAnswers , session .questionAnswers ) &&
@@ -624,7 +624,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
624624
625625 @ Override
626626 public int hashCode () {
627- return Objects .hash (title , hashCodeNullable (description ), startsAt , endsAt , isServiceSession , isPlenumSession , categoryItems , roomId , hashCodeNullable (liveUrl ), hashCodeNullable (recordingUrl ), status , id , hashCodeNullable (room ), speakers , questionAnswers , categories );
627+ return Objects .hash (id , title , hashCodeNullable (description ), startsAt , endsAt , isServiceSession , isPlenumSession , categoryItems , roomId , hashCodeNullable (liveUrl ), hashCodeNullable (recordingUrl ), status , hashCodeNullable (room ), speakers , questionAnswers , categories );
628628 }
629629
630630 private static <T > int hashCodeNullable (JsonNullable <T > a ) {
@@ -638,6 +638,7 @@ private static <T> int hashCodeNullable(JsonNullable<T> a) {
638638 public String toString () {
639639 StringBuilder sb = new StringBuilder ();
640640 sb .append ("class Session {\n " );
641+ sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
641642 sb .append (" title: " ).append (toIndentedString (title )).append ("\n " );
642643 sb .append (" description: " ).append (toIndentedString (description )).append ("\n " );
643644 sb .append (" startsAt: " ).append (toIndentedString (startsAt )).append ("\n " );
@@ -649,7 +650,6 @@ public String toString() {
649650 sb .append (" liveUrl: " ).append (toIndentedString (liveUrl )).append ("\n " );
650651 sb .append (" recordingUrl: " ).append (toIndentedString (recordingUrl )).append ("\n " );
651652 sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
652- sb .append (" id: " ).append (toIndentedString (id )).append ("\n " );
653653 sb .append (" room: " ).append (toIndentedString (room )).append ("\n " );
654654 sb .append (" speakers: " ).append (toIndentedString (speakers )).append ("\n " );
655655 sb .append (" questionAnswers: " ).append (toIndentedString (questionAnswers )).append ("\n " );
@@ -701,6 +701,16 @@ public String toUrlQueryString(String prefix) {
701701
702702 StringJoiner joiner = new StringJoiner ("&" );
703703
704+ // add `id` to the URL query string
705+ if (getId () != null ) {
706+ try {
707+ joiner .add (String .format ("%sid%s=%s" , prefix , suffix , URLEncoder .encode (String .valueOf (getId ()), "UTF-8" ).replaceAll ("\\ +" , "%20" )));
708+ } catch (UnsupportedEncodingException e ) {
709+ // Should never happen, UTF-8 is always supported
710+ throw new RuntimeException (e );
711+ }
712+ }
713+
704714 // add `title` to the URL query string
705715 if (getTitle () != null ) {
706716 try {
@@ -815,16 +825,6 @@ public String toUrlQueryString(String prefix) {
815825 }
816826 }
817827
818- // add `id` to the URL query string
819- if (getId () != null ) {
820- try {
821- joiner .add (String .format ("%sid%s=%s" , prefix , suffix , URLEncoder .encode (String .valueOf (getId ()), "UTF-8" ).replaceAll ("\\ +" , "%20" )));
822- } catch (UnsupportedEncodingException e ) {
823- // Should never happen, UTF-8 is always supported
824- throw new RuntimeException (e );
825- }
826- }
827-
828828 // add `room` to the URL query string
829829 if (getRoom () != null ) {
830830 try {
0 commit comments