cohost.py/cohost/models/comment.py
Juhani Krekelä 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
Make cohost.py run with Python 3.6 without external dependencies
2024-09-30 22:17:19 +00:00

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']