当前位置: 首页>>代码示例>>Java>>正文


Java TvShow类代码示例

本文整理汇总了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();
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:18,代码来源:TvShowViewModel.java

示例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();
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:21,代码来源:TvShowCatalogPresenter.java

示例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();
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:17,代码来源:TvShowPresenter.java

示例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);
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:TvShowDraggableFragment.java

示例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);
      }
    });
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:TvShowDraggableFragment.java

示例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);
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:12,代码来源:TvShowViewModel.java

示例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());
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:TvShowCatalogPresenter.java

示例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();
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:TvShowPresenter.java

示例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());
        }
    }
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:Navigator.java

示例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);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:GetTvShowByIdInteractor.java

示例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);
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:GetTvShowByIdInteractor.java

示例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);
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:GetTvShowsInteractor.java

示例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);
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:GetTvShowsInteractor.java

示例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());
  }
}
 
开发者ID:GaneshRepo,项目名称:EffectiveUI,代码行数:9,代码来源:MainActivity.java

示例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();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:TvShowCatalogFragment.java


注:本文中的com.github.pedrovgs.effectiveandroidui.domain.tvshow.TvShow类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。