25 lines
683 B
Swift
25 lines
683 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()
|
|
}
|
|
}
|
|
}
|