當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。