use of com.zype.android.webapi.model.entitlements.VideoEntitlement in project zype-android by zype.
the class VideosActivity method handleError.
@Subscribe
public void handleError(ErrorEvent event) {
Logger.e("handleError()");
if (event.getEventData() == WebApiManager.Request.CHECK_VIDEO_ENTITLEMENT) {
RetrofitError error = event.getError();
if (error != null) {
VideoEntitlement response = (VideoEntitlement) event.getError().getBodyAs(VideoEntitlement.class);
DialogHelper.showEntitlementAlert(this, response.message);
}
}
}
Aggregations