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.
15 lines
443 B
TypeScript
15 lines
443 B
TypeScript
import { OutgoingContentMessage } from './OutgoingContentMessage';
|
|
import { SignalService } from '../../../protobuf';
|
|
|
|
export class OutgoingDataMessage extends OutgoingContentMessage {
|
|
public contentProto(): SignalService.Content {
|
|
return new SignalService.Content({
|
|
dataMessage: this.dataProto(),
|
|
});
|
|
}
|
|
|
|
protected dataProto(): SignalService.DataMessage {
|
|
throw new Error('dataProto() needs to be implemented.');
|
|
}
|
|
}
|