mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-06 23:39:35 +00:00
23 lines
443 B
Swift
23 lines
443 B
Swift
import Foundation
|
|
|
|
public enum Conversations: Endpoint {
|
|
case conversations
|
|
case delete(id: String)
|
|
case read(id: String)
|
|
|
|
public func path() -> String {
|
|
switch self {
|
|
case .conversations:
|
|
return "conversations"
|
|
case let .delete(id):
|
|
return "conversations/\(id)"
|
|
case let .read(id):
|
|
return "conversations/\(id)/read"
|
|
}
|
|
}
|
|
|
|
public func queryItems() -> [URLQueryItem]? {
|
|
return nil
|
|
}
|
|
}
|