1/* 2 * Copyright (c) 2021 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 */ 15export class MediaData { 16 formId: string = '0'; 17 albumName: string = ''; 18 albumId: string = ''; 19 displayName: string = ''; 20 currentUri: string = ''; 21 currentIndex: number = 0; 22 intervalTime: number = 0; 23 //数据持久化保存布尔型目前存在问题,使用数字类型保存。 24 isShowAlbumName: number = 0; 25 arkUri: number = 0; 26 27 constructor(formId: string, displayName: string, albumName: string, 28 albumId: string, currentUri: string, currentIndex: number, 29 intervalTime: number, isShowAlbumName: number, arkUri: number) { 30 this.formId = formId; 31 this.albumId = albumId; 32 this.displayName = displayName; 33 this.albumName = albumName; 34 this.currentUri = currentUri; 35 this.currentIndex = currentIndex; 36 this.intervalTime = intervalTime; 37 this.isShowAlbumName = isShowAlbumName; 38 this.arkUri = arkUri; 39 } 40} 41