import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { ITopic } from "../../../entities/topic" ; export class GetTopicsCallBack { constructor ( public version , public topTopic ) { } } export class Topics implements IApiRequest < GetTopicsCallBack > { public static getURL : string = Requests . TOPICS ; public static readonly topicVersionHeader = "X-Topic-Version" ; public static readonly studyQueryParam = "studyNr" ; public URL : string = Topics . getURL ; public headers : { [ key ] : string ; } = { } ; public params : { [ key ] : string ; } = { } ; constructor ( topicVersion , study ) { this . headers [ Topics . topicVersionHeader ] = topicVersion . toString ( 10 ) ; this . params [ Topics . studyQueryParam ] = study . toString ( 10 ) ; } see IApiRequest . response response ? : GetTopicsCallBack ; }