continued refactoring

This commit is contained in:
lotte
2019-04-26 16:40:49 +02:00
parent 6438c65381
commit af291845ec
30 changed files with 71 additions and 91 deletions

View File

@@ -1,7 +1,9 @@
import { autoserialize, autoserializeAs } from 'cerialize';
import { SortOption } from './sort-option.model';
import { ResourceType } from './resource-type';
import { TypedObject } from '../cache/object-cache.reducer';
export class BrowseDefinition {
export class BrowseDefinition implements TypedObject {
@autoserialize
id: string;
@@ -15,7 +17,7 @@ export class BrowseDefinition {
defaultSortOrder: string;
@autoserialize
type: string;
type: ResourceType;
@autoserializeAs('metadata')
metadataKeys: string[];