metatext-app-ios-iphone-ipad/Development Assets/Mastodon API Stubs/ContextEndpoint+Stubbing.swift

19 lines
364 B
Swift
Raw Normal View History

2020-08-20 00:16:03 +02:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
2020-08-31 01:33:11 +02:00
import Mastodon
2020-08-20 00:16:03 +02:00
extension ContextEndpoint: Stubbing {
func dataString(url: URL) -> String? {
switch self {
case .context:
return """
{
"ancestors": [],
"descendants": []
}
"""
}
}
}