# SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project.
# The latest version of the code is available on the site www.pullenti.ru

from enum import IntEnum

class LinkType(IntEnum):
    """ Тип связи """
    UNDEFINED = 0
    """ Не определено """
    BORN = 1
    """ Рождение """
    FAMILY = 2
    """ Родственные """
    STUDY = 3
    """ Обучение """
    WORK = 4
    """ Работа """
    CONTACT = 5
    """ Контакт """
    DOCUMENT = 6
    """ Паспорт и т.п. """
    ADDRESS = 7
    """ Адрес, локация """
    UNIT = 8
    """ Подразделение """
    
    @classmethod
    def has_value(cls, value):
        return any(value == item.value for item in cls)