Skip to content

Conversation

FranzBusch
Copy link
Contributor

Motivation

We want to provide new APIs that are semantically safe when sending alerts to APNs. These APIs should feel native in Swift and not leak too many APIs of the APNs interface.

Modification

This PR creates a few new semantic types to represent currency types from the APNs API. Furthermore, the PR adds new types for the alert notification and a convenience method to send alert notifications with the APNSClient.

Result

We can now send alert notifications.

# Motivation
We want to provide new APIs that are semantically safe when sending alerts to APNs. These APIs should feel native in Swift and not leak too many APIs of the APNs interface.

# Modification
This PR creates a few new semantic types to represent currency types from the APNs API. Furthermore, the PR adds new types for the alert notification and a convenience method to send alert notifications with the APNSClient.

# Result
We can now send alert notifications.
@kylebrowning
Copy link
Member

Everything worked and the documentation looks great. Thank you for making this a much cleaner interface.

@kylebrowning kylebrowning merged commit b5bd3b3 into swift-server-community:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants