mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Added integration for new refund request • Wired up the refunding states based on the new data • Updated code to use strings from libSession instead of hardcoded values • Updated the code to trigger a pro state refresh when the `proAccessExpiryTimestampMs` on the config changes (ie. another device made a change to the pro configuration) • Updated logic to drive mocked pro states via the SessionProManager to make the code a bit cleaner • Updated the handling of pro proofs to sync both active and expired proofs (instead of just active) • Fixed a bunch of warnings
23 lines
549 B
Swift
23 lines
549 B
Swift
// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import Foundation
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|