2018-09-11 10:52:21 -04:00
|
|
|
//
|
|
|
|
// PushSubscription.swift
|
|
|
|
// Pachyderm
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 9/9/18.
|
|
|
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2018-09-17 19:22:37 -04:00
|
|
|
public class PushSubscription: Decodable {
|
2018-09-11 10:52:21 -04:00
|
|
|
public let id: String
|
|
|
|
public let endpoint: URL
|
|
|
|
public let serverKey: String
|
|
|
|
// TODO: WTF is this?
|
|
|
|
// public let alerts
|
|
|
|
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
|
|
case id
|
|
|
|
case endpoint
|
|
|
|
case serverKey = "server_key"
|
|
|
|
// case alerts
|
|
|
|
}
|
|
|
|
}
|