1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-20 22:33:54 +01:00
metatext-app-ios-iphone-ipad/Development Assets/Mastodon API Stubs/PreferencesEndpoint+Stubbing.swift
Justin Mazzocchi 9b59e2fbea
wip
2020-08-30 16:33:32 -07:00

22 lines
557 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Mastodon
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
}
"""
}
}
}