Interface: ISecureKey

module:miot/service/security.ISecureKey

安全锁

Members

activeTime :long

生效时间 UTC时间戳,单位为s, active_time

(readonly) deviceID :long

设备 ID

expireTime

过期时间 UTC时间戳,单位为s, expire_time

(readonly) keyID :long

<<<<<<< HEAD

电子钥匙 ID

=======

keyID

>>>>>>> master

(readonly) shareUserID :string

分享目标的uid

status :int

分享类别,1:暂时,2:周期,3:永久

weekdays :Array.<int>

生效日期(星期几,例如周一和周三对应1和3,[1, 3],星期天对应0),仅在status=2时不可为空

Methods

isOutOfDate()

是否过期

Returns:

boolean

remove() → {Promise}

删除 /share/bluetoothkeyshare

Returns:
Type
Promise

save() → {Promise}

保存 /share/bluetoothkeyshare

Returns:
Type
Promise