-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.py
executable file
·66 lines (53 loc) · 1.38 KB
/
model.py
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
# -*- coding: utf-8 -*-
class Radio:
name = None
source = None
thumbnail = None
playable = False
def __init__(self, name, source, thumbnail, playable):
self.name = name
self.source = source
self.thumbnail = thumbnail
self.playable = playable
class Channel:
id = None
name = None
source = None
thumbnail = None
number = None
genre = None
cid = None
lastscan = None
def __init__(self, id, name, source, thumbnail, number, genre, cid, lastscan):
self.id = id
self.name = name
self.source = source
self.thumbnail = thumbnail
self.number = number
self.genre = genre
self.cid = cid
self.lastscan = lastscan
class EPG:
id = None
title = None
descr = None
next_title = None
category = None
start = None
end = None
duration = None
channel = None
longdesc = None
detail = None
def __init__(self, id, title, descr, next_title, category, start, end, duration, channel, longdesc, detail):
self.id = id
self.descr = descr
self.title = title
self.next_title = next_title
self.category = category
self.start = start
self.end = end
self.duration = duration
self.channel = channel
self.longdesc = longdesc
self.detail = detail