com.github.kubatatami.judonetworking.observers.ObservableWrapperCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of judonetworking-observers Show documentation
Show all versions of judonetworking-observers Show documentation
Easy way of communicating to your servers.
package com.github.kubatatami.judonetworking.observers;
import com.github.kubatatami.judonetworking.Callback;
public class ObservableWrapperCallback extends Callback {
protected final ObservableWrapper wrapper;
public ObservableWrapperCallback(ObservableWrapper wrapper) {
this.wrapper = wrapper;
}
@Override
public void onSuccess(T result) {
wrapper.set(result);
}
}