mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Cleaned up API structures to be more consistent • Moved OpenGroupAPI into SessionNetworkingKit • Moved PushNotificationAPI into SessionNetworkingKit • Renamed to OpenGroupAPI to SOGSAPI
24 lines
577 B
Swift
24 lines
577 B
Swift
// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import Foundation
|
|
import SessionNetworkingKit
|
|
import SessionUtilitiesKit
|
|
|
|
public extension Network.PushNotification {
|
|
enum Endpoint: EndpointType {
|
|
case subscribe
|
|
case unsubscribe
|
|
|
|
public static var name: String { "PushNotification.Endpoint" }
|
|
|
|
public var path: String {
|
|
switch self {
|
|
case .subscribe: return "subscribe"
|
|
case .unsubscribe: return "unsubscribe"
|
|
}
|
|
}
|
|
}
|
|
}
|