Skip to content

Commit

Permalink
Added webhook name (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatasPedroso authored Jul 1, 2024
1 parent 675713f commit 281fb3b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/kotlin/Webhook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,22 @@ public enum class WebhookEvent {
}

public class WebhookBuilder internal constructor() {
public var name: String? by Properties.nullable()
public var number: Int? by Properties.nullable()
public var url: String? by Properties.nullable()
public var authorization: String? by Properties.nullable()
public var isActive: Boolean? by Properties.nullable()
public var event: WebhookEvent? by Properties.nullable()

/**
* The name of the webhook.
*
* @param name The name of the webhook.
*/
public fun name(name: String): WebhookBuilder = apply {
this.name = name
}

/**
* The number of the webhook.
*
Expand Down

0 comments on commit 281fb3b

Please sign in to comment.