do to formatters
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import { AvatarDisplay } from "../display-objects/AvatarDisplay";
|
||||
import { AvatarViewData } from "@/lib/view-data/AvatarViewData";
|
||||
import { ViewModel } from "../contracts/view-models/ViewModel";
|
||||
import { AvatarFormatter } from "../formatters/AvatarFormatter";
|
||||
|
||||
/**
|
||||
* Avatar View Model
|
||||
@@ -23,11 +23,11 @@ export class AvatarViewModel extends ViewModel {
|
||||
|
||||
/** UI-specific: Derive content type label using Display Object */
|
||||
get contentTypeLabel(): string {
|
||||
return AvatarDisplay.formatContentType(this.data.contentType);
|
||||
return AvatarFormatter.formatContentType(this.data.contentType);
|
||||
}
|
||||
|
||||
/** UI-specific: Derive validity check using Display Object */
|
||||
get hasValidData(): boolean {
|
||||
return AvatarDisplay.hasValidData(this.data.buffer, this.data.contentType);
|
||||
return AvatarFormatter.hasValidData(this.data.buffer, this.data.contentType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user