mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
import { autoserialize, deserialize } from 'cerialize';
|
|
|
|
|
|
import { CacheableObject } from '../../cache/cacheable-object.model';
|
|
import { SUGGESTION_TARGET } from './suggestion-target-object.resource-type';
|
|
import { excludeFromEquals } from '../../utilities/equals.decorators';
|
|
import { ResourceType } from '../../shared/resource-type';
|
|
import { HALLink } from '../../shared/hal-link.model';
|
|
import { typedObject } from '../../cache/builders/build-decorators';
|
|
|
|
/**
|
|
* The interface representing the Suggestion Target model
|
|
*/
|
|
@typedObject
|
|
export class SuggestionTarget implements CacheableObject {
|
|
/**
|
|
* A string representing the kind of object, e.g. community, item, …
|
|
*/
|
|
static type = SUGGESTION_TARGET;
|
|
|
|
/**
|
|
* The Suggestion Target id
|
|
*/
|
|
@autoserialize
|
|
id: string;
|
|
|
|
/**
|
|
* The Suggestion Target name to display
|
|
*/
|
|
@autoserialize
|
|
display: string;
|
|
|
|
/**
|
|
* The Suggestion Target source to display
|
|
*/
|
|
@autoserialize
|
|
source: string;
|
|
|
|
/**
|
|
* The total number of suggestions provided by Suggestion Target for
|
|
*/
|
|
@autoserialize
|
|
total: number;
|
|
|
|
/**
|
|
* The type of this ConfigObject
|
|
*/
|
|
@excludeFromEquals
|
|
@autoserialize
|
|
type: ResourceType;
|
|
|
|
/**
|
|
* The links to all related resources returned by the rest api.
|
|
*/
|
|
@deserialize
|
|
_links: {
|
|
self: HALLink,
|
|
suggestions: HALLink,
|
|
target: HALLink
|
|
};
|
|
}
|