package com.geniusgithub.mediaplayer.player.music;

import android.widget.SeekBar;

import com.geniusgithub.mediaplayer.base.BasePresenter;
import com.geniusgithub.mediaplayer.base.BaseView;
import com.geniusgithub.mediaplayer.dlna.control.model.MediaItem;
import com.geniusgithub.mediaplayer.player.base.PlayMode;

import java.util.List;

public class MusicPlayerContact {

    public interface IView extends BaseView<IPresenter> {
        public void updatePlayList(List<MediaItem> list);
        public void showPrepareLoadView(boolean bShow);
        public void showLRCView(boolean bShow);
        public void showPlay(boolean bShow);
        public void showPlayErrorTip();

        public void setSeekbarProgress(int pos);
        public void setSeekbarSecondProgress(int max);
        public void setSeekbarMax(int max);
        public void setTotalTime(int totalTime);
        public void setcurTime(int curTime);
        public void setSpeed(float speed);


        public void refreshLyrc(int pos);
        public void updateLyricView(MediaItem itemInfo);
        public void updateMediaInfoView(MediaItem itemInfo, int pos);
        public void startRotateAnimation(boolean rotate);
        public void updatePlayMode(PlayMode playMode);
    }

    public interface IPresenter extends BasePresenter<IView> {
        public void onMusicPlay();
        public void onMusicPause();
        public void onPlayPre();
        public void onPlayNext();
        public void onToggleMode();
        public void onSeekStopTrackingTouch(SeekBar seekBar);
        public void onPlayItemClick(MediaItem data, int position);
    }
}
