Source code for photoprysm.models.links

import datetime

from dataclasses import dataclass
from typing import Optional, Self
from urllib.parse import urljoin

from .base import ModelBase




[docs] @dataclass class ShareLinkProperties(ModelBase): '''Share link properties. This is for setting and updating properties of share links. :param bool can_comment: (optional) Allow visitors using the share link to comment. :param bool can_edit: (optional) Allow visitors using the share link to edit. :param int expires: (optional) Set expiration time for the link in seconds. Defaults to 0 to disable expiration. :param int max_views: (optional) Set maximum number of views before link is disabled. Defaults to 0 to disable limit. :param str password: (optional) Set a password that visitors must enter before they can view the media ''' can_comment: Optional[bool] = None can_edit: Optional[bool] = None expires: Optional[int] = 0 max_views: Optional[int] = 0 slug: Optional[str] = None token: Optional[str] = None password: Optional[str] = None