Files
dspace-angular/src/app/core/shared/browse-entry.model.ts
2019-10-15 15:58:40 +02:00

37 lines
943 B
TypeScript

import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
import { TypedObject } from '../cache/object-cache.reducer';
import { ResourceType } from './resource-type';
import { GenericConstructor } from './generic-constructor';
/**
* Class object representing a browse entry
* This class is not normalized because browse entries do not have self links
*/
export class BrowseEntry implements ListableObject {
static type = new ResourceType('browseEntry');
/**
* The authority string of this browse entry
*/
authority: string;
/**
* The value of this browse entry
*/
value: string;
/**
* The language of the value of this browse entry
*/
language: string;
/**
* The count of this browse entry
*/
count: number;
getRenderTypes(): Array<string | GenericConstructor<ListableObject>> {
return [this.constructor as GenericConstructor<ListableObject>];
}
}