21 lines
366 B
TypeScript
21 lines
366 B
TypeScript
import { SendText } from "../domain/sendText";
|
|
|
|
import { View } from "./view";
|
|
|
|
export class SendTextView implements View {
|
|
text: string = null;
|
|
hidden: boolean;
|
|
|
|
constructor(t?: SendText) {
|
|
if (!t) {
|
|
return;
|
|
}
|
|
|
|
this.hidden = t.hidden;
|
|
}
|
|
|
|
get maskedText(): string {
|
|
return this.text != null ? "••••••••" : null;
|
|
}
|
|
}
|