com.citrix.sharefile.api.SFApiResultCallbackEx Maven / Gradle / Ivy
package com.citrix.sharefile.api;
import com.citrix.sharefile.api.exceptions.SFSDKException;
import com.citrix.sharefile.api.interfaces.ISFApiResultCallback;
import com.citrix.sharefile.api.interfaces.ISFQuery;
import com.citrix.sharefile.api.models.SFODataObject;
import com.citrix.sharefile.api.utils.Utils;
/**
* Helper class for the app to implement internal listeners
* @param
* @param
*/
public abstract class SFApiResultCallbackEx implements ISFApiResultCallback
{
private ISFApiResultCallback mListener;
public SFApiResultCallbackEx(ISFApiResultCallback listener)
{
mListener = listener;
}
public SFApiResultCallbackEx()
{
}
public void setListener(ISFApiResultCallback listener)
{
mListener = listener;
}
@Override
public void onError(SFSDKException error, ISFQuery sfapiApiqueri)
{
Utils.safeCallErrorListener(mListener, error, sfapiApiqueri);
}
@Override
public void onSuccess(T object)
{
Utils.safeCallSuccess(mListener, object);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy