several simple lines
I was adding a new c/s piece to the code; instead of using huge existing interfaces, wrote a small new one, javascript/ajaxy style:
Totally trivial; and that's all we need, right?
public interface MyStuffProvider { public interface Listener { void onSuccess(MyStuff myStuff); void onError(int errorCode); } void sendRequest(Listener listener /* could also pass some data, but there's nothing to pass */); }
Totally trivial; and that's all we need, right?