Profile
@available(*, deprecated, message: "This does not work on Skyle 3")
public class Profile : ObservableObject
Profile exposes Publisher which hold information about a profile.
-
A reference to the current client, which represents the gRPC connection. This is automatically updated by
ETwhen a new connection is established byProfiles.Declaration
Swift
internal var client: Skyle_SkyleNIOClient? -
The
idproperty exposes aPublisherwhich indicates the id of the profile. -1 is just a placeholder.Declaration
Swift
@Published internal(set) public var id: Int { get set } -
The
skillproperty exposes aPublisherwhich indicates theSkyle_Profile.Skillof the profile.Declaration
Swift
@Published public var skill: Skyle_Profile.Skill { get set } -
The
nameproperty exposes aPublisherwhich indicates the name of the profile. An emptyStringis the placeholder.Declaration
Swift
@Published public var name: String { get set } -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public init(_ profile: Skyle_Profile) -
This function transforms the profile to a
Skyle_Profile.Declaration
Swift
public func profile() -> Skyle_ProfileReturn Value
A
Skyle_profilegenerated fromself. -
This function selects the current profile.
- completion: A completion handler.
- message: A
Skyle_StatusMessageindicating the success = true | false of the call, or nil - state: A
ET.Statescontaining possible errors.
Declaration
Swift
public func select(completion: @escaping (_ message: Skyle_StatusMessage?, _ state: ET.States) -> Void = {_, _ in})