feat(endpoint): added stop_all_devices endpoint

This commit is contained in:
wakonig_k 2024-08-29 18:19:52 +02:00
parent 9db0c03bec
commit 13beb51a52

View File

@ -451,6 +451,21 @@ class MessageEndpoints:
message_op=MessageOp.SEND,
)
@staticmethod
def stop_all_devices() -> EndpointInfo:
"""
Endpoint for stopping all devices. This endpoint is used to publish a message
to stop all devices and is used by the scan server's scan queue if a scan queue
modification was requested and accepted and requires to stop all devices.
Returns:
EndpointInfo: Endpoint for stopping all devices.
"""
endpoint = "internal/queue/stop_all_devices"
return EndpointInfo(
endpoint=endpoint, message_type=messages.VariableMessage, message_op=MessageOp.SEND
)
@staticmethod
def scan_queue_status() -> EndpointInfo:
"""