c10e54dd34
Some checks failed
Python package / build (3.10) (push) Has been cancelled
Python package / build (3.11) (push) Has been cancelled
Python package / build (3.9) (push) Has been cancelled
13 lines
409 B
Python
13 lines
409 B
Python
class Comment:
|
|
def __init__(self, canEdit, canInteract, comment,
|
|
user, poster, inReplyTo=None):
|
|
self.id = comment['comment']['commentId']
|
|
self.canEdit = canEdit
|
|
self.canInteract = canInteract
|
|
self.comment = comment['comment']
|
|
self.poster = poster
|
|
self.inReplyTo = inReplyTo
|
|
|
|
@property
|
|
def body(self):
|
|
return self.comment['body']
|