MilanoteUnofficialApi.elements.comment
1class Comment: 2 """ 3 A Milanote comment. 4 """ 5 6 id: str 7 """ID of the comment.""" 8 user_id: str 9 """ID of the user who created the comment.""" 10 text: str 11 """Text of the comment.""" 12 created_at: str 13 """UNIX Timestamp of when the comment was created.""" 14 updated_at: str 15 """UNIX Timestamp of when the comment was last updated.""" 16 17 def __init__(self, data: dict): 18 self.id = data["_id"] 19 self.user_id = data["userId"] 20 self.text = "".join([block["text"] for block in data["text"]["blocks"]]) 21 self.created_at = data["createdAt"] 22 self.updated_at = data["updatedAt"] 23 24 def __repr__(self): 25 return f"Comment(id='{self.id}', text='{self.text}')"
class
Comment:
2class Comment: 3 """ 4 A Milanote comment. 5 """ 6 7 id: str 8 """ID of the comment.""" 9 user_id: str 10 """ID of the user who created the comment.""" 11 text: str 12 """Text of the comment.""" 13 created_at: str 14 """UNIX Timestamp of when the comment was created.""" 15 updated_at: str 16 """UNIX Timestamp of when the comment was last updated.""" 17 18 def __init__(self, data: dict): 19 self.id = data["_id"] 20 self.user_id = data["userId"] 21 self.text = "".join([block["text"] for block in data["text"]["blocks"]]) 22 self.created_at = data["createdAt"] 23 self.updated_at = data["updatedAt"] 24 25 def __repr__(self): 26 return f"Comment(id='{self.id}', text='{self.text}')"
A Milanote comment.