Source code for asyncdnspy.dns_message_question

#!/usr/bin/env python

[docs]class Question(object): """DNS message question class that has question details.""" __name = '' __question_type = 0 __class_type = 0 @property def name(self): """Name property of dns message question.""" return self.__name @name.setter def name(self, value: str): """Setter function of name property. :param value: Value of name. :type value: str. """ self.__name = value @property def question_type(self): """Question type property of dns message question.""" return self.__question_type @question_type.setter def question_type(self, value: int): """Setter function of question type property. :param value: Value of question type. :type value: 16 bit integer. """ self.__question_type = value @property def class_type(self): """Class type property of dns message question.""" return self.__class_type @class_type.setter def class_type(self, value: int): """Setter function of class type property. :param value: Value of class type. :type value: 16 bit integer. """ self.__class_type = value