def METHOD_NAME(btpUsecase, thisService):
    search_every_x_seconds = btpUsecase.repeatstatusrequest
    usecaseTimeout = btpUsecase.repeatstatustimeout
    # If the service has defined its own time to repeat a status request, take that time instead
    if isinstance(thisService, BTPSERVICE):
        if thisService.repeatstatusrequest is not None:
            search_every_x_seconds = thisService.repeatstatusrequest
        if thisService.repeatstatustimeout is not None:
            usecaseTimeout = thisService.repeatstatustimeout
    else:
        if "repeatstatusrequest" in thisService:
            search_every_x_seconds = thisService["repeatstatusrequest"]
        if "repeatstatustimeout" in thisService:
            usecaseTimeout = thisService["repeatstatustimeout"]
    return search_every_x_seconds, usecaseTimeout