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.
22 lines
541 B
TypeScript
22 lines
541 B
TypeScript
import { ContentMessage } from '../ContentMessage';
|
|
import { SignalService } from '../../../../../protobuf';
|
|
|
|
export abstract class SyncMessage extends ContentMessage {
|
|
public static canSync(message: ContentMessage): boolean {
|
|
// TODO: implement
|
|
return true;
|
|
}
|
|
|
|
public ttl(): number {
|
|
return this.getDefaultTTL();
|
|
}
|
|
|
|
protected contentProto(): SignalService.Content {
|
|
return new SignalService.Content({
|
|
syncMessage: this.syncProto(),
|
|
});
|
|
}
|
|
|
|
protected abstract syncProto(): SignalService.SyncMessage;
|
|
}
|