@classmethod
    def get_backend_from_id_and_api_id_result(cls, result):
        if len(result) > 0:
            return cls.load(result[0]['id'], api_id=result[0]['hq_api_id'])

        return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/models.py/SQLMobileBackend.get_backend_from_id_and_api_id_result/original