|
8 | 8 | import org.restcomm.sdk.domain.AvailablePhoneNumber; |
9 | 9 | import org.restcomm.sdk.domain.CallPage; |
10 | 10 | import org.restcomm.sdk.domain.Client; |
| 11 | +import org.restcomm.sdk.domain.Conference; |
| 12 | +import org.restcomm.sdk.domain.ConferencePage; |
11 | 13 | import org.restcomm.sdk.domain.ExtensionData; |
12 | 14 | import org.restcomm.sdk.domain.IncomingPhoneNumber; |
| 15 | +import org.restcomm.sdk.domain.Participant; |
13 | 16 | import org.restcomm.sdk.domain.RecordingPage; |
14 | 17 | import org.restcomm.sdk.domain.ShortMessage; |
15 | 18 | import org.restcomm.sdk.domain.XmppDomain; |
@@ -157,6 +160,45 @@ private RestEndpoints<ShortMessage> getShortMessagesEndpoints(String endpoint, S |
157 | 160 | ShortMessage.class); |
158 | 161 | } |
159 | 162 |
|
| 163 | + public RestEndpoints<Conference> getConferenceEndpoints() { |
| 164 | + return getConferenceEndpoints("conference", this.accountSid); |
| 165 | + } |
| 166 | + |
| 167 | + public RestEndpoints<Conference> getConferenceEndpoints(String accountSid) { |
| 168 | + return getConferenceEndpoints("conference-" + accountSid, accountSid); |
| 169 | + } |
| 170 | + |
| 171 | + private RestEndpoints<Conference> getConferenceEndpoints(String endpoint, String accountSid) { |
| 172 | + return getEndpoints(endpoint, baseRestcommUrlWithoutAccount + "/" + accountSid + "/Conferences.json", |
| 173 | + Conference.class); |
| 174 | + } |
| 175 | + |
| 176 | + public RestEndpoints<ConferencePage> getConferencesEndpoints() { |
| 177 | + return getConferencesEndpoints("conferences", this.accountSid); |
| 178 | + } |
| 179 | + |
| 180 | + public RestEndpoints<ConferencePage> getConferencesEndpoints(String accountSid) { |
| 181 | + return getConferencesEndpoints("conferences-" + accountSid, accountSid); |
| 182 | + } |
| 183 | + |
| 184 | + private RestEndpoints<ConferencePage> getConferencesEndpoints(String endpoint, String accountSid) { |
| 185 | + return getEndpoints(endpoint, baseRestcommUrlWithoutAccount + "/" + accountSid + "/Conferences.json", |
| 186 | + ConferencePage.class); |
| 187 | + } |
| 188 | + |
| 189 | +// public RestEndpoints<Participant> getParticipantsEndpoints(String conferenceSid) { |
| 190 | +// return getParticipantsEndpoints("participants-" + conferenceSid, this.accountSid, conferenceSid); |
| 191 | +// } |
| 192 | +// |
| 193 | +// public RestEndpoints<Participant> getParticipantsEndpoints(String accountSid, String conferenceSid) { |
| 194 | +// return getParticipantsEndpoints("participants-" + conferenceSid + "-" + accountSid, accountSid, conferenceSid); |
| 195 | +// } |
| 196 | +// |
| 197 | +// private RestEndpoints<Participant> getParticipantsEndpoints(String endpoint, String accountSid, String conferenceSid) { |
| 198 | +// return getEndpoints(endpoint, baseRestcommUrlWithoutAccount + "/" + accountSid + "/Conferences/" + conferenceSid |
| 199 | +// + "/Participants.json", Participant.class); |
| 200 | +// } |
| 201 | + |
160 | 202 | public RestEndpoints<ExtensionData> getExtensions() { |
161 | 203 | return getEndpoints("extensions", baseUrl + "/restcomm/2012-04-24/ExtensionsConfiguration.json", ExtensionData.class); |
162 | 204 | } |
|
0 commit comments