interop

robert-stuttaford 2022-03-22T07:16:47.087169Z

any idea how i'd write this in Clojure? https://github.com/amplitude/Amplitude-Java/blob/main/src/demo/java/com/demo/amplitude/LocalUploadDemo.java#L34-L41

AmplitudeCallbacks callback =
        new AmplitudeCallbacks() {
          @Override
          public void onLogEventServerResponse(Event event, int status, String message) {
            // call back functions here
            System.out.println(event.eventType + " " + event.userId + " " + status + " " + message);
          }
        };

✅ 1
robert-stuttaford 2022-03-22T07:20:18.410439Z

seems i need to use proxy

robert-stuttaford 2022-03-22T07:25:08.046389Z

yep:

(proxy [AmplitudeCallbacks] []
  (onLogEventServerResponse [event status message]
    (prn :onLogEventServerResponse [event status message])))