Vernissage/Vernissage/EnvironmentObjects/Client+Trends.swift

25 lines
703 B
Swift

//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the Apache License 2.0.
//
import Foundation
import PixelfedKit
extension Client {
public class Trends: BaseClient {
public func statuses(range: Pixelfed.Trends.TrendRange) async throws -> [Status] {
return try await pixelfedClient.statusesTrends(range: range)
}
public func tags() async throws -> [TagTrend] {
return try await pixelfedClient.tagsTrends()
}
public func accounts() async throws -> [Account] {
return try await pixelfedClient.accountsTrends()
}
}
}