Clean code
This commit is contained in:
parent
38f202ed25
commit
973dc21cf9
|
@ -768,9 +768,9 @@
|
|||
F88C245F295C37B80006098B = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F844F42429D2DC39000DD896 /* LICENSE */,
|
||||
F837269429A221420098D3C4 /* PixelfedKit */,
|
||||
F88ABD9529687D4D004EF61E /* README.md */,
|
||||
F844F42429D2DC39000DD896 /* LICENSE */,
|
||||
F835081F29BEF88600DE3247 /* Localization */,
|
||||
F864F79C29BB9D2400B13921 /* Models */,
|
||||
F8341F96295C6427009C8EE6 /* CoreData */,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Account'.
|
||||
extension Client {
|
||||
public class Accounts: BaseClient {
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Trends'.
|
||||
extension Client {
|
||||
public class Blocks: BaseClient {
|
||||
public func blocks(maxId: String? = nil,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Search'.
|
||||
extension Client {
|
||||
public class Instances {
|
||||
func instances(instanceUrls: [String]) async -> [Instance] {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Statuses'.
|
||||
extension Client {
|
||||
public class Media: BaseClient {
|
||||
func upload(data: Data, fileName: String, mimeType: String) async throws -> UploadedAttachment? {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Trends'.
|
||||
extension Client {
|
||||
public class Mutes: BaseClient {
|
||||
public func mutes(maxId: String? = nil,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Notifications'.
|
||||
extension Client {
|
||||
public class Notifications: BaseClient {
|
||||
public func notifications(maxId: MaxId? = nil,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Places'.
|
||||
extension Client {
|
||||
public class Places: BaseClient {
|
||||
public func search(query: String) async throws -> [Place] {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Search'.
|
||||
extension Client {
|
||||
public class Search: BaseClient {
|
||||
public func search(query: String, resultsType: Pixelfed.Search.ResultsType, limit: Int = 20, page: Int = 1) async throws -> SearchResults? {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Statuses'.
|
||||
extension Client {
|
||||
public class Statuses: BaseClient {
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Tags'.
|
||||
extension Client {
|
||||
public class Tags: BaseClient {
|
||||
public func get(tag: String) async throws -> Tag? {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Timeline'.
|
||||
extension Client {
|
||||
public class PublicTimeline: BaseClient {
|
||||
public func getStatuses(local: Bool? = nil,
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
import Foundation
|
||||
import PixelfedKit
|
||||
|
||||
/// Pixelfed 'Trends'.
|
||||
extension Client {
|
||||
public class Trends: BaseClient {
|
||||
public func statuses(range: Pixelfed.Trends.TrendRange) async throws -> [Status] {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// Licensed under the Apache License 2.0.
|
||||
//
|
||||
|
||||
|
||||
import Foundation
|
||||
|
||||
public enum PurchaseError: Error {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
// Licensed under the Apache License 2.0.
|
||||
//
|
||||
|
||||
|
||||
import WidgetKit
|
||||
import SwiftUI
|
||||
|
||||
|
|
Loading…
Reference in New Issue