The FMPUser.Builder class is a builder for the FMPUser class.
class Builder
Method | Description |
login(_:) | Save user login to variable. func login(_ login: String) -> Builder Parameters:
|
password(_:) | Save user password to variable. func password(_ password: String) -> Builder Parameters:
|
build() | Build an instance of the FMPUser class. It returns the object of the FMPUser type. func build() -> FMPUser |
Build an instance of the FMPUser class:
// Build an instance of the FMPUser class
let user: FMPUser = fmp.user
.login("login") // By default ""
.password("password") // By default ""
.build()
See also: