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 ET when a new connection is established by Profiles.

    Declaration

    Swift

    internal var client: Skyle_SkyleNIOClient?
  • id

    The id property exposes a Publisher which indicates the id of the profile. -1 is just a placeholder.

    Declaration

    Swift

    @Published
    internal(set) public var id: Int { get set }
  • The skill property exposes a Publisher which indicates the Skyle_Profile.Skill of the profile.

    Declaration

    Swift

    @Published
    public var skill: Skyle_Profile.Skill { get set }
  • The name property exposes a Publisher which indicates the name of the profile. An empty String is 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_Profile

    Return Value

    A Skyle_profile generated from self.

  • This function selects the current profile.

    • completion: A completion handler.
    • message: A Skyle_StatusMessage indicating the success = true | false of the call, or nil
    • state: A ET.States containing possible errors.

    Declaration

    Swift

    public func select(completion: @escaping (_ message: Skyle_StatusMessage?, _ state: ET.States) -> Void = {_, _ in})