29 lines
484 B
Swift
29 lines
484 B
Swift
//
|
|
// MastodonFollowRequestState.swift
|
|
//
|
|
//
|
|
// Created by MainasuK on 2022-6-29.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
public final class MastodonFollowRequestState: NSObject, Codable {
|
|
public let state: State
|
|
|
|
public init(
|
|
state: State
|
|
) {
|
|
self.state = state
|
|
}
|
|
}
|
|
|
|
extension MastodonFollowRequestState {
|
|
public enum State: String, Codable {
|
|
case none
|
|
case isAccepting
|
|
case isAccept
|
|
case isRejecting
|
|
case isReject
|
|
}
|
|
}
|