2017-12-12 15:40:11 +00:00
|
|
|
# Automatically generated by pb2py
|
|
|
|
from .. import protobuf as p
|
|
|
|
|
|
|
|
|
|
|
|
class Ping(p.MessageType):
|
2018-05-09 15:14:44 +00:00
|
|
|
MESSAGE_WIRE_TYPE = 1
|
2017-12-12 15:40:11 +00:00
|
|
|
FIELDS = {
|
|
|
|
1: ('message', p.UnicodeType, 0),
|
|
|
|
2: ('button_protection', p.BoolType, 0),
|
|
|
|
3: ('pin_protection', p.BoolType, 0),
|
|
|
|
4: ('passphrase_protection', p.BoolType, 0),
|
|
|
|
}
|
2018-05-09 15:14:44 +00:00
|
|
|
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
message: str = None,
|
|
|
|
button_protection: bool = None,
|
|
|
|
pin_protection: bool = None,
|
|
|
|
passphrase_protection: bool = None
|
|
|
|
) -> None:
|
|
|
|
self.message = message
|
|
|
|
self.button_protection = button_protection
|
|
|
|
self.pin_protection = pin_protection
|
|
|
|
self.passphrase_protection = passphrase_protection
|