import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { IStudy } from "../../../entities/study" ; export class GetStudiesCallback { constructor ( public version , public studies ) { } } export class GetAllStudiesCallback { constructor ( public studies ) { } } export class Studies implements IApiRequest < GetStudiesCallback > { public static getURL : string = Requests . GETSTUDIES ; public static readonly studiesVersionHeader = "X-Studies-Version" ; public URL : string = Studies . getURL ; public headers : { [ key ] : string ; } = { } ; constructor ( studyVersion ) { this . headers [ Studies . studiesVersionHeader ] = studyVersion . toString ( 10 ) ; } see IApiRequest . response response ? : GetStudiesCallback ; } export class AllStudies implements IApiRequest < GetAllStudiesCallback > { public static getURL : string = Requests . GETALLSTUDIES ; public URL : string = AllStudies . getURL ; see IApiRequest . response response ? : GetStudiesCallback ; }