mirror of
https://github.com/Cocoanetics/SwiftMail.git
synced 2026-03-17 20:02:25 +00:00
22 lines
562 B
Swift
22 lines
562 B
Swift
import Foundation
|
|
import NIOIMAPCore
|
|
|
|
/** Command to close the currently selected mailbox */
|
|
public struct CloseCommand: IMAPCommand {
|
|
public typealias ResultType = Void
|
|
public typealias HandlerType = CloseHandler
|
|
|
|
public var handlerType: HandlerType.Type {
|
|
return CloseHandler.self
|
|
}
|
|
|
|
public init() {}
|
|
|
|
public func validate() throws {
|
|
// No validation needed for CLOSE command
|
|
}
|
|
|
|
public func toTaggedCommand(tag: String) -> TaggedCommand {
|
|
TaggedCommand(tag: tag, command: .close)
|
|
}
|
|
} |