class NotifyAppParam(TlvModel):
     """
     Used to serialize application parameters for PubSub notify interest.
     """
     publisher_prefix = NameField()
     nonce = UintField(128)
     publisher_fwd_hint = NameField()
示例#2
0
class NotifyAppParam(TlvModel):
    """
    Used to serialize application parameters for PubSub notify interest.
    """
    publisher_prefix = NameField()
    notify_nonce = BytesField(128)
    publisher_fwd_hint = ModelField(211, ForwardingHint)
示例#3
0
class RepoCommandResponse(TlvModel):
    name = NameField()
    start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID)
    end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID)
    process_id = UintField(RepoTypeNumber.PROCESS_ID)
    status_code = UintField(RepoTypeNumber.STATUS_CODE)
    insert_num = UintField(RepoTypeNumber.INSERT_NUM)
    delete_num = UintField(RepoTypeNumber.DELETE_NUM)
class RepoCommandParameter(TlvModel):
    name = NameField()
    forwarding_hint = ModelField(RepoTypeNumber.FORWARDING_HINT,
                                 ForwardingHint)
    start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID)
    end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID)
    process_id = BytesField(RepoTypeNumber.PROCESS_ID)
    register_prefix = ModelField(RepoTypeNumber.REGISTER_PREFIX,
                                 RegisterPrefix)
    check_prefix = ModelField(RepoTypeNumber.CHECK_PREFIX, CheckPrefix)
示例#5
0
 class Model(TlvModel):
     name = NameField()
     int_val = UintField(0x03)
     bytes_val = BytesField(0x02)
     bool_val = BoolField(0x01)
     array = ModelField(0x05, WordArray)
     flag_val = UintField(0x06, val_base_type=FlagVal)
     enum_arr = RepeatedField(UintField(0x07, val_base_type=EnumVal))
     str_val = BytesField(0x08, is_string=True)
     str_arr = RepeatedField(BytesField(0x09, is_string=True))
示例#6
0
class DeviceItem(TlvModel):
    device_id = BytesField(1)
    device_info = BytesField(2)
    aes_key = BytesField(3)
    device_identity_name = NameField()
class CheckPrefix(TlvModel):
    name = NameField()
class RegisterPrefix(TlvModel):
    name = NameField()
class ForwardingHint(TlvModel):
    name = NameField()
示例#10
0
class CatalogResponseParameter(TlvModel):
    data_name = NameField()
    repo_name = NameField()
    status = 200
示例#11
0
class CatalogCommandParameter(TlvModel):
    data_name = NameField()
    repo_name = NameField()
示例#12
0
class CatalogDataListParameter(TlvModel):
    name = NameField()
    insert_data_names = RepeatedField(NameField())
    delete_data_names = RepeatedField(NameField())
示例#13
0
class CatalogCommandParameter(TlvModel):
    name = NameField()
示例#14
0
class RepeatedNames(TlvModel):
    names = RepeatedField(NameField())
示例#15
0
class ServiceItem(TlvModel):
    service_id = UintField(1)
    exp_time = UintField(2)
    service_name = NameField()
示例#16
0
class CatalogResponseParameter(TlvModel):
    data_name = NameField()
    name = NameField()
示例#17
0
 class Model(TlvModel):
     name = NameField()
     int_val = UintField(0x03)
     str_val = BytesField(0x02)
     bool_val = BoolField(0x01)
示例#18
0
 class Model(TlvModel):
     name = NameField()
     int_val = UintField(0x03)
     str_val = BytesField(0x02)
     bool_val = BoolField(0x01)
     array = ModelField(0x05, WordArray)
示例#19
0
class RepoCommandParameter(TlvModel):
    name = NameField()
    start_block_id = UintField(RepoTypeNumber.START_BLOCK_ID)
    end_block_id = UintField(RepoTypeNumber.END_BLOCK_ID)
    process_id = UintField(RepoTypeNumber.PROCESS_ID)
示例#20
0
class AccessItem(TlvModel):
    prefix = NameField()
    type = UintField(2)
    encryption_key = BytesField(3)
    decryption_key = BytesField(4)
示例#21
0
class PrefixesInStorage(TlvModel):
    prefixes = RepeatedField(NameField())
示例#22
0
class CatalogRequestParameter(TlvModel):
    data_name = NameField()