Item

struct Item : Decodable, Equatable

Notification item {Global Kodi Type)

Not all notice details are that interesting. For example, a notification for Player.OnPropertyChanged will just give the changed property, so that means that every property has to be checked for the one that is changed. Better just get all the properties with Player.GetProperties.

Also, a library item can have it’s ID on different placed in the JSON. The decoder for this struct will check all placed and just put it in the ‘root’ of the struct.

  • Top level

    Declaration

    Swift

    public var method: Method
  • Custom decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws