[748a59]: / nih-ct-protocol-ui / src / app / result.ts

Download this file

29 lines (20 with data), 486 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export class Result {
constructor(
public total: number=0,
public max_score: number=0,
public hits: Hit[]=[],
){}
}
export class Hit {
constructor(
public _index: string="",
public _type: string="",
public _score: number=0,
public highlight: Highlight=new Highlight(),
){}
}
export class Highlight {
constructor(
public value: string[]=[],
){}
}