Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Help in translating JAVA code into CF

$
0
0

Hi all!  I'm at the end of integrating an in-house calendar with Google calendars and all is working, however, I am stumped as to how implement callback functions.  Here's what I'm trying to do as outlined on http://code.google.com/p/google-api-java-client/source/browse/Batch.wiki?repo=wiki

 

What I need to do is this section right here:

 

JsonBatchCallback<Calendar> callback =newJsonBatchCallback<Calendar>(){
 
  publicvoid onSuccess(Calendar calendar,HttpHeaders responseHeaders){
    printCalendar(calendar);
    addedCalendarsUsingBatch.add(calendar);
  }

  publicvoid onFailure(GoogleJsonError e,HttpHeaders responseHeaders){
    System.out.println("Error Message: "+ e.getMessage());
  }
};

 

And then later pass it to:

 

client.calendars().insert(entry1).queue(batch, callback);


I believe I can pass one function by passing just the name of the function, but BatchCallback has two functions.  Is this impossible to do in CF?


Thanks,

Ross.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>