You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
import { DataMessage } from './DataMessage';
|
|
import { SignalService } from '../../../../../protobuf';
|
|
import { Constants } from '../../../..';
|
|
|
|
export class DeviceUnlinkMessage extends DataMessage {
|
|
public ttl(): number {
|
|
return Constants.TTL_DEFAULT.DEVICE_UNPAIRING;
|
|
}
|
|
|
|
public dataProto(): SignalService.DataMessage {
|
|
const flags = SignalService.DataMessage.Flags.UNPAIRING_REQUEST;
|
|
|
|
return new SignalService.DataMessage({
|
|
flags,
|
|
});
|
|
}
|
|
}
|