| 1 | // Code generated by go-bluetooth generator DO NOT EDIT. |
| 2 | |
| 3 | package mediascip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/ |
| 4 | |
| 5 | import ( |
| 6 | "syncscip-go gomod github.com/golang/go/src go1.14 sync/" |
| 7 | |
| 8 | "github.com/godbus/dbus/v5scip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/" |
| 9 | "github.com/muka/go-bluetooth/bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/" |
| 10 | "github.com/muka/go-bluetooth/propsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/" |
| 11 | "github.com/muka/go-bluetooth/utilscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/" |
| 12 | ) |
| 13 | |
| 14 | var MediaFolder1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Interface. = "org.bluez.MediaFolder1" |
| 15 | |
| 16 | // NewMediaFolder1 create a new instance of MediaFolder1 |
| 17 | // |
| 18 | // Args: |
| 19 | // - servicePath: unique name |
| 20 | // - objectPath: freely definable |
| 21 | func NewMediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/NewMediaFolder1().(servicePath string, objectPath dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#) (*MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#, error) { |
| 22 | a := new(MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) |
| 23 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client. = bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.NewClientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/NewClient().( |
| 24 | &bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#{ |
| 25 | Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Name.: servicePath, |
| 26 | Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface.: MediaFolder1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Interface., |
| 27 | Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path.: dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#(objectPath), |
| 28 | Busscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Bus.: bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.SystemBusscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/SystemBus., |
| 29 | }, |
| 30 | ) |
| 31 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties. = new(MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) |
| 32 | |
| 33 | _, err := a.GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperties().() |
| 34 | if err != nil { |
| 35 | return nil, err |
| 36 | } |
| 37 | return a, nil |
| 38 | } |
| 39 | |
| 40 | // NewMediaFolder1Controller create a new instance of MediaFolder1 |
| 41 | // |
| 42 | // Args: |
| 43 | // - objectPath: [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/playerX |
| 44 | func NewMediaFolder1Controllerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/NewMediaFolder1Controller().(objectPath dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#) (*MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#, error) { |
| 45 | a := new(MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) |
| 46 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client. = bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.NewClientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/NewClient().( |
| 47 | &bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#{ |
| 48 | Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Name.: "org.bluez", |
| 49 | Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface.: MediaFolder1Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Interface., |
| 50 | Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path.: dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#(objectPath), |
| 51 | Busscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Bus.: bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.SystemBusscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/SystemBus., |
| 52 | }, |
| 53 | ) |
| 54 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties. = new(MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) |
| 55 | |
| 56 | _, err := a.GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperties().() |
| 57 | if err != nil { |
| 58 | return nil, err |
| 59 | } |
| 60 | return a, nil |
| 61 | } |
| 62 | |
| 63 | /* |
| 64 | MediaFolder1 MediaFolder1 hierarchy |
| 65 | |
| 66 | */ |
| 67 | type MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1# struct { |
| 68 | clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client. *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client# |
| 69 | propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 70 | objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 71 | objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManager. *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.ObjectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager# |
| 72 | Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties. *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties# |
| 73 | watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#watchPropertiesChannel. chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# |
| 74 | } |
| 75 | |
| 76 | // MediaFolder1Properties contains the exposed properties of an interface |
| 77 | type MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties# struct { |
| 78 | lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#lock. syncscip-go gomod github.com/golang/go/src go1.14 sync/.RWMutexscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex# `dbus:"ignore"` |
| 79 | |
| 80 | /* |
| 81 | Attributes Item properties that should be included in the list. |
| 82 | |
| 83 | Possible Values: |
| 84 | |
| 85 | "title", "artist", "album", "genre", |
| 86 | "number-of-tracks", "number", "duration" |
| 87 | |
| 88 | Default Value: All |
| 89 | */ |
| 90 | Attributesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Attributes. []string |
| 91 | |
| 92 | /* |
| 93 | End Offset of the last item. |
| 94 | |
| 95 | Default value: NumbeOfItems |
| 96 | */ |
| 97 | Endscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#End. uint32 |
| 98 | |
| 99 | /* |
| 100 | Name Folder name: |
| 101 | |
| 102 | Possible values: |
| 103 | "/Filesystem/...": Filesystem scope |
| 104 | "/NowPlaying/...": NowPlaying scope |
| 105 | |
| 106 | Note: /NowPlaying folder might not be listed if player |
| 107 | is stopped, folders created by Search are virtual so |
| 108 | once another Search is perform or the folder is |
| 109 | changed using ChangeFolder it will no longer be listed. |
| 110 | |
| 111 | Filters |
| 112 | */ |
| 113 | Namescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Name. string |
| 114 | |
| 115 | /* |
| 116 | NumberOfItems Number of items in the folder |
| 117 | */ |
| 118 | NumberOfItemsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#NumberOfItems. uint32 |
| 119 | |
| 120 | /* |
| 121 | Start Offset of the first item. |
| 122 | |
| 123 | Default value: 0 |
| 124 | */ |
| 125 | Startscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Start. uint32 |
| 126 | } |
| 127 | |
| 128 | //Lock access to properties |
| 129 | func (p *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Lock().() { |
| 130 | p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#lock..Lockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Lock().() |
| 131 | } |
| 132 | |
| 133 | //Unlock access to properties |
| 134 | func (p *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Unlock().() { |
| 135 | p.lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#lock..Unlockscip-go gomod github.com/golang/go/src go1.14 sync/RWMutex#Unlock().() |
| 136 | } |
| 137 | |
| 138 | // SetAttributes set Attributes value |
| 139 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetAttributesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetAttributes().(v []string) error { |
| 140 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().("Attributes", v) |
| 141 | } |
| 142 | |
| 143 | // GetAttributes get Attributes value |
| 144 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetAttributesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetAttributes().() ([]string, error) { |
| 145 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().("Attributes") |
| 146 | if err != nil { |
| 147 | return []string{}, err |
| 148 | } |
| 149 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().([]string), nil |
| 150 | } |
| 151 | |
| 152 | // SetEnd set End value |
| 153 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetEndscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetEnd().(v uint32) error { |
| 154 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().("End", v) |
| 155 | } |
| 156 | |
| 157 | // GetEnd get End value |
| 158 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetEndscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetEnd().() (uint32, error) { |
| 159 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().("End") |
| 160 | if err != nil { |
| 161 | return uint32(0), err |
| 162 | } |
| 163 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint32), nil |
| 164 | } |
| 165 | |
| 166 | // SetName set Name value |
| 167 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetNamescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetName().(v string) error { |
| 168 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().("Name", v) |
| 169 | } |
| 170 | |
| 171 | // GetName get Name value |
| 172 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetNamescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetName().() (string, error) { |
| 173 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().("Name") |
| 174 | if err != nil { |
| 175 | return "", err |
| 176 | } |
| 177 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(string), nil |
| 178 | } |
| 179 | |
| 180 | // SetNumberOfItems set NumberOfItems value |
| 181 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetNumberOfItemsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetNumberOfItems().(v uint32) error { |
| 182 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().("NumberOfItems", v) |
| 183 | } |
| 184 | |
| 185 | // GetNumberOfItems get NumberOfItems value |
| 186 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetNumberOfItemsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetNumberOfItems().() (uint32, error) { |
| 187 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().("NumberOfItems") |
| 188 | if err != nil { |
| 189 | return uint32(0), err |
| 190 | } |
| 191 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint32), nil |
| 192 | } |
| 193 | |
| 194 | // SetStart set Start value |
| 195 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetStartscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetStart().(v uint32) error { |
| 196 | return a.SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().("Start", v) |
| 197 | } |
| 198 | |
| 199 | // GetStart get Start value |
| 200 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetStartscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetStart().() (uint32, error) { |
| 201 | v, err := a.GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().("Start") |
| 202 | if err != nil { |
| 203 | return uint32(0), err |
| 204 | } |
| 205 | return v.Valuescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#Value().().(uint32), nil |
| 206 | } |
| 207 | |
| 208 | // Close the connection |
| 209 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) Closescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Close().() { |
| 210 | a.unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#unregisterPropertiesSignal().() |
| 211 | a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Disconnectscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Disconnect().() |
| 212 | } |
| 213 | |
| 214 | // Path return MediaFolder1 object path |
| 215 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Path().() dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath# { |
| 216 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path. |
| 217 | } |
| 218 | |
| 219 | // Client return MediaFolder1 dbus client |
| 220 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Client().() *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client# { |
| 221 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client. |
| 222 | } |
| 223 | |
| 224 | // Interface return MediaFolder1 interface |
| 225 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) Interfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Interface().() string { |
| 226 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Ifacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Iface. |
| 227 | } |
| 228 | |
| 229 | // GetObjectManagerSignal return a channel for receiving updates from the ObjectManager |
| 230 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetObjectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetObjectManagerSignal().() (chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#, func(), error) { |
| 231 | |
| 232 | if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. == nil { |
| 233 | if a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManager. == nil { |
| 234 | om, err := bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.GetObjectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/GetObjectManager().() |
| 235 | if err != nil { |
| 236 | return nil, nil, err |
| 237 | } |
| 238 | a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManager. = om |
| 239 | } |
| 240 | |
| 241 | s, err := a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManager..Registerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager#Register().() |
| 242 | if err != nil { |
| 243 | return nil, nil, err |
| 244 | } |
| 245 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. = s |
| 246 | } |
| 247 | |
| 248 | cancel := func() { |
| 249 | if a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. == nil { |
| 250 | return |
| 251 | } |
| 252 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. <- nil |
| 253 | a.objectManagerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManager..Unregisterscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/ObjectManager#Unregister().(a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal.) |
| 254 | a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal. = nil |
| 255 | } |
| 256 | |
| 257 | return a.objectManagerSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#objectManagerSignal., cancel, nil |
| 258 | } |
| 259 | |
| 260 | // ToMap convert a MediaFolder1Properties to map |
| 261 | func (a *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) ToMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#ToMap().() (map[string]interface{}, error) { |
| 262 | return propsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/.ToMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/props`/ToMap().(a), nil |
| 263 | } |
| 264 | |
| 265 | // FromMap convert a map to an MediaFolder1Properties |
| 266 | func (a *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) FromMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#FromMap().(props map[string]interface{}) (*MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#, error) { |
| 267 | props1 := map[string]dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#{} |
| 268 | for k, val := range props { |
| 269 | props1[k] = dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.MakeVariantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/MakeVariant().(val) |
| 270 | } |
| 271 | return a.FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#FromDBusMap().(props1) |
| 272 | } |
| 273 | |
| 274 | // FromDBusMap convert a map to an MediaFolder1Properties |
| 275 | func (a *MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) FromDBusMapscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#FromDBusMap().(props map[string]dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#) (*MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#, error) { |
| 276 | s := new(MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#) |
| 277 | err := utilscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/.MapToStructscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/util`/MapToStruct().(s, props) |
| 278 | return s, err |
| 279 | } |
| 280 | |
| 281 | // ToProps return the properties interface |
| 282 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) ToPropsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#ToProps().() bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Properties# { |
| 283 | return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties. |
| 284 | } |
| 285 | |
| 286 | // GetWatchPropertiesChannel return the dbus channel to receive properties interface |
| 287 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetWatchPropertiesChannel().() chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal# { |
| 288 | return a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#watchPropertiesChannel. |
| 289 | } |
| 290 | |
| 291 | // SetWatchPropertiesChannel set the dbus channel to receive properties interface |
| 292 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetWatchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetWatchPropertiesChannel().(c chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#) { |
| 293 | a.watchPropertiesChannelscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#watchPropertiesChannel. = c |
| 294 | } |
| 295 | |
| 296 | // GetProperties load all available properties |
| 297 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperties().() (*MediaFolder1Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#, error) { |
| 298 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties..Lockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Lock().() |
| 299 | err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..GetPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#GetProperties().(a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties.) |
| 300 | a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties..Unlockscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1Properties#Unlock().() |
| 301 | return a.Propertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Properties., err |
| 302 | } |
| 303 | |
| 304 | // SetProperty set a property |
| 305 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#SetProperty().(name string, value interface{}) error { |
| 306 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..SetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#SetProperty().(name, value) |
| 307 | } |
| 308 | |
| 309 | // GetProperty get a property |
| 310 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetProperty().(name string) (dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Variantscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Variant#, error) { |
| 311 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..GetPropertyscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#GetProperty().(name) |
| 312 | } |
| 313 | |
| 314 | // GetPropertiesSignal return a channel for receiving udpdates on property changes |
| 315 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) GetPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#GetPropertiesSignal().() (chan *dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.Signalscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Signal#, error) { |
| 316 | |
| 317 | if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. == nil { |
| 318 | s, err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Registerscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Register().(a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Configscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Config..Pathscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Config#Path., bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertiesInterfacescip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertiesInterface.) |
| 319 | if err != nil { |
| 320 | return nil, err |
| 321 | } |
| 322 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. = s |
| 323 | } |
| 324 | |
| 325 | return a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal., nil |
| 326 | } |
| 327 | |
| 328 | // Unregister for changes signalling |
| 329 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) unregisterPropertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#unregisterPropertiesSignal().() { |
| 330 | if a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. != nil { |
| 331 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. <- nil |
| 332 | a.propertiesSignalscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#propertiesSignal. = nil |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | // WatchProperties updates on property changes |
| 337 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) WatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#WatchProperties().() (chan *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertyChangedscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertyChanged#, error) { |
| 338 | return bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.WatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/WatchProperties().(a) |
| 339 | } |
| 340 | |
| 341 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) UnwatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#UnwatchProperties().(ch chan *bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.PropertyChangedscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/PropertyChanged#) error { |
| 342 | return bluezscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/.UnwatchPropertiesscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/UnwatchProperties().(a, ch) |
| 343 | } |
| 344 | |
| 345 | /* |
| 346 | Search Return a folder object containing the search result. |
| 347 | To list the items found use the folder object returned |
| 348 | and pass to ChangeFolder. |
| 349 | Possible Errors: org.bluez.Error.NotSupported |
| 350 | org.bluez.Error.Failed |
| 351 | |
| 352 | */ |
| 353 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) Searchscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#Search().(value string, filter map[string]interface{}) (dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#, error) { |
| 354 | var val0 dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath# |
| 355 | err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("Search", 0, value, filter).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().(&val0) |
| 356 | return val0, err |
| 357 | } |
| 358 | |
| 359 | /* |
| 360 | ListItems Return a list of items found |
| 361 | Possible Errors: org.bluez.Error.InvalidArguments |
| 362 | org.bluez.Error.NotSupported |
| 363 | org.bluez.Error.Failed |
| 364 | |
| 365 | */ |
| 366 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) ListItemsscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#ListItems().(filter map[string]interface{}) ([]Itemscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/Item#, error) { |
| 367 | val0 := []Itemscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/Item#{} |
| 368 | err := a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("ListItems", 0, filter).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().(&val0) |
| 369 | return val0, err |
| 370 | } |
| 371 | |
| 372 | /* |
| 373 | ChangeFolder Change current folder. |
| 374 | Note: By changing folder the items of previous folder |
| 375 | might be destroyed and have to be listed again, the |
| 376 | exception is NowPlaying folder which should be always |
| 377 | present while the player is active. |
| 378 | Possible Errors: org.bluez.Error.InvalidArguments |
| 379 | org.bluez.Error.NotSupported |
| 380 | org.bluez.Error.Failed |
| 381 | |
| 382 | */ |
| 383 | func (a *MediaFolder1scip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#) ChangeFolderscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#ChangeFolder().(folder dbusscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/.ObjectPathscip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/ObjectPath#) error { |
| 384 | return a.clientscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez/profile/media`/MediaFolder1#client..Callscip-go gomod github.com/muka/go-bluetooth . `github.com/muka/go-bluetooth/bluez`/Client#Call().("ChangeFolder", 0, folder).Storescip-go gomod github.com/godbus/dbus/v5 v5.0.3 `github.com/godbus/dbus/v5`/Call#Store().() |
| 385 | } |