Skip to content

Commit

Permalink
Merge pull request #166 from TootSDK/add-missing-init-for-subscritpion
Browse files Browse the repository at this point in the history
fix: add missing init for Subscription
  • Loading branch information
kkostov committed May 19, 2023
2 parents 2ef2f43 + d92ccef commit b2d8e97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TootSDK/Models/PushSubscriptionParams.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public struct PushSubscriptionParams: Codable, Sendable {
public var data: SubscriptionData?

public struct Subscription: Codable, Sendable {
public init(endpoint: String, keys: PushSubscriptionParams.Keys) {
self.endpoint = endpoint
self.keys = keys
}

/// The endpoint URL that is called when a notification event occurs.
public var endpoint: String
public var keys: PushSubscriptionParams.Keys
Expand Down

0 comments on commit b2d8e97

Please sign in to comment.