moviewyrm/bookwyrm/activitypub/image.py

21 lines
357 B
Python
Raw Normal View History

2021-03-08 16:49:10 +00:00
""" an image, nothing fancy """
2020-11-28 01:58:21 +00:00
from dataclasses import dataclass
2020-11-28 04:11:22 +00:00
from .base_activity import ActivityObject
2020-11-28 01:58:21 +00:00
2021-03-08 16:49:10 +00:00
2020-11-28 04:11:22 +00:00
@dataclass(init=False)
2021-04-15 23:35:04 +00:00
class Document(ActivityObject):
2021-04-26 16:15:42 +00:00
"""a document"""
2021-03-08 16:49:10 +00:00
2020-11-28 01:58:21 +00:00
url: str
2021-03-08 16:49:10 +00:00
name: str = ""
2021-03-15 20:55:48 +00:00
type: str = "Document"
id: str = None
2021-04-17 18:47:48 +00:00
2021-04-17 18:57:06 +00:00
2021-04-17 18:47:48 +00:00
@dataclass(init=False)
class Image(Document):
2021-04-26 16:15:42 +00:00
"""an image"""
2021-04-17 18:57:06 +00:00
2021-04-17 18:47:48 +00:00
type: str = "Image"