2022-01-06 16:09:55 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2022-05-01 22:32:08 +02:00
|
|
|
from . import Request, Response, request_type, response_type
|
2022-01-06 16:09:55 +01:00
|
|
|
|
|
|
|
|
2022-05-01 22:32:08 +02:00
|
|
|
@request_type
|
2022-01-06 16:09:55 +01:00
|
|
|
class Ping(Request):
|
2022-05-01 22:32:08 +02:00
|
|
|
FIELDS = {
|
|
|
|
"timeStamp": int,
|
|
|
|
}
|
2022-01-06 16:09:55 +01:00
|
|
|
|
|
|
|
|
2022-05-01 22:32:08 +02:00
|
|
|
@response_type
|
2022-01-06 16:09:55 +01:00
|
|
|
class PingResp(Response):
|
2022-05-01 22:32:08 +02:00
|
|
|
FIELDS = {
|
|
|
|
"timeStamp": int,
|
|
|
|
}
|