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:
|
|
|
|
from typing import Dict, List, Optional
|
|
|
|
except ImportError:
|
|
|
|
Dict, List, Optional = None, None, None # type: ignore
|
|
|
|
|
2019-05-14 14:22:23 +00:00
|
|
|
|
|
|
|
class ApplySettings(p.MessageType):
|
|
|
|
MESSAGE_WIRE_TYPE = 25
|
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
language: str = None,
|
|
|
|
label: str = None,
|
|
|
|
use_passphrase: bool = None,
|
|
|
|
homescreen: bytes = None,
|
|
|
|
passphrase_source: int = None,
|
|
|
|
auto_lock_delay_ms: int = None,
|
|
|
|
display_rotation: int = None,
|
|
|
|
) -> None:
|
|
|
|
self.language = language
|
|
|
|
self.label = label
|
|
|
|
self.use_passphrase = use_passphrase
|
|
|
|
self.homescreen = homescreen
|
|
|
|
self.passphrase_source = passphrase_source
|
|
|
|
self.auto_lock_delay_ms = auto_lock_delay_ms
|
|
|
|
self.display_rotation = display_rotation
|
|
|
|
|
|
|
|
@classmethod
|
2019-07-03 13:02:50 +00:00
|
|
|
def get_fields(cls) -> Dict:
|
2019-05-14 14:22:23 +00:00
|
|
|
return {
|
|
|
|
1: ('language', p.UnicodeType, 0),
|
|
|
|
2: ('label', p.UnicodeType, 0),
|
|
|
|
3: ('use_passphrase', p.BoolType, 0),
|
|
|
|
4: ('homescreen', p.BytesType, 0),
|
|
|
|
5: ('passphrase_source', p.UVarintType, 0),
|
|
|
|
6: ('auto_lock_delay_ms', p.UVarintType, 0),
|
|
|
|
7: ('display_rotation', p.UVarintType, 0),
|
|
|
|
}
|