forked from Threadfin/Threadfin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct-hdhr.go
More file actions
61 lines (53 loc) · 1.74 KB
/
struct-hdhr.go
File metadata and controls
61 lines (53 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package src
import "encoding/xml"
// Capability : HDHR Capability XML
type Capability struct {
URLBase string `xml:"URLBase"`
XMLName xml.Name `xml:"root"`
Xmlns string `xml:"xmlns,attr"`
SpecVersion struct {
Major int `xml:"major"`
Minor int `xml:"minor"`
} `xml:"specVersion"`
Device struct {
DeviceType string `xml:"deviceType"`
FriendlyName string `xml:"friendlyName"`
Manufacturer string `xml:"manufacturer"`
ModelName string `xml:"modelName"`
ModelNumber string `xml:"modelNumber"`
SerialNumber string `xml:"serialNumber"`
UDN string `xml:"UDN"`
} `xml:"device"`
}
// Discover : HDHR Discover /discover.json
type Discover struct {
BaseURL string `json:"BaseURL"`
DeviceAuth string `json:"DeviceAuth"`
DeviceID string `json:"DeviceID"`
FirmwareName string `json:"FirmwareName"`
FirmwareVersion string `json:"FirmwareVersion"`
FriendlyName string `json:"FriendlyName"`
LineupURL string `json:"LineupURL"`
Manufacturer string `json:"Manufacturer"`
ModelNumber string `json:"ModelNumber"`
TunerCount int `json:"TunerCount"`
}
// LineupStatus : HDHR Lineup status /lineup_status.json
type LineupStatus struct {
ScanInProgress int `json:"ScanInProgress"`
ScanPossible int `json:"ScanPossible"`
Source string `json:"Source"`
SourceList []string `json:"SourceList"`
}
// Lineup : HDHR Lineup /lineup.json
type Lineup []interface {
//GuideName string `json:"GuideName"`
//GuideNumber string `json:"GuideNumber"`
//URL string `json:"URL"`
}
// LineupStream : HDHR einzelner Stream im Lineup
type LineupStream struct {
GuideName string `json:"GuideName"`
GuideNumber string `json:"GuideNumber"`
URL string `json:"URL"`
}