relation lookup progress/equatable

This commit is contained in:
lotte
2019-07-16 16:37:48 +02:00
parent 65a66a104c
commit 2bfe6ceebb
9 changed files with 93 additions and 101 deletions

View File

@@ -1,8 +1,8 @@
import { autoserialize, autoserializeAs } from 'cerialize';
import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
export class BrowseEntry implements ListableObject {
import { Equatable } from '../utilities/equatable';
import { hasValue } from '../../shared/empty.util';
export class BrowseEntry implements Equatable<BrowseEntry> {
@autoserialize
type: string;
@@ -15,7 +15,15 @@ export class BrowseEntry implements ListableObject {
@autoserializeAs('valueLang')
language: string;
@excludeFromEquals
@autoserialize
count: number;
equals(other: BrowseEntry): boolean {
if (hasValue(other)) {
return false;
}
return false;
}
}