You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/messages/DebugLinkShowText.py

39 lines
1.0 KiB

# Automatically generated by pb2py
# fmt: off
import protobuf as p
from .DebugLinkShowTextItem import DebugLinkShowTextItem
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class DebugLinkShowText(p.MessageType):
MESSAGE_WIRE_TYPE = 9004
def __init__(
self,
*,
body_text: List[DebugLinkShowTextItem] = None,
header_text: str = None,
header_icon: str = None,
icon_color: str = None,
) -> None:
self.body_text = body_text if body_text is not None else []
self.header_text = header_text
self.header_icon = header_icon
self.icon_color = icon_color
@classmethod
def get_fields(cls) -> Dict:
return {
1: ('header_text', p.UnicodeType, None),
2: ('body_text', DebugLinkShowTextItem, p.FLAG_REPEATED),
3: ('header_icon', p.UnicodeType, None),
4: ('icon_color', p.UnicodeType, None),
}