Skip to content

Commit e42e99d

Browse files
committed
fix: ConferenceProvider did not include all the supported (and deprecated) types that the API handled.
1 parent 603dc64 commit e42e99d

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Nylas Java SDK Changelog
22

3+
## [Unreleased]
4+
5+
### Fixed
6+
* ConferenceProvider did not include all the supported (and deprecated) types that the API handled.
7+
38
## [2.12.0]
49

510
### Added

src/main/kotlin/com/nylas/models/ConferencingProvider.kt

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,47 @@ import com.squareup.moshi.Json
44

55
/**
66
* Enum for the different conferencing providers.
7+
* Includes both current and deprecated values for backward compatibility.
78
*/
89
enum class ConferencingProvider {
9-
@Json(name = "Zoom Meeting")
10-
ZOOM_MEETING,
11-
10+
// Current supported values
1211
@Json(name = "Google Meet")
1312
GOOGLE_MEET,
1413

14+
@Json(name = "GoToMeeting")
15+
GOTOMEETING,
16+
1517
@Json(name = "Microsoft Teams")
1618
MICROSOFT_TEAMS,
1719

20+
@Json(name = "Skype for Business")
21+
SKYPE_FOR_BUSINESS,
22+
23+
@Json(name = "Skype for Consumer")
24+
SKYPE_FOR_CONSUMER,
25+
26+
@Json(name = "Teams for Business")
27+
TEAMS_FOR_BUSINESS,
28+
1829
@Json(name = "WebEx")
1930
WEBEX,
2031

21-
@Json(name = "GoToMeeting")
22-
GOTOMEETING,
23-
24-
@Json(name = "skypeForConsumer")
25-
SKYPE_FOR_CONSUMER,
32+
@Json(name = "Zoom Meeting")
33+
ZOOM_MEETING,
2634

2735
@Json(name = "unknown")
2836
UNKNOWN,
37+
38+
// Deprecated values (maintained for backward compatibility, removed in the next major version)
39+
@Json(name = "skypeForConsumer")
40+
@Deprecated("Use SKYPE_FOR_CONSUMER instead")
41+
SKYPE_FOR_CONSUMER_DEPRECATED,
42+
43+
@Json(name = "skypeForBusiness")
44+
@Deprecated("Use SKYPE_FOR_BUSINESS instead")
45+
SKYPE_FOR_BUSINESS_DEPRECATED,
46+
47+
@Json(name = "teamsForBusiness")
48+
@Deprecated("Use TEAMS_FOR_BUSINESS instead")
49+
TEAMS_FOR_BUSINESS_DEPRECATED,
2950
}

0 commit comments

Comments
 (0)