1/*
2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import SmartPickerConstants from './SmartPickerConstants';
17
18export default class SmartPickerRecommendTabInfo {
19  private recommendType: number = SmartPickerConstants.INVALID;
20  private labelId: string = '';
21  private recommendContent: string = '';
22  private albumUri: string = '';
23  private cameraAble: boolean = false;
24  private totalCount: number = SmartPickerConstants.INVALID;
25
26  private isUserClick: boolean = false;
27  private userRealPickCount: number = 0;
28  private userPickUriList: Array<string> = [];
29
30
31  constructor() {
32  }
33
34  public getRecommendType(): number {
35    return this.recommendType;
36  }
37
38  public setRecommendType(recommendType: number): void {
39    this.recommendType = recommendType;
40  }
41
42  public getLabelId(): string {
43    return this.labelId;
44  }
45
46  public setLabelId(labelId: string): void {
47    this.labelId = labelId;
48  }
49
50  public getRecommendContent(): string {
51    return this.recommendContent;
52  }
53
54  public setRecommendContent(recommendContent: string): void {
55    this.recommendContent = recommendContent;
56  }
57
58  public getAlbumUri(): string {
59    return this.albumUri;
60  }
61
62  public setAlbumUri(albumUri: string): void {
63    this.albumUri = albumUri;
64  }
65
66  public isCameraAble(): boolean {
67    return this.cameraAble;
68  }
69
70  public setCameraAble(cameraAble: boolean): void {
71    this.cameraAble = cameraAble;
72  }
73
74  public getTotalCount(): number {
75    return this.totalCount;
76  }
77
78  public setTotalCount(totalCount: number): void {
79    this.totalCount = totalCount;
80  }
81
82  public setRealPickCount(userRealPickCount: number): void {
83    this.userRealPickCount = userRealPickCount;
84  }
85
86  public getRealPickCount(): number {
87    return this.userRealPickCount;
88  }
89
90  public setUserClickTab(isUserClick: boolean): void {
91    this.isUserClick = isUserClick;
92  }
93
94  public isUserClickTab(): boolean {
95    return this.isUserClick;
96  }
97
98  public getUserPickUriList(): Array<string> {
99    return this.userPickUriList;
100  }
101}