Table of Contents

Class WebhookSubscription

Namespace
Crews.PlanningCenter.Api.Webhooks.V2022_10_20
Assembly
Crews.PlanningCenter.Api.dll

Attributes for the WebhookSubscription resource.

public record WebhookSubscription : IEquatable<WebhookSubscription>
Inheritance
WebhookSubscription
Implements
Inherited Members

Constructors

WebhookSubscription()

public WebhookSubscription()

WebhookSubscription(WebhookSubscription)

protected WebhookSubscription(WebhookSubscription original)

Parameters

original WebhookSubscription

Properties

Active

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("active")]
public bool? Active { get; init; }

Property Value

bool?

ApplicationId

Planning Center does not provide a description for this attribute.

[JsonConverter(typeof(StringFromNumberConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("application_id")]
public string? ApplicationId { get; init; }

Property Value

string

AuthenticitySecret

Every delivery will include a header X-PCO-Webhooks-Authenticity.

This header will be the HMAC-SHA256 value of this the authenticity_secret used as the key,
and the message as the webhook body.

hmac_sha256(authenticity_secret, webhook_body)

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("authenticity_secret")]
public string? AuthenticitySecret { get; init; }

Property Value

string

CreatedAt

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("created_at")]
public DateTime? CreatedAt { get; init; }

Property Value

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Name

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("name")]
public string? Name { get; init; }

Property Value

string

UpdatedAt

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("updated_at")]
public DateTime? UpdatedAt { get; init; }

Property Value

DateTime?

Url

Planning Center does not provide a description for this attribute.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("url")]
public string? Url { get; init; }

Property Value

string

Methods

Equals(WebhookSubscription?)

public virtual bool Equals(WebhookSubscription? other)

Parameters

other WebhookSubscription

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(WebhookSubscription?, WebhookSubscription?)

public static bool operator ==(WebhookSubscription? left, WebhookSubscription? right)

Parameters

left WebhookSubscription
right WebhookSubscription

Returns

bool

operator !=(WebhookSubscription?, WebhookSubscription?)

public static bool operator !=(WebhookSubscription? left, WebhookSubscription? right)

Parameters

left WebhookSubscription
right WebhookSubscription

Returns

bool