mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
37 lines
943 B
TypeScript
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>];
|
|
}
|
|
}
|