metatext/Development Assets/Mastodon API Stubs/PreferencesEndpoint+Stubbing.swift

21 lines
541 B
Swift
Raw Normal View History

2020-08-08 02:03:41 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
extension PreferencesEndpoint: Stubbing {
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
}
"""
}
}
}