2019-05-14 14:22:23 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
# fmt: off
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
2019-07-03 13:02:50 +00:00
|
|
|
if __debug__:
|
|
|
|
try:
|
2019-10-02 12:40:25 +00:00
|
|
|
from typing import Dict, List # noqa: F401
|
2019-08-02 17:06:01 +00:00
|
|
|
from typing_extensions import Literal # noqa: F401
|
2019-10-04 15:27:41 +00:00
|
|
|
EnumTypeDebugSwipeDirection = Literal[0, 1, 2, 3]
|
2019-07-03 13:02:50 +00:00
|
|
|
except ImportError:
|
2019-10-02 12:40:25 +00:00
|
|
|
pass
|
2019-07-03 13:02:50 +00:00
|
|
|
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
class DebugLinkDecision(p.MessageType):
|
|
|
|
MESSAGE_WIRE_TYPE = 100
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
yes_no: bool = None,
|
2019-10-04 15:27:41 +00:00
|
|
|
swipe: EnumTypeDebugSwipeDirection = None,
|
2019-05-14 14:22:23 +00:00
|
|
|
input: str = None,
|
2019-09-27 13:34:15 +00:00
|
|
|
x: int = None,
|
|
|
|
y: int = None,
|
|
|
|
wait: bool = None,
|
2019-05-14 14:22:23 +00:00
|
|
|
) -> None:
|
|
|
|
self.yes_no = yes_no
|
2019-10-04 15:27:41 +00:00
|
|
|
self.swipe = swipe
|
2019-05-14 14:22:23 +00:00
|
|
|
self.input = input
|
2019-09-27 13:34:15 +00:00
|
|
|
self.x = x
|
|
|
|
self.y = y
|
|
|
|
self.wait = wait
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
@classmethod
|
2019-07-03 13:02:50 +00:00
|
|
|
def get_fields(cls) -> Dict:
|
2019-05-14 14:22:23 +00:00
|
|
|
return {
|
|
|
|
1: ('yes_no', p.BoolType, 0),
|
2019-10-04 15:27:41 +00:00
|
|
|
2: ('swipe', p.EnumType("DebugSwipeDirection", (0, 1, 2, 3)), 0),
|
2019-05-14 14:22:23 +00:00
|
|
|
3: ('input', p.UnicodeType, 0),
|
2019-09-27 13:34:15 +00:00
|
|
|
4: ('x', p.UVarintType, 0),
|
|
|
|
5: ('y', p.UVarintType, 0),
|
|
|
|
6: ('wait', p.BoolType, 0),
|
2019-05-14 14:22:23 +00:00
|
|
|
}
|