Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Dec 18, 2023
1 parent 569a779 commit 82baa1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/nylas/models/SendRsvpQueryParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data class SendRsvpQueryParams(
* The RSVP status for the event. Must be yes, no, or maybe
*/
@Json(name = "status")
val status: RsvpStatus
val status: RsvpStatus,
) : IQueryParams {

/**
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/com/nylas/resources/Events.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ class Events(client: NylasClient) : Resource<Event>(client, Event::class.java) {
* @return The send-rsvp response
*/
@Throws(NylasApiError::class, NylasSdkTimeoutError::class)
fun sendRsvp(identifier: String, requestBody: SendRsvpRequest, queryParams: SendRsvpQueryParams): DeleteResponse{
fun sendRsvp(identifier: String, eventId: String, requestBody: SendRsvpRequest, queryParams: SendRsvpQueryParams): DeleteResponse {
val path = String.format("v3/grants/%s/events/%s/send-rsvp", identifier, eventId)
val adapter = JsonHelper.moshi().adapter(SendRsvpRequest::class.java)
val serializedRequestBody = adapter.toJson(requestBody)
return createResource(path, serializedRequestBody, queryParams)
}

return client.executePost(path, DeleteResponse::class.java, serializedRequestBody, queryParams)
}
}

0 comments on commit 82baa1f

Please sign in to comment.