-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added MeetingsClient stub * Added api-eu base URI * Added endpoints & types * Added _links * Added missing fields for room * Format createdAt & expiresAt * Added validation to MeetingRoom * Added documentation for top-level methods * Validate theme colour * Some fixes to ser/des properties * Added test stub utilities * Added test for getRoom * Comprehensive MeetingRoomTest * Hide UrlContainer nesting from user * Bumped sample expiration year * Param validation in MeetingsClient * Use UUID in MeetingsClient methods * GetRooms client test * expireAfterUse validation * Fixed UpdateApplicationRequest * Use ListX for plural endpoints * App & recording ID now UUIDs * Rename to match conventions * Added simplified listRooms call * Added Recordings test * Test listLogoUploadUrls * Use Instant instead of ZonedDateTime * More tests * More tests & edge case coverage * UpdateRoom/UpdateTheme tests * Use enum for UISettings.Language * Added ThemeTest * Fixed updateTheme & added uploadLogo * Added uploadLogo method & wrapper * Updated MeetingRoom.expiresAt builder * Updated BugRepro * Fixed failing test * Various fixes & improvements * 100% coverage * Removed /beta from URLs * Added MeetingsResponseException * Made SelfReferencing final * Added webhook * Improved VonageApiResponseException coverage * Hydrate MeetingRoom on creation response * Hydrate Theme * Recurse through ListRooms response * Added throws to MeetingsClient doc * Clarified thread safety FAQ * More fixes * Renamed setThemeLogo
- Loading branch information
Showing
94 changed files
with
7,895 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
src/test/java/com/vonage/client/BugRepro.java | ||
*.groovy | ||
.classpath | ||
.gradle | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
* Copyright 2023 Vonage | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.vonage.client.meetings; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.vonage.client.VonageResponseParseException; | ||
import java.io.IOException; | ||
import java.util.UUID; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Application { | ||
private String accountId; | ||
private UUID applicationId, defaultThemeId; | ||
|
||
protected Application() { | ||
} | ||
|
||
/** | ||
* ID of the application. | ||
* | ||
* @return The application ID. | ||
*/ | ||
@JsonProperty("application_id") | ||
public UUID getApplicationId() { | ||
return applicationId; | ||
} | ||
|
||
/** | ||
* ID of the account application. | ||
* | ||
* @return The account ID. | ||
*/ | ||
@JsonProperty("account_id") | ||
public String getAccountId() { | ||
return accountId; | ||
} | ||
|
||
/** | ||
* ID of the default theme. | ||
* | ||
* @return The application default theme ID. | ||
*/ | ||
@JsonProperty("default_theme_id") | ||
public UUID getDefaultThemeId() { | ||
return defaultThemeId; | ||
} | ||
|
||
/** | ||
* Creates an instance of this class from a JSON payload. | ||
* | ||
* @param json The JSON string to parse. | ||
* @return An instance of this class with the fields populated, if present. | ||
*/ | ||
public static Application fromJson(String json) { | ||
try { | ||
ObjectMapper mapper = new ObjectMapper(); | ||
return mapper.readValue(json, Application.class); | ||
} | ||
catch (IOException ex) { | ||
throw new VonageResponseParseException("Failed to produce Application from json.", ex); | ||
} | ||
} | ||
} |
Oops, something went wrong.