forked from shadowfacts/Tusker
26 lines
534 B
Swift
26 lines
534 B
Swift
|
//
|
||
|
// Suggestion.swift
|
||
|
// Pachyderm
|
||
|
//
|
||
|
// Created by Shadowfacts on 1/22/23.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
public struct Suggestion: Decodable {
|
||
|
public let source: Source
|
||
|
public let account: Account
|
||
|
|
||
|
public static func remove(accountID: String) -> Request<Empty> {
|
||
|
return Request(method: .delete, path: "/api/v1/suggestions/\(accountID)")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
extension Suggestion {
|
||
|
public enum Source: String, Decodable {
|
||
|
case staff
|
||
|
case pastInteractions = "past_interactions"
|
||
|
case global
|
||
|
}
|
||
|
}
|