metatext-app-ios-iphone-ipad/Networking/Mastodon API/Endpoints/PreferencesEndpoint.swift

24 lines
464 B
Swift
Raw Normal View History

2020-08-07 03:41:59 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
enum PreferencesEndpoint {
case preferences
}
extension PreferencesEndpoint: MastodonEndpoint {
typealias ResultType = MastodonPreferences
var pathComponentsInContext: [String] {
switch self {
2020-08-07 12:14:14 +02:00
case .preferences: return ["preferences"]
2020-08-07 03:41:59 +02:00
}
}
var method: HTTPMethod {
switch self {
case .preferences: return .get
}
}
}