Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Nylas Java SDK Changelog

## [Unreleased]

### Added
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this to "Fixed" - this is a bug apparently

* `Skype for Consumer` as a conferencing provider to ConferencingProvider
* `Skype for Business` as a conferencing provider to ConferencingProvider

## [2.13.0]

### Added
Expand Down
6 changes: 6 additions & 0 deletions src/main/kotlin/com/nylas/models/ConferencingProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ enum class ConferencingProvider {
@Json(name = "Zoom Meeting")
ZOOM_MEETING,

@Json(name = "Skype for Consumer")
SKYPE_FOR_CONSUMER,

@Json(name = "Skype for Business")
SKYPE_FOR_BUSINESS,

@Json(name = "unknown")
UNKNOWN,
}
2 changes: 2 additions & 0 deletions src/main/kotlin/com/nylas/models/CreateEventRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ data class CreateEventRequest(
ConferencingProvider.MICROSOFT_TEAMS -> CreateEventManualConferencingProvider.MICROSOFT_TEAMS
ConferencingProvider.GOTOMEETING -> throw IllegalArgumentException("GoToMeeting is not supported in CreateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.WEBEX -> throw IllegalArgumentException("WebEx is not supported in CreateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.SKYPE_FOR_CONSUMER -> throw IllegalArgumentException("Skype for Consumer is not supported in CreateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.SKYPE_FOR_BUSINESS -> throw IllegalArgumentException("Skype for Business is not supported in CreateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.UNKNOWN -> throw IllegalArgumentException("Unknown provider is not supported for event creation. Use CreateEventManualConferencingProvider instead.")
}
return Details(newProvider, details)
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/com/nylas/models/UpdateEventRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ data class UpdateEventRequest(
ConferencingProvider.MICROSOFT_TEAMS -> UpdateEventManualConferencingProvider.MICROSOFT_TEAMS
ConferencingProvider.GOTOMEETING -> throw IllegalArgumentException("GoToMeeting is not supported in UpdateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.WEBEX -> throw IllegalArgumentException("WebEx is not supported in UpdateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.SKYPE_FOR_CONSUMER -> throw IllegalArgumentException("Skype for Consumer is not supported in UpdateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.SKYPE_FOR_BUSINESS -> throw IllegalArgumentException("Skype for Business is not supported in UpdateEventManualConferencingProvider. Use the new enum directly.")
ConferencingProvider.UNKNOWN -> throw IllegalArgumentException("Unknown provider is not supported for event updates. Use UpdateEventManualConferencingProvider instead.")
}
return Details(newProvider, details)
Expand Down
Loading