-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpeakersApi.java
More file actions
129 lines (100 loc) · 3.67 KB
/
Copy pathSpeakersApi.java
File metadata and controls
129 lines (100 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
* Sessionize JSON-REST API
* Sessionize JSON-REST API documentation by XDEV Software
*
* The version of the OpenAPI document: 2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package software.xdev.sessionize.api;
import com.fasterxml.jackson.core.type.TypeReference;
import software.xdev.sessionize.client.ApiException;
import software.xdev.sessionize.client.ApiClient;
import software.xdev.sessionize.client.Configuration;
import software.xdev.sessionize.client.Pair;
import software.xdev.sessionize.model.Speaker;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SpeakersApi {
private ApiClient apiClient;
public SpeakersApi() {
this(Configuration.getDefaultApiClient());
}
public SpeakersApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
*
*
* @param endpointId (required)
* @return List<Speaker>
* @throws ApiException if fails to make API call
*/
public List<Speaker> getAllSpeakers(String endpointId) throws ApiException {
return this.getAllSpeakers(endpointId, Collections.emptyMap());
}
/**
*
*
* @param endpointId (required)
* @param additionalHeaders additionalHeaders for this call
* @return List<Speaker>
* @throws ApiException if fails to make API call
*/
public List<Speaker> getAllSpeakers(String endpointId, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'endpointId' is set
if (endpointId == null) {
throw new ApiException(400, "Missing the required parameter 'endpointId' when calling getAllSpeakers");
}
// create path and map variables
String localVarPath = "/api/v2/{endpointId}/view/Speakers"
.replaceAll("\\{" + "endpointId" + "\\}", apiClient.escapeString(endpointId.toString()));
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
localVarHeaderParams.putAll(additionalHeaders);
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
TypeReference<List<Speaker>> localVarReturnType = new TypeReference<List<Speaker>>() {};
return apiClient.invokeAPI(
localVarPath,
"GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarQueryStringJoiner.toString(),
localVarPostBody,
localVarHeaderParams,
localVarCookieParams,
localVarFormParams,
localVarAccept,
localVarContentType,
localVarAuthNames,
localVarReturnType
);
}
}