From 94fb909821d317134cf26bfc27d46a43c4da464f Mon Sep 17 00:00:00 2001 From: Blag Date: Wed, 31 Jan 2024 14:11:47 -0500 Subject: [PATCH] Add capacity on Event (#199) Added capacity as a return value for events https://nylas.atlassian.net/browse/TW-2509 # License I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner. --- src/main/kotlin/com/nylas/models/Event.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/com/nylas/models/Event.kt b/src/main/kotlin/com/nylas/models/Event.kt index d3b15fb4..32ca04d9 100644 --- a/src/main/kotlin/com/nylas/models/Event.kt +++ b/src/main/kotlin/com/nylas/models/Event.kt @@ -135,6 +135,11 @@ data class Event( */ @Json(name = "html_link") val htmlLink: String? = null, + /** + * The maximum number of participants that may attend the event + */ + @Json(name = "capacity") + val capacity: Int? = null, ) { /** * Get the type of object.