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.
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
import { SignalService } from '../../../protobuf';
|
|
import { TTL_DEFAULT } from '../../constants';
|
|
import { Message } from './Message';
|
|
|
|
export abstract class ContentMessage extends Message {
|
|
public plainTextBuffer(): Uint8Array {
|
|
return SignalService.Content.encode(this.contentProto()).finish();
|
|
}
|
|
|
|
public ttl(): number {
|
|
return TTL_DEFAULT.CONTENT_MESSAGE;
|
|
}
|
|
|
|
public abstract contentProto(): SignalService.Content;
|
|
}
|