from ...tl.mtproto_request import MTProtoRequest


class PrivacyValueAllowContacts(MTProtoRequest):
    """Class generated by TLObjects' generator. All changes will be ERASED. TL definition below.
    privacyValueAllowContacts#fffe1bac = PrivacyRule"""

    # Telegram's constructor (U)ID for this class
    constructor_id = 0xfffe1bac
    # Also the ID of its resulting type for fast checks
    subclass_of_id = 0xebb7f270

    def __init__(self):
        super().__init__()

    @staticmethod
    def to_dict():
        return {}

    def on_send(self, writer):
        writer.write_int(PrivacyValueAllowContacts.constructor_id, signed=False)

    @staticmethod
    def empty():
        """Returns an "empty" instance (attributes=None)"""
        return PrivacyValueAllowContacts()

    def on_response(self, reader):
        pass

    def __repr__(self):
        return 'privacyValueAllowContacts#fffe1bac = PrivacyRule'

    def __str__(self):
        return '(privacyValueAllowContacts (ID: 0xfffe1bac) = ())'.format()
