forked from DouglasCorreiaBrito/tcc-fateczl-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Result.py
41 lines (33 loc) · 965 Bytes
/
Result.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
class Result:
def __init__(self, id, user, text, sentiment, favorites, retweets, createdat):
self._id = id
self._user = user
self._text = text
self._sentiment = sentiment
self._favorites = favorites
self._retweets = retweets
self._createdat = createdat
@property
def id(self):
return self._id
@property
def user(self):
return self._user
@property
def text(self):
return self._text
@property
def sentiment(self):
return self._sentiment
@property
def favorites(self):
return self._favorites
@property
def retweets(self):
return self._retweets
@property
def createdat(self):
#return format(self._createdat, "%d/%m/%Y")
return self._createdat
def split_values(self):
return [self.id, self.user, self.text, self.sentiment, self.favorites, self.retweets, self.createdat]