FMPUser.Builder

Description

The FMPUser.Builder class is a builder for the FMPUser class.

class Builder

Methods

Method Description
login(_:) Save user login to variable.
func login(_ login: String) -> Builder

Parameters:

  • login. User login.

password(_:) Save user password to variable.
func password(_ password: String) -> Builder

Parameters:

  • password. User password.

build() Build an instance of the FMPUser class. It returns the object of the FMPUser type.
func build() -> FMPUser

Example

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:

FMPWrapper Framework | Classes