-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComments.py
More file actions
37 lines (26 loc) · 833 Bytes
/
Comments.py
File metadata and controls
37 lines (26 loc) · 833 Bytes
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
class Comment:
def __init__(self, title, id, post_id, user_id, parent_comment_id=None, is_parent=False):
self.post_id = post_id
self.user_id = user_id
self.title = title
self.id = id
self.parent_comment_id = parent_comment_id
self.isParent = is_parent
def getTitle(self):
return self.title
def setTitle(self, value):
self.title = value
def getParentId(self):
return self.parent_comment_id
def setParentId(self, value):
self.parent_comment_id = value
def getId(self):
return self.id
def getPostId(self):
return self.post_id
def setPostId(self, value):
self.post_id = value
def getUserID(self):
return self.user_id
def setUserID(self, value):
self.user_id = value