1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-19 21:13:07 +01:00
metatext-app-ios-iphone-ipad/MastodonAPI/Sources/MastodonAPIStubs/PreferencesEndpoint+Stubbing.swift

23 lines
583 B
Swift
Raw Normal View History

2020-08-08 04:03:41 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import MastodonAPI
2020-08-31 12:21:01 +02:00
import Stubbing
2020-08-08 04:03:41 +02:00
extension PreferencesEndpoint: Stubbing {
2020-08-31 12:21:01 +02:00
public func dataString(url: URL) -> String? {
2020-08-08 04:03:41 +02:00
switch self {
case .preferences:
return """
{
"posting:default:visibility": "public",
"posting:default:sensitive": false,
"posting:default:language": null,
"reading:expand:media": "default",
"reading:expand:spoilers": false
}
"""
}
}
}