本文整理匯總了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();
}