forked from mirrors/bookwyrm
20 lines
361 B
Python
20 lines
361 B
Python
""" an image, nothing fancy """
|
|
from dataclasses import dataclass
|
|
from .base_activity import ActivityObject
|
|
|
|
|
|
@dataclass(init=False)
|
|
class Document(ActivityObject):
|
|
""" a document """
|
|
|
|
url: str
|
|
name: str = ""
|
|
type: str = "Document"
|
|
id: str = None
|
|
|
|
|
|
@dataclass(init=False)
|
|
class Image(Document):
|
|
""" an image """
|
|
|
|
type: str = "Image"
|