Last active
December 8, 2020 06:40
-
-
Save ronstar/94117ed07f39212d6c3c2176b75d20dd to your computer and use it in GitHub Desktop.
Service three configurable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ServiceThreeConfigurable: ServiceThreeProtocol, Configurable { // 1 | |
struct ServiceThreeConfiguration { // 2 | |
var paramOne: Bool | |
var paramTwo: Data | |
} | |
let serviceOne: ServiceOneProtocol | |
var paramOne: Bool! // 3 | |
var paramTwo: Data! | |
init(serviceOne: ServiceOneProtocol) { | |
self.serviceOne = serviceOne | |
} | |
func configure(configuration: ServiceThreeConfiguration) { // 4 | |
self.paramOne = configuration.paramOne | |
self.paramTwo = configuration.paramTwo | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment