import { ContentMessage } from '.';
import { SignalService } from '../../../protobuf';

export abstract class DataMessage extends ContentMessage {
  public abstract dataProto(): SignalService.DataMessage;

  public contentProto(): SignalService.Content {
    return new SignalService.Content({
      dataMessage: this.dataProto(),
    });
  }
}
