from typing import Optional, Any

from ....core.enums.state import State
from ....core.interfaces.dto import Dto
from ....core.enums.status import Status
from ....core.interfaces.core import Core


class Device[Properties: Any](Core[Properties]):
  name: str

  type: Optional[str]
  token: Optional[str]

  state: Optional[State]
  status: Optional[Status]

  location: Optional[str]


# ----------------------------------------
# Data Transfer Object Interface
# ----------------------------------------


class DeviceDto[Properties: Any](Dto[Properties]):
  name: str

  type: Optional[str]
  token: Optional[str]

  state: Optional[State]
  status: Optional[Status]

  location: Optional[str]
