mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-16 04:00:39 +00:00
26 lines
405 B
Swift
26 lines
405 B
Swift
import Foundation
|
|
|
|
public enum Trends: Endpoint {
|
|
case tags
|
|
case statuses
|
|
case links
|
|
|
|
public func path() -> String {
|
|
switch self {
|
|
case .tags:
|
|
return "trends/tags"
|
|
case .statuses:
|
|
return "trends/statuses"
|
|
case .links:
|
|
return "trends/links"
|
|
}
|
|
}
|
|
|
|
public func queryItems() -> [URLQueryItem]? {
|
|
switch self {
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|