33 lines
671 B
Swift
33 lines
671 B
Swift
//
|
|
// EQNStartupCommandsBuilder.swift
|
|
// Earthquake Network
|
|
//
|
|
// Created by Busi Andrea on 14/08/2020.
|
|
// Copyright © 2020 Earthquake Network. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
@objc
|
|
public class EQNStartupCommandsBuilder: NSObject {
|
|
|
|
// MARK: - Public
|
|
|
|
@objc
|
|
func build() -> [EQNCommandProtocol] {
|
|
return [
|
|
EQNAppearanceCommand(),
|
|
EQNUserDefaultsCommand()
|
|
]
|
|
}
|
|
|
|
@objc
|
|
func execute(commands: [EQNCommandProtocol]) {
|
|
print("EQNStartupCommandsBuilder: start execute commands")
|
|
|
|
commands.forEach { (command) in
|
|
command.execute()
|
|
}
|
|
}
|
|
}
|