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.
|
|
|
import { SignalService } from '../../../../protobuf';
|
|
|
|
import { ContentMessage } from '../ContentMessage';
|
|
|
|
import { MessageParams } from '../Message';
|
|
|
|
|
|
|
|
// tslint:disable-next-line: no-empty-interface
|
|
|
|
export interface MessageRequestResponseParams extends MessageParams {}
|
|
|
|
|
|
|
|
export class MessageRequestResponse extends ContentMessage {
|
|
|
|
// we actually send a response only if it is an accept
|
|
|
|
// private readonly isApproved: boolean;
|
|
|
|
|
|
|
|
constructor(params: MessageRequestResponseParams) {
|
|
|
|
super({
|
|
|
|
timestamp: params.timestamp,
|
|
|
|
} as MessageRequestResponseParams);
|
|
|
|
}
|
|
|
|
|
|
|
|
public contentProto(): SignalService.Content {
|
|
|
|
return new SignalService.Content({
|
|
|
|
messageRequestResponse: this.messageRequestResponseProto(),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public messageRequestResponseProto(): SignalService.MessageRequestResponse {
|
|
|
|
return new SignalService.MessageRequestResponse({
|
|
|
|
isApproved: true,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|