# 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 MailKind(IntEnum):
    """ Тип блока письма """
    UNDEFINED = 0
    HEAD = 1
    """ Заголовок """
    HELLO = 2
    """ Приветствие """
    BODY = 3
    """ Содержимое """
    TAIL = 4
    """ Подпись """
    
    @classmethod
    def has_value(cls, value):
        return any(value == item.value for item in cls)