summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/api/models/annotation.js
blob: 92f41ba9dc9d6a1b5a5f8b37f98c66fb3f4c9ec8 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as base from "./base";
/**
 * The `Annotation` model describes a category of information about an app,
 * such as supported languages, app size, content ratings, in-app-purchase
 * info, etc.
 *
 * `Annotations` always have a title and summary, and most also have an `items`
 * array of `AnnotationItem`s with more fine-grained details.
 *
 * @public
 */
export class Annotation extends base.Model {
    constructor(title, items, summary, linkAction) {
        super();
        this.title = title;
        this.summary = summary;
        this.items = items;
        this.items_V3 = [];
        this.shouldAlwaysPresentExpanded = false;
        this.linkAction = linkAction;
    }
}
/**
 * A single item used to show more details in an `Annotation`. This could be an
 * In-App Purchase, supported language list, a link to an editorial item, etc.
 * @public
 */
export class AnnotationItem extends base.Model {
    constructor(text, options = {}) {
        super();
        this.text = text;
        this.heading = options.heading;
        this.headingArtworks = options.headingArtworks;
        this.listText = options.listText;
        this.textPairs = options.textPairs;
    }
}
/**
 * Used on tvOS to visually group related `Annotation` objects into a column.
 * @public
 */
export class AnnotationGroup extends base.Model {
    constructor(title, annotations, forceExpanded) {
        super();
        this.title = title;
        this.annotations = annotations;
        this.forceExpanded = forceExpanded;
    }
}
//# sourceMappingURL=annotation.js.map