-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItemData.py
47 lines (37 loc) · 888 Bytes
/
ItemData.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
class ItemData:
def __init__(self, type1, title, price, link):
self.type1 = type1
self.title = title
#self.spec = spec
self.price = price
self.link = link
@property
def getType(self):
return self.type1
@property
def getTitle(self):
return self.title
@property
def getSpec(self):
return self.spec
@property
def getPrice(self):
return self.price
@property
def getLink(self):
return self.link
@property
def setType(self, text):
self.type1 = text
@property
def setTitle(self, text):
self.title = text
@property
def setSpec(self, text):
self.spec = text
@property
def setPrice(self, text):
self.price = text
@property
def setLink(self, text):
self.link = text