metatext/Mastodon/Sources/MastodonStubs/PreferencesEndpoint+Stubbing.swift
Justin Mazzocchi 5f96f59ac3
wip
2020-08-31 03:21:01 -07:00

23 lines
580 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Mastodon
import Stubbing
extension PreferencesEndpoint: Stubbing {
public func dataString(url: URL) -> String? {
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
}
"""
}
}
}