fixed and tests for equals method

This commit is contained in:
lotte
2019-07-17 16:28:17 +02:00
parent 2bfe6ceebb
commit d16ee88641
23 changed files with 128 additions and 58 deletions

View File

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