Skip to content

Commit

Permalink
Add Builder
Browse files Browse the repository at this point in the history
Added Builder for TokenParams
  • Loading branch information
atejada committed Jul 25, 2024
1 parent 12624b7 commit df76f13
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/main/kotlin/com/nylas/models/TokenParams.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,21 @@ data class TokenParams(
*/
@Json(name = "token")
val token: String,
) : IQueryParams
) : IQueryParams {
/**
* Builder for [TokenParams].
* @property token Token to be revoked.
*/
data class Builder(
private val token: String,
) {

/**
* Build the [TokenParams] object
* @return The [TokenParams] object
*/
fun build() = TokenParams(
token,
)
}
}

0 comments on commit df76f13

Please sign in to comment.