CST-12455_coar-7sync Refactor after branch sync

This commit is contained in:
Mattia Vianelli
2023-11-16 19:36:28 +01:00
parent c8ece659eb
commit 18367bab58

View File

@@ -11,50 +11,50 @@ import {NotifyServicePattern} from './ldn-service-patterns.model';
@typedObject
@inheritSerialization(CacheableObject)
export class LdnService extends CacheableObject {
static type = LDN_SERVICE;
static type = LDN_SERVICE;
@excludeFromEquals
@autoserialize
type: ResourceType;
@excludeFromEquals
@autoserialize
type: ResourceType;
@autoserialize
id: number;
@autoserialize
id: number;
@deserializeAs('id')
uuid: string;
@deserializeAs('id')
uuid: string;
@autoserialize
name: string;
@autoserialize
name: string;
@autoserialize
description: string;
@autoserialize
description: string;
@autoserialize
url: string;
@autoserialize
url: string;
@autoserialize
@autoserialize
score: number;
@autoserialize
enabled: boolean;
enabled: boolean;
@autoserialize
ldnUrl: string;
@autoserialize
ldnUrl: string;
@autoserialize
notifyServiceInboundPatterns?: NotifyServicePattern[];
@autoserialize
notifyServiceInboundPatterns?: NotifyServicePattern[];
@autoserialize
notifyServiceOutboundPatterns?: NotifyServicePattern[];
@autoserialize
notifyServiceOutboundPatterns?: NotifyServicePattern[];
@deserialize
_links: {
self: {
href: string;
@deserialize
_links: {
self: {
href: string;
};
};
};
get self(): string {
return this._links.self.href;
}
get self(): string {
return this._links.self.href;
}
}