STRUCT
Contents
- Properties
created_at
discarded_at
endpoint
id
keys
updated_at
- Methods
init(created_at:discarded_at:endpoint:id:keys:updated_at:)
public struct WebPushTokenResponse: Codable, Hashable, Sendable
- Remark: Generated from
#/components/schemas/WebPushTokenResponse
.
public var created_at: Foundation.Date
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/created_at
.
public var discarded_at: Foundation.Date?
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/discarded_at
.
public var endpoint: Swift.String
The push subscription URL obtained from PushSubscription.endpoint after calling registration.pushManager.subscribe(). This is the unique URL for this device that push messages will be sent to.
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/endpoint
.
public var id: Swift.String
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/id
.
public var keys: Components.Schemas.WebPushTokenResponse.keysPayload
The encryption keys from the PushSubscription.getKey() method, needed to encrypt push messages for this subscription.
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/keys
.
public var updated_at: Foundation.Date?
- Remark: Generated from
#/components/schemas/WebPushTokenResponse/updated_at
.
public init(
created_at: Foundation.Date,
discarded_at: Foundation.Date? = nil,
endpoint: Swift.String,
id: Swift.String,
keys: Components.Schemas.WebPushTokenResponse.keysPayload,
updated_at: Foundation.Date? = nil
)
Creates a new WebPushTokenResponse
.
- Parameters:
- created_at:
- discarded_at:
- endpoint: The push subscription URL obtained from PushSubscription.endpoint after calling registration.pushManager.subscribe(). This is the unique URL for this device that push messages will be sent to.
- id:
- keys: The encryption keys from the PushSubscription.getKey() method, needed to encrypt push messages for this subscription.
- updated_at:
Name | Description |
---|---|
created_at | |
discarded_at | |
endpoint | The push subscription URL obtained from PushSubscription.endpoint after calling registration.pushManager.subscribe(). This is the unique URL for this device that push messages will be sent to. |
id | |
keys | The encryption keys from the PushSubscription.getKey() method, needed to encrypt push messages for this subscription. |
updated_at |