com.contentstack.sdk.FetchAssetsCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java Show documentation
Show all versions of java Show documentation
Java SDK for Contentstack Content Delivery API
package com.contentstack.sdk;
import java.util.List;
public abstract class FetchAssetsCallback implements ResultCallBack {
public abstract void onCompletion(ResponseType responseType, List assets, Error error);
public void onRequestFinish(ResponseType responseType, List assets) {
onCompletion(responseType, assets, null);
}
@Override
public void onRequestFail(ResponseType responseType, Error error) {
onCompletion(responseType, null, error);
}
}