Skip to content

Commit

Permalink
TW-2475 Annotate WebhookDeleteResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Jan 10, 2024
1 parent 403ca89 commit 49cc926
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/kotlin/com/nylas/models/WebhookDeleteResponse.kt
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
package com.nylas.models

import com.squareup.moshi.Json

/**
* Class representing a Nylas webhook delete response.
*/
data class WebhookDeleteResponse(
/**
* ID of the request.
*/
@Json(name = "request_id")
val requestId: String,
/**
* Object containing the webhook deletion status.
*/
@Json(name = "data")
val data: DataWebhookDeleteData? = null,
) {
/**
Expand All @@ -20,6 +24,7 @@ data class WebhookDeleteResponse(
/**
* The status of the webhook deletion.
*/
val status: Boolean,
@Json(name = "status")
val status: String,
)
}

0 comments on commit 49cc926

Please sign in to comment.