本文整理汇总了Java中com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow类的典型用法代码示例。如果您正苦于以下问题:Java TvShow类的具体用法?Java TvShow怎么用?Java TvShow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TvShow类属于com.github.pedrovgs.effectiveandroidui.domain.tvshow包,在下文中一共展示了TvShow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadTvShow
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
public void loadTvShow(final String tvShowId) {
listener.onLoadVisibilityChanged(true);
listener.onEmptyCaseVisibilityChanged(false);
getTvShowById.execute(tvShowId, new GetTvShowById.Callback() {
@Override public void onTvShowLoaded(TvShow tvShow) {
notifyTvShowLoaded(tvShow);
}
@Override public void onTvShowNotFound() {
notifyTvShowNotFound();
}
@Override public void onConnectionError() {
notifyConnectionError();
}
});
}
示例2: loadTvShows
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
/**
* Use GetTvShows interactor to obtain a collection of videos and render it using the view
* object setted previously. If the interactor returns an error the presenter will show an error
* message and the empty case. In both cases, the progress bar visibility will be hidden.
*/
private void loadTvShows() {
if (view.isReady()) {
view.showLoading();
}
getTvShowsInteractor.execute(new GetTvShows.Callback() {
@Override public void onTvShowsLoaded(final Collection<TvShow> tvShows) {
currentTvShowCollection = new TvShowCollection(tvShows);
showTvShows(tvShows);
}
@Override public void onConnectionError() {
notifyConnectionError();
}
});
}
示例3: loadTvShow
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
public void loadTvShow(final String tvShowId) {
view.showLoading();
getTvShowById.execute(tvShowId, new GetTvShowById.Callback() {
@Override public void onTvShowLoaded(TvShow tvShow) {
showTvShow(tvShow);
}
@Override public void onTvShowNotFound() {
showTvShowNotFound();
}
@Override public void onConnectionError() {
showConnectionError();
}
});
}
示例4: onViewStateRestored
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
@Override public void onViewStateRestored(Bundle savedInstanceState) {
super.onViewStateRestored(savedInstanceState);
if (savedInstanceState != null) {
final TvShow tvShow = (TvShow) savedInstanceState.getSerializable(EXTRA_TV_SHOW);
updatePresenterWithSavedTvShow(tvShow);
}
}
示例5: updatePresenterWithSavedTvShow
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void updatePresenterWithSavedTvShow(final TvShow tvShow) {
if (tvShow != null) {
draggable_view.post(new Runnable() {
@Override public void run() {
tvShowPresenter.loadTvShow(tvShow);
}
});
}
}
示例6: notifyTvShowLoaded
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void notifyTvShowLoaded(TvShow tvShow) {
showTvShowOnBrowserActionCommand.setTvShowUrl(tvShow.getPoster());
if (isReady) {
listener.onFanArtLoaded(tvShow.getFanArt());
listener.onTvShowTitleLoaded(tvShow.getTitle());
listener.onChaptersLoaded(getChaptersViewModel(tvShow.getChapters()));
listener.onVisibilityChanged(true);
listener.onLoadVisibilityChanged(false);
listener.onEmptyCaseVisibilityChanged(false);
}
}
示例7: showTvShows
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void showTvShows(Collection<TvShow> tvShows) {
if (view.isReady()) {
view.renderVideos(tvShows);
view.hideLoading();
view.updateTitleWithCountOfTvShows(tvShows.size());
}
}
示例8: showTvShow
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void showTvShow(TvShow tvShow) {
if (view.isReady()) {
currentTvShow = tvShow;
view.showFanArt(tvShow.getFanArt());
view.showTvShowTitle(tvShow.getTitle().toUpperCase());
view.showChapters(tvShow.getChapters());
view.hideLoading();
view.showTvShow();
}
}
示例9: openTvShowDetails
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
public void openTvShowDetails(TvShow tvShow) {
if (canInteractWithFragments()) {
showTvShowOnTvShowDraggableFragment(tvShow);
showTvShowOnTvShowFragment(tvShow);
} else {
openTvShowActivity(tvShow.getTitle());
}
}
示例10: searchTvShow
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void searchTvShow() {
TvShow tvShow = null;
try {
tvShow = this.catalog.getTvShowById(tvShowId);
} catch (TvShowNotFoundException e) {
notifyTvShowNotFound();
}
notifyTvShowFound(tvShow);
}
示例11: notifyTvShowFound
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void notifyTvShowFound(final TvShow tvShow) {
mainThread.post(new Runnable() {
@Override public void run() {
callback.onTvShowLoaded(tvShow);
}
});
}
示例12: run
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
@Override public void run() {
waitToDoThisSampleMoreInteresting();
if (haveToShowError()) {
notifyError();
} else {
Collection<TvShow> tvShows = catalog.getTvShows();
nofityTvShowsLoaded(tvShows);
}
}
示例13: nofityTvShowsLoaded
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
private void nofityTvShowsLoaded(final Collection<TvShow> tvShows) {
mainThread.post(new Runnable() {
@Override public void run() {
callback.onTvShowsLoaded(tvShows);
}
});
}
示例14: onTvShowClicked
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
@Override public void onTvShowClicked(final TvShow tvShow) {
if (canInteractWithFragments()) {
showTvShowOnTvShowDraggableFragment(tvShow);
showTvShowOnTvShowFragment(tvShow);
} else {
openTvShowActivity(tvShow.getTitle());
}
}
示例15: renderVideos
import com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow; //导入依赖的package包/类
@Override public void renderVideos(final Collection<TvShow> tvShows) {
this.tvShows.clear();
this.tvShows.addAll(tvShows);
refreshAdapter();
}