AudioThemManager.java
1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.wd.common.manager;
import com.wd.capability.router.WdRouterRule;
import com.wd.capability.router.data.ActionBean;
import com.wd.common.constant.RouterConstants;
import com.wd.foundation.bean.custom.SimpleAudioThemeBeans;
import com.wd.foundation.wdkitcore.tools.AppContext;
/**
* @Created by God
* @Date
*/
public class AudioThemManager {
private static AudioThemManager instance;
/**
* 数据缓存
* */
private SimpleAudioThemeBeans simpleAudioThemeBeans;
public SimpleAudioThemeBeans getSimpleAudioThemeBeans() {
return simpleAudioThemeBeans;
}
public void setSimpleAudioThemeBeans(SimpleAudioThemeBeans simpleAudioThemeBeans) {
this.simpleAudioThemeBeans = simpleAudioThemeBeans;
}
//单例操作
public static AudioThemManager getInstance() {
if (instance == null) {
synchronized (AudioThemManager.class) {
instance = new AudioThemManager();
}
}
return instance;
}
/**
* 跳转到音频专题页
* @param audioThemeBean 原始数据
* */
public void JumpToAudioTopic(SimpleAudioThemeBeans audioThemeBean) {
//数据已经请求过,直接跳转
ActionBean actionBean = new ActionBean();
actionBean.paramBean.pageID = RouterConstants.PATH_MUSIC_AUDIO_THEME;
AudioThemManager.getInstance().setSimpleAudioThemeBeans(audioThemeBean);
WdRouterRule.getInstance().processAction(AppContext.getContext(), actionBean);
//添加历史记录 本地保存不控制
// HistoryDataHelper.getInstance().addHistory(audioThemeBean.simpleAudioThemeBeanList.get(audioThemeBean.index).contentBean);
}
}