MilanoteUnofficialApi.elements.meta
1class Meta: 2 """ 3 A Milanote element's metadata. 4 """ 5 6 created_time: int 7 """Created time of the element as UNIX time (in milliseconds).""" 8 creator: str 9 """ID of the user who created the element.""" 10 modified_by: str 11 """ID of the user who last modified the element.""" 12 modified_time: int 13 """Timestamp of the last modification of the element as UNIX time (in milliseconds).""" 14 significant_modified: int 15 """Timestamp of the last significant modification of the element as UNIX time (in milliseconds).""" 16 17 def __init__(self, data: dict): 18 self.created_time = data["createdTime"] 19 self.creator = data["creator"] 20 self.modified_by = data["modifiedBy"] 21 self.modified_time = data["modifiedTime"] 22 self.significant_modified = data["significantModified"] 23 24 def __repr__(self): 25 return f"Meta(created_time='{self.created_time}', creator='{self.creator}', modified_by='{self.modified_by}', modified_time='{self.modified_time}', significant_modified='{self.significant_modified}')"
class
Meta:
2class Meta: 3 """ 4 A Milanote element's metadata. 5 """ 6 7 created_time: int 8 """Created time of the element as UNIX time (in milliseconds).""" 9 creator: str 10 """ID of the user who created the element.""" 11 modified_by: str 12 """ID of the user who last modified the element.""" 13 modified_time: int 14 """Timestamp of the last modification of the element as UNIX time (in milliseconds).""" 15 significant_modified: int 16 """Timestamp of the last significant modification of the element as UNIX time (in milliseconds).""" 17 18 def __init__(self, data: dict): 19 self.created_time = data["createdTime"] 20 self.creator = data["creator"] 21 self.modified_by = data["modifiedBy"] 22 self.modified_time = data["modifiedTime"] 23 self.significant_modified = data["significantModified"] 24 25 def __repr__(self): 26 return f"Meta(created_time='{self.created_time}', creator='{self.creator}', modified_by='{self.modified_by}', modified_time='{self.modified_time}', significant_modified='{self.significant_modified}')"
A Milanote element's metadata.