from dataclasses import dataclass

from enum import Enum


class IdentifierContext(Enum):
    Anonymous = 1
    Business = 2
    Home = 3
    Other = 4
    Personal = 5
    Professional = 6
    Work = 7


class IdentifierTypes(Enum):
    Postal = 1
    Phone = 2
    Email = 3
    Url = 4


@dataclass(frozen=True, order=True)
class Identifier:
    context: IdentifierContext
    key: IdentifierTypes
    val: str
