"""
gallerize.models
~~~~~~~~~~~~~~~~

:Copyright: 2007-2021 <NAME>
:License: MIT, see LICENSE for details.
"""

from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from typing import Optional


@dataclass(frozen=True)
class Dimension:
    width: int
    height: int


@dataclass(frozen=True)
class Image:
    full_filename: Path
    path: Path
    filename: str
    thumbnail_filename: str
    page_name: str
    caption: Optional[str] = None
    previous_image: Optional[Image] = None
    next_image: Optional[Image] = None


@dataclass(frozen=True)
class Gallery:
    title: str
    destination_path: Path
    max_image_size: Dimension
    max_thumbnail_size: Dimension
    images: list[Image]


@dataclass(frozen=True)
class Config:
    html_only: bool
    resize_images: bool
    optimize_images: bool

"""
gallerize.models
~~~~~~~~~~~~~~~~

:Copyright: 2007-2021 <NAME>
:License: MIT, see LICENSE for details.
"""

from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from typing import Optional


@dataclass(frozen=True)
class Dimension:
    width: int
    height: int


@dataclass(frozen=True)
class Image:
    full_filename: Path
    path: Path
    filename: str
    thumbnail_filename: str
    page_name: str
    caption: Optional[str] = None
    previous_image: Optional[Image] = None
    next_image: Optional[Image] = None


@dataclass(frozen=True)
class Gallery:
    title: str
    destination_path: Path
    max_image_size: Dimension
    max_thumbnail_size: Dimension
    images: list[Image]


@dataclass(frozen=True)
class Config:
    html_only: bool
    resize_images: bool
    optimize_images: bool

gallerize.models ~~~~~~~~~~~~~~~~  :Copyright: 2007-2021 <NAME> :License: MIT, see LICENSE for details.