• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  albumUri: string = '';
19  displayName: string = '';
20  currentUri: string = '';
21  currentIndex: number = 0;
22  intervalTime: number = 0;
23  //数据持久化保存布尔型目前存在问题,使用数字类型保存。
24  //isShowAlbum: true or 1 is displaying Album; false or 0 is displaying a Picture
25  isShowAlbum: number = 0;
26  arkUri: number = 0;
27  orientation: number = 0;
28
29  constructor(formId: string, displayName: string, albumName: string,
30              albumUri: string, currentUri: string, currentIndex: number,
31              intervalTime: number, isShowAlbum: number, arkUri: number) {
32    this.formId = formId;
33    this.albumUri = albumUri;
34    this.displayName = displayName;
35    this.albumName = albumName;
36    this.currentUri = currentUri;
37    this.currentIndex = currentIndex;
38    this.intervalTime = intervalTime;
39    this.isShowAlbum = isShowAlbum;
40    this.arkUri = arkUri;
41  }
42}
43