From 1ba7d1e29d62f6c99b6464b9ab7a97424e682332 Mon Sep 17 00:00:00 2001 From: Kristof De Langhe Date: Mon, 26 Nov 2018 11:03:49 +0100 Subject: [PATCH] 57557: Added leftPlace and rightPlace to Relationship + JSDocs --- .../models/entities/normalized-relationship.model.ts | 12 ++++++++++++ src/app/core/shared/entities/relationship.model.ts | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/app/core/cache/models/entities/normalized-relationship.model.ts b/src/app/core/cache/models/entities/normalized-relationship.model.ts index 0f5bb6cf90..598687bbde 100644 --- a/src/app/core/cache/models/entities/normalized-relationship.model.ts +++ b/src/app/core/cache/models/entities/normalized-relationship.model.ts @@ -30,6 +30,18 @@ export class NormalizedRelationship extends NormalizedObject { @autoserialize rightId: string; + /** + * The place of the Entity to the left side of this Relationship + */ + @autoserialize + leftPlace: number; + + /** + * The place of the Entity to the right side of this Relationship + */ + @autoserialize + rightPlace: number; + /** * The type of Relationship */ diff --git a/src/app/core/shared/entities/relationship.model.ts b/src/app/core/shared/entities/relationship.model.ts index 62c204925e..2106a83f5d 100644 --- a/src/app/core/shared/entities/relationship.model.ts +++ b/src/app/core/shared/entities/relationship.model.ts @@ -35,6 +35,16 @@ export class Relationship implements CacheableObject { */ rightId: string; + /** + * The place of the Entity to the left side of this Relationship + */ + leftPlace: number; + + /** + * The place of the Entity to the right side of this Relationship + */ + rightPlace: number; + /** * The type of Relationship */