From 9aaa33e050d87c5fa27300f98c764c533b805816 Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Wed, 8 Jun 2016 17:51:38 +0200 Subject: [PATCH] Add HalLinkInterface --- .../components/api/api-v3/hal-link/hal-link.service.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/api/api-v3/hal-link/hal-link.service.ts b/frontend/app/components/api/api-v3/hal-link/hal-link.service.ts index f0e6de857d..3c1297fbf5 100644 --- a/frontend/app/components/api/api-v3/hal-link/hal-link.service.ts +++ b/frontend/app/components/api/api-v3/hal-link/hal-link.service.ts @@ -29,7 +29,14 @@ var $q:ng.IQService; var apiV3:restangular.IService; -export class HalLink { +export interface HalLinkInterface { + href:string; + method:string; + title?:string; + templated?:boolean; +} + +export class HalLink implements HalLinkInterface { public static fromObject(link):HalLink { return new HalLink(link.href, link.title, link.method, link.templated); }