/**
* List item data entity.
*/
export default class PlayList {
/**
* Text of list item.
*/
title: string;
/**
* Image of list item.
*/
img: Resource;
/**
* Other resource of list item.
*/
others?: string;
subTitle: string
list: AudioItem[] = []
```
import media from '@ohos.multimedia.media';
import { BusinessError } from '@ohos.base';
import AudioItem from '../model/AudioItem';
import Logger from '../utils/Logger';
import emitter from '@ohos.events.emitter';
import ServerConstants from '../manager/ServerConstants';
import backgroundTaskManager from '@ohos.resourceschedule.backgroundTaskManager';
import wantAgent, { WantAgent } from '@ohos.app.ability.wantAgent';
import common from '@ohos.app.ability.common';