-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
107 lines (102 loc) · 2.49 KB
/
types.ts
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Generated by https://quicktype.io
export interface MyStats {
SessionId: string
SessionAddress: string
IPAddress: string
TotalBytesTransmitted: number
CurrentPayloadBytes: number
CurrentBurstBandwidth: number
CurrentAvgBandwidth: number
ConnectedSince: string
IcyMetaData: boolean
HttpVersion: string
RequestHeaders: string
UserAgent: string
RequestQueryString: string
CurrentItem: string
CurrentAdmarkerAmount: number
VirtualBufferSeconds: number
CurrentTrack: CurrentTrack
GeoIPCountry: string
GeoIPState: string
GeoIPCity: string
GeoIPZip: string
GeoIPLatitude: number
GeoIPLongitude: number
Codec: string
Quality: string
StreamingSessionType: string
StreamMount: string
StreamId: string
PrevSessionId: string
LastUpdate: string
OSMReverseResponse: OSMReverseResponse | null
FacebookInfo: null
StreaMonkeyListenerId: string
AdswizzListenerId: string
AdswizzSessionId: string
AdswizzListenerIdByAdserver: null
AdswizzSessionIdByAdserver: Record<string, string> | null
UseMediationLayer: boolean
StreamingHost: string
PCR: number
AdvertisementDuration: number
CellularConnection: boolean
ReverseDNSLookup: string
TLD: string
WorkerPid: string
URL: string
HTTPS: boolean
NextPossibleInstreamAd: string
InstreamGracetimeSeconds2: number
IsActiveSession: boolean
}
export interface OSMReverseResponse {
place_id: number
licence: string
osm_type: string
osm_id: number
lat: string
lon: string
display_name: string
address: { [key: string]: string }
boundingbox: string[]
}
export interface CurrentTrack {
TrackId: number
Bitrate: number
Duration: number
StoragePath: string
StorageType: string
Title: string
Artist: string
Album: string
Year: null
Track: null
Genre: string
ArtworkPath: string
TrackType: string
RawTrackAccessUrl: string
EncodingFinished: boolean
EncodingHadError: boolean
}
export interface SocketMeta {
artist: string
class: string
companion_ad: CompanionAd | null
cover_data: null
cover_url: string
master_id: string
start_time_unix: string
title: string
title_combined: string
}
export interface CompanionAd {
creative_id: string
resource_url: string
resource_type: string
click: string
click_tracking: string[]
view_tracking: string[]
resource_data: number[]
}