Added missing public initialisers in the Credentials and File parameters.
This commit is contained in:
parent
12b3f696c2
commit
87f6b4c0b9
@ -20,11 +20,33 @@ public protocol Service {
|
||||
// MARK: - Structs
|
||||
|
||||
public struct Credentials {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
let username: String
|
||||
let password: String
|
||||
|
||||
// MARK: Initialisers
|
||||
|
||||
public init(username: String, password: String) {
|
||||
self.username = username
|
||||
self.password = password
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public struct File {
|
||||
|
||||
// MARK: Properties
|
||||
|
||||
let name: String
|
||||
let data: Data
|
||||
|
||||
// MARK: Initialisers
|
||||
|
||||
public init(name: String, data: Data) {
|
||||
self.name = name
|
||||
self.data = data
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user