Search in sources :

Example 1 with VideoEntitlement

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);
        }
    }
}
Also used : VideoEntitlement(com.zype.android.webapi.model.entitlements.VideoEntitlement) RetrofitError(retrofit.RetrofitError) Subscribe(com.squareup.otto.Subscribe)

Aggregations

Subscribe (com.squareup.otto.Subscribe)1 VideoEntitlement (com.zype.android.webapi.model.entitlements.VideoEntitlement)1 RetrofitError (retrofit.RetrofitError)1