<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_eom(self, type_class, query_termination, response_termination):
 """Add default end of message for a given interface type and resource class. :param type_class: interface type and resource class as strings joined by space :param query_termination: end of message used in queries. :param response_termination: end of message used in responses. """

        interface_type, resource_class = type_class.split(' ')
        interface_type = getattr(constants.InterfaceType,
                                 interface_type.lower())
        self._eoms[(interface_type,
                    resource_class)] = (to_bytes(query_termination),
                                        to_bytes(response_termination))