HostItem

public struct HostItem : Codable, Identifiable, Hashable

Host information to make a remote connection (SwiftlyKodi Type)

  • id

    The ID of the host

    Declaration

    Swift

    public var id: String { get }
  • Name of the host

    Declaration

    Swift

    public var name: String
  • ip

    IP of the host

    Declaration

    Swift

    public var ip: String
  • Webserver port of the host

    Declaration

    Swift

    public var port: Int
  • tcp

    TCP of the host

    Note

    This is found by Bonjour on first edit

    Declaration

    Swift

    public var tcp: Int { get }
  • Username of the host

    Declaration

    Swift

    public var username: String
  • Password of the host

    Declaration

    Swift

    public var password: String
  • Kind of media to load

    Declaration

    Swift

    public var media: Media
  • Kind of player to use

    Declaration

    Swift

    public var player: Player
  • Status of the host

    Declaration

    Swift

    public var status: Status
  • Bool if the host is online

    Declaration

    Swift

    public var isOnline: Bool { get }
  • The optional bonjour result

    Declaration

    Swift

    public var bonjour: KodiConnector.BonjourHost? { get }
  • Content of the library

    Note

    Used as filter for notifications

    Declaration

    Swift

    public var content: [Library.Media] { get }
  • Bool if the host is selected

    Declaration

    Swift

    public var isSelected: Bool { get }
  • Init the Host struct

    Declaration

    Swift

    public init(
        name: String = "Unknown",
        ip: String = "",
        port: Int = 8080,
        username: String = "",
        password: String = "",
        media: Media = .video,
        player: Player = .local,
        status: Status = .new
    )
  • The kind of media to load when connecting to the host

    Note

    Audio and Video both load Artists and Music Videos
    See more

    Declaration

    Swift

    public enum Media : String, Codable
  • The status of the host

    See more

    Declaration

    Swift

    public enum Status : String, Codable
  • The player the client want to use

    Note

    This will only influence Player status and Playlists updates
    See more

    Declaration

    Swift

    public enum Player : String, Codable