Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit 10735fd

Browse files
authored
Merge pull request #23 from xdev-software/develop
Release 1.1.0
2 parents d4bb525 + a27be8c commit 10735fd

File tree

8 files changed

+84
-13
lines changed

8 files changed

+84
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.1.0
2+
* Add undocumented ``video_stream`` field for sessions.<br/>Affected endpoints are:
3+
* ``/session/add``
4+
* ``/session/mod``
5+
* ``/session/export``
6+
17
# 1.0.2
28
* Add all available fields to model returned by ``/user/list``
39
* Updated dependencies

openapi/openapi.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ paths:
131131
enum: [ 'Y', 'N' ]
132132
maxLength: 1
133133
description: 'Y = session is active, N = session is deactivated and hidden'
134+
- name: video_stream
135+
in: query
136+
schema:
137+
type: string
138+
maxLength: 1024
139+
description: 'Livestream url (url is not validated!). Undocumented'
134140
- name: custom_fields
135141
in: query
136142
schema:
@@ -251,6 +257,12 @@ paths:
251257
enum: [ 'Y', 'N' ]
252258
maxLength: 1
253259
description: 'Y = session is active, N = session is deactivated and hidden'
260+
- name: video_stream
261+
in: query
262+
schema:
263+
type: string
264+
maxLength: 1024
265+
description: 'Livestream url (url is not validated!). Undocumented'
254266
responses:
255267
'200':
256268
description: Returned if the request was processed - no matter if it was successful or not; OK when successful; other text-Responses usually indicate an error
@@ -777,6 +789,9 @@ components:
777789
event_type_sort:
778790
type: string
779791
description: 'Numeric string'
792+
video_stream:
793+
type: string
794+
description: 'Livestream url (url is not validated!). Undocumented'
780795
ExportSpeaker:
781796
type: object
782797
readOnly: true

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client-root</artifactId>
9-
<version>1.0.3-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>

sched-java-client-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client-demo</artifactId>
9-
<version>1.0.3-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<inceptionYear>2022</inceptionYear>

sched-java-client-demo/src/main/java/software/xdev/Application.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ private static void checkSessionAPI(final CustomApiClient apiClient)
118118
null,
119119
null,
120120
"N",
121+
null,
121122
Map.of("extra", "Joppiesauce")
122123
);
123124
LOG.info(LOG_RESPONSE, addSessionResponse);
@@ -138,7 +139,8 @@ private static void checkSessionAPI(final CustomApiClient apiClient)
138139
null,
139140
null,
140141
null,
141-
"Y"
142+
"Y",
143+
null
142144
);
143145
LOG.info(LOG_RESPONSE, modifySessionResponse);
144146

sched-java-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>sched-java-client</artifactId>
9-
<version>1.0.3-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>sched-java-client</name>

sched-java-client/src/generated/java/software/xdev/sched/api/SessionApi.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ public void setApiClient(ApiClient apiClient) {
7171
* @param rsvpUrl URL used for Custom Button (optional)
7272
* @param ticketMessage Custom ticket upgrade message, displayed when attendee attempts to add the session without the correct ticket (accepts basic HTML) (optional)
7373
* @param active Y &#x3D; session is active, N &#x3D; session is deactivated and hidden (optional)
74+
* @param videoStream Livestream url (url is not validated!). Undocumented (optional)
7475
* @param customFields To add custom named fields, just add your field names and their values (optional)
7576
* @return String
7677
* @throws ApiException if fails to make API call
7778
*/
78-
public String addSession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, Object customFields) throws ApiException {
79-
return this.addSession(sessionKey, name, sessionStart, sessionEnd, sessionType, sessionSubtype, description, mediaUrl, venue, address, tags, seats, rsvpUrl, ticketMessage, active, customFields, Collections.emptyMap());
79+
public String addSession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, String videoStream, Object customFields) throws ApiException {
80+
return this.addSession(sessionKey, name, sessionStart, sessionEnd, sessionType, sessionSubtype, description, mediaUrl, venue, address, tags, seats, rsvpUrl, ticketMessage, active, videoStream, customFields, Collections.emptyMap());
8081
}
8182

8283

@@ -98,12 +99,13 @@ public String addSession(String sessionKey, String name, String sessionStart, St
9899
* @param rsvpUrl URL used for Custom Button (optional)
99100
* @param ticketMessage Custom ticket upgrade message, displayed when attendee attempts to add the session without the correct ticket (accepts basic HTML) (optional)
100101
* @param active Y &#x3D; session is active, N &#x3D; session is deactivated and hidden (optional)
102+
* @param videoStream Livestream url (url is not validated!). Undocumented (optional)
101103
* @param customFields To add custom named fields, just add your field names and their values (optional)
102104
* @param additionalHeaders additionalHeaders for this call
103105
* @return String
104106
* @throws ApiException if fails to make API call
105107
*/
106-
public String addSession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, Object customFields, Map<String, String> additionalHeaders) throws ApiException {
108+
public String addSession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, String videoStream, Object customFields, Map<String, String> additionalHeaders) throws ApiException {
107109
Object localVarPostBody = null;
108110

109111
// verify the required parameter 'sessionKey' is set
@@ -157,6 +159,7 @@ public String addSession(String sessionKey, String name, String sessionStart, St
157159
localVarQueryParams.addAll(apiClient.parameterToPair("rsvp_url", rsvpUrl));
158160
localVarQueryParams.addAll(apiClient.parameterToPair("ticket_message", ticketMessage));
159161
localVarQueryParams.addAll(apiClient.parameterToPair("active", active));
162+
localVarQueryParams.addAll(apiClient.parameterToPair("video_stream", videoStream));
160163
localVarQueryParams.addAll(apiClient.parameterToPair("custom_fields", customFields));
161164

162165
localVarHeaderParams.putAll(additionalHeaders);
@@ -453,11 +456,12 @@ public List<Session> listSessions(Integer since, String format, String status, S
453456
* @param rsvpUrl URL used for Custom Button (optional)
454457
* @param ticketMessage Custom ticket upgrade message, displayed when attendee attempts to add the session without the correct ticket (accepts basic HTML) (optional)
455458
* @param active Y &#x3D; session is active, N &#x3D; session is deactivated and hidden (optional)
459+
* @param videoStream Livestream url (url is not validated!). Undocumented (optional)
456460
* @return String
457461
* @throws ApiException if fails to make API call
458462
*/
459-
public String modifySession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active) throws ApiException {
460-
return this.modifySession(sessionKey, name, sessionStart, sessionEnd, sessionType, sessionSubtype, description, mediaUrl, venue, address, tags, seats, rsvpUrl, ticketMessage, active, Collections.emptyMap());
463+
public String modifySession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, String videoStream) throws ApiException {
464+
return this.modifySession(sessionKey, name, sessionStart, sessionEnd, sessionType, sessionSubtype, description, mediaUrl, venue, address, tags, seats, rsvpUrl, ticketMessage, active, videoStream, Collections.emptyMap());
461465
}
462466

463467

@@ -479,11 +483,12 @@ public String modifySession(String sessionKey, String name, String sessionStart,
479483
* @param rsvpUrl URL used for Custom Button (optional)
480484
* @param ticketMessage Custom ticket upgrade message, displayed when attendee attempts to add the session without the correct ticket (accepts basic HTML) (optional)
481485
* @param active Y &#x3D; session is active, N &#x3D; session is deactivated and hidden (optional)
486+
* @param videoStream Livestream url (url is not validated!). Undocumented (optional)
482487
* @param additionalHeaders additionalHeaders for this call
483488
* @return String
484489
* @throws ApiException if fails to make API call
485490
*/
486-
public String modifySession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, Map<String, String> additionalHeaders) throws ApiException {
491+
public String modifySession(String sessionKey, String name, String sessionStart, String sessionEnd, String sessionType, String sessionSubtype, String description, URI mediaUrl, String venue, String address, String tags, String seats, URI rsvpUrl, String ticketMessage, String active, String videoStream, Map<String, String> additionalHeaders) throws ApiException {
487492
Object localVarPostBody = null;
488493

489494
// verify the required parameter 'sessionKey' is set
@@ -517,6 +522,7 @@ public String modifySession(String sessionKey, String name, String sessionStart,
517522
localVarQueryParams.addAll(apiClient.parameterToPair("rsvp_url", rsvpUrl));
518523
localVarQueryParams.addAll(apiClient.parameterToPair("ticket_message", ticketMessage));
519524
localVarQueryParams.addAll(apiClient.parameterToPair("active", active));
525+
localVarQueryParams.addAll(apiClient.parameterToPair("video_stream", videoStream));
520526

521527
localVarHeaderParams.putAll(additionalHeaders);
522528

sched-java-client/src/generated/java/software/xdev/sched/model/ExportSession.java

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
ExportSession.JSON_PROPERTY_ID,
4949
ExportSession.JSON_PROPERTY_VENUE_ID,
5050
ExportSession.JSON_PROPERTY_SPEAKERS,
51-
ExportSession.JSON_PROPERTY_EVENT_TYPE_SORT
51+
ExportSession.JSON_PROPERTY_EVENT_TYPE_SORT,
52+
ExportSession.JSON_PROPERTY_VIDEO_STREAM
5253
})
5354
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
5455
public class ExportSession {
@@ -202,6 +203,9 @@ public static InviteOnlyEnum fromValue(String value) {
202203
public static final String JSON_PROPERTY_EVENT_TYPE_SORT = "event_type_sort";
203204
private String eventTypeSort;
204205

206+
public static final String JSON_PROPERTY_VIDEO_STREAM = "video_stream";
207+
private String videoStream;
208+
205209
public ExportSession() {
206210
}
207211

@@ -602,6 +606,32 @@ public void setEventTypeSort(String eventTypeSort) {
602606
this.eventTypeSort = eventTypeSort;
603607
}
604608

609+
610+
public ExportSession videoStream(String videoStream) {
611+
612+
this.videoStream = videoStream;
613+
return this;
614+
}
615+
616+
/**
617+
* Livestream url (url is not validated!). Undocumented
618+
* @return videoStream
619+
**/
620+
@jakarta.annotation.Nullable
621+
@JsonProperty(JSON_PROPERTY_VIDEO_STREAM)
622+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
623+
624+
public String getVideoStream() {
625+
return videoStream;
626+
}
627+
628+
629+
@JsonProperty(JSON_PROPERTY_VIDEO_STREAM)
630+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
631+
public void setVideoStream(String videoStream) {
632+
this.videoStream = videoStream;
633+
}
634+
605635
@Override
606636
public boolean equals(Object o) {
607637
if (this == o) {
@@ -625,12 +655,13 @@ public boolean equals(Object o) {
625655
Objects.equals(this.id, exportSession.id) &&
626656
Objects.equals(this.venueId, exportSession.venueId) &&
627657
Objects.equals(this.speakers, exportSession.speakers) &&
628-
Objects.equals(this.eventTypeSort, exportSession.eventTypeSort);
658+
Objects.equals(this.eventTypeSort, exportSession.eventTypeSort) &&
659+
Objects.equals(this.videoStream, exportSession.videoStream);
629660
}
630661

631662
@Override
632663
public int hashCode() {
633-
return Objects.hash(eventKey, active, pinned, name, eventStart, eventEnd, eventType, seats, goers, inviteOnly, venue, id, venueId, speakers, eventTypeSort);
664+
return Objects.hash(eventKey, active, pinned, name, eventStart, eventEnd, eventType, seats, goers, inviteOnly, venue, id, venueId, speakers, eventTypeSort, videoStream);
634665
}
635666

636667
@Override
@@ -652,6 +683,7 @@ public String toString() {
652683
sb.append(" venueId: ").append(toIndentedString(venueId)).append("\n");
653684
sb.append(" speakers: ").append(toIndentedString(speakers)).append("\n");
654685
sb.append(" eventTypeSort: ").append(toIndentedString(eventTypeSort)).append("\n");
686+
sb.append(" videoStream: ").append(toIndentedString(videoStream)).append("\n");
655687
sb.append("}");
656688
return sb.toString();
657689
}
@@ -849,6 +881,16 @@ public String toUrlQueryString(String prefix) {
849881
}
850882
}
851883

884+
// add `video_stream` to the URL query string
885+
if (getVideoStream() != null) {
886+
try {
887+
joiner.add(String.format("%svideo_stream%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVideoStream()), "UTF-8").replaceAll("\\+", "%20")));
888+
} catch (UnsupportedEncodingException e) {
889+
// Should never happen, UTF-8 is always supported
890+
throw new RuntimeException(e);
891+
}
892+
}
893+
852894
return joiner.toString();
853895
}
854896

0 commit comments

Comments
 (0)