several simple lines
Aug. 4th, 2009 01:55 pmI 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?
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)


