2018-09-11 14:52:21 +00:00
|
|
|
//
|
|
|
|
// Scope.swift
|
|
|
|
// Pachyderm
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 9/9/18.
|
|
|
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2023-02-19 20:23:25 +00:00
|
|
|
public enum Scope: String, Sendable {
|
2018-09-11 14:52:21 +00:00
|
|
|
case read
|
|
|
|
case write
|
|
|
|
case follow
|
|
|
|
}
|
|
|
|
|
|
|
|
extension Array where Element == Scope {
|
|
|
|
var scopeString: String {
|
|
|
|
return map { $0.rawValue }.joined(separator: " ")
|
|
|
|
}
|
|
|
|
}
|