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 SmartPickerRecommendInfo { 19 private recommendType: number = SmartPickerConstants.INVALID; 20 private labelId: string = ''; 21 private recommendContent: string = ''; 22 private albumUri: string = ''; 23 private totalCount: number = SmartPickerConstants.INVALID; 24 25 constructor() { 26 } 27 28 public getRecommendType(): number { 29 return this.recommendType; 30 } 31 32 public setRecommendType(recommendType: number): void { 33 this.recommendType = recommendType; 34 } 35 36 public getLabelId(): string { 37 return this.labelId; 38 } 39 40 public setLabelId(labelId: string): void { 41 this.labelId = labelId; 42 } 43 44 public getRecommendContent(): string { 45 return this.recommendContent; 46 } 47 48 public setRecommendContent(recommendContent: string): void { 49 this.recommendContent = recommendContent; 50 } 51 52 public getAlbumUri(): string { 53 return this.albumUri; 54 } 55 56 public setAlbumUri(albumUri: string): void { 57 this.albumUri = albumUri; 58 } 59 60 public getTotalCount(): number { 61 return this.totalCount; 62 } 63 64 public setTotalCount(totalCount: number): void { 65 this.totalCount = totalCount; 66 } 67}