Skip to content

Commit

Permalink
EvenVisibility -> EventVisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Jan 8, 2024
1 parent 45bd2d3 commit 264d298
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/com/nylas/models/CreateEventRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ data class CreateEventRequest(
* Sets the visibility for the event. The calendar default will be used if this field is omitted.
*/
@Json(name = "visibility")
val visibility: EvenVisibility? = null,
val visibility: EventVisibility? = null,
/**
* Sets the maximum number of participants that may attend the event.
*/
Expand Down Expand Up @@ -436,7 +436,7 @@ data class CreateEventRequest(
private var recurrence: List<String>? = null
private var calendarId: String? = null
private var readOnly: Boolean? = null
private var visibility: EvenVisibility? = null
private var visibility: EventVisibility? = null
private var capacity: Int? = null
private var hideParticipant: Boolean? = null

Expand Down Expand Up @@ -537,7 +537,7 @@ data class CreateEventRequest(
* @param visibility The event visibility.
* @return The builder.
*/
fun visibility(visibility: EvenVisibility) = apply { this.visibility = visibility }
fun visibility(visibility: EventVisibility) = apply { this.visibility = visibility }

/**
* Set the maximum number of participants that may attend the event.
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nylas/models/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ data class Event(
* Visibility of the event, if the event is private or public.
*/
@Json(name = "visibility")
val visibility: EvenVisibility? = null,
val visibility: EventVisibility? = null,
/**
* User who created the event.
* Not supported for all providers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.squareup.moshi.Json
/**
* Enum representation of visibility of the event, if the event is private or public.
*/
enum class EvenVisibility {
enum class EventVisibility {
@Json(name = "public")
PUBLIC,

Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/com/nylas/models/UpdateEventRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ data class UpdateEventRequest(
* Sets the visibility for the event. The calendar default will be used if this field is omitted.
*/
@Json(name = "visibility")
val visibility: EvenVisibility? = null,
val visibility: EventVisibility? = null,
/**
* Sets the maximum number of participants that may attend the event.
*/
Expand Down Expand Up @@ -519,7 +519,7 @@ data class UpdateEventRequest(
private var recurrence: List<String>? = null
private var calendarId: String? = null
private var readOnly: Boolean? = null
private var visibility: EvenVisibility? = null
private var visibility: EventVisibility? = null
private var capacity: Int? = null
private var hideParticipant: Boolean? = null

Expand Down Expand Up @@ -628,7 +628,7 @@ data class UpdateEventRequest(
* @param visibility Sets the visibility for the event. The calendar default will be used if this field is omitted.
* @return The builder.
*/
fun visibility(visibility: EvenVisibility) = apply { this.visibility = visibility }
fun visibility(visibility: EventVisibility) = apply { this.visibility = visibility }

/**
* Update the capacity of the event.
Expand Down

0 comments on commit 264d298

Please sign in to comment.