You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test-music/app/src/main/java/com/example/musicplayer/event/AlbumCollectionEvent.java

26 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.example.musicplayer.event;
// 该类的文档注释,提供了类的作者、创建时间和类的基本描述信息
/**
* <pre>
* author : 残渊
* time : 2019/07/19
* desc : 收藏专辑事件
*
* 该类表示一个与收藏专辑相关的事件。
* 它可以用于在音乐播放器应用中,当用户执行收藏专辑操作时,触发相关的业务逻辑。
* 例如,通知界面更新收藏状态,或者与后端服务器进行数据同步,告知服务器用户已收藏了某张专辑。
* 该类目前是一个空类,可能会在后续开发中添加相关属性和方法,
* 以携带收藏事件的具体信息如收藏的专辑ID、收藏的时间等。
* </pre>
*/
// 定义一个名为 AlbumCollectionEvent 的公共类
public class AlbumCollectionEvent {
// 目前该类为空,没有任何成员变量和方法,可在后续开发中添加。
// 例如,可能会添加以下成员变量:
// private int albumId; 用于存储收藏的专辑的唯一标识符
// private Date collectionTime; 用于存储用户收藏该专辑的时间
// 可能会添加以下方法:
// public void notifyUI() { } 用于通知用户界面更新收藏状态
// public void syncWithServer() { } 用于将收藏信息同步到服务器
}