本文整理汇总了Java中com.github.obsessive.simplifyreader.bean.MusicsListEntity类的典型用法代码示例。如果您正苦于以下问题:Java MusicsListEntity类的具体用法?Java MusicsListEntity怎么用?Java MusicsListEntity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MusicsListEntity类属于com.github.obsessive.simplifyreader.bean包,在下文中一共展示了MusicsListEntity类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initParameter
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
private void initParameter(Context context) {
mContext = context;
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setOnErrorListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnBufferingUpdateListener(this);
mMusicList = new ArrayList<MusicsListEntity>();
mCurPlayIndex = -1;
mPlayState = MusicPlayState.MPS_LIST_EMPTY;
mPLayMode = MusicPlayMode.MPM_LIST_LOOP_PLAY;
mRandom = new Random();
mRandom.setSeed(System.currentTimeMillis());
}
示例2: refreshMusicList
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
public void refreshMusicList(MusicsListEntity entity) {
if (entity == null) {
return;
}
mMusicList.add(entity);
if (mMusicList.size() == 0) {
mPlayState = MusicPlayState.MPS_LIST_EMPTY;
mCurPlayIndex = -1;
return;
}
mPlayState = MusicPlayState.MPS_LIST_FULL;
}
示例3: onReceive
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (null != action && !TextUtils.isEmpty(action)) {
if (action.equals(Constants.ACTION_MUSIC_BUNDLE_BROADCAST)) {
Bundle extras = intent.getExtras();
if (null != extras) {
MusicsListEntity entity = extras.getParcelable(Constants.KEY_MUSIC_PARCELABLE_DATA);
int totalDuration = extras.getInt(Constants.KEY_MUSIC_TOTAL_DURATION);
mMusicsPresenter.refreshPageInfo(entity, totalDuration);
}
}
}
}
示例4: refreshMusicList
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
public static void refreshMusicList(List<MusicsListEntity> listData) {
if (null != listData && !listData.isEmpty()) {
mPlayer.refreshMusicList(listData.get(0));
}
}
示例5: refreshPageInfo
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
@Override
public void refreshPageInfo(MusicsListEntity entity, int totalDuration) {
mMusicsView.refreshPageInfo(entity, totalDuration);
}
示例6: refreshPageInfo
import com.github.obsessive.simplifyreader.bean.MusicsListEntity; //导入依赖的package包/类
void refreshPageInfo(MusicsListEntity entity, int totalDuration);