Sign In Register

How can we help you today?

Start a new topic

Read GS's answer in Android

I cannot get rid of how to actually use the scriptData that returned to the client after a request:


after a 

GSAndroidPlatform.gs()
.getRequestBuilder()
.createLogEventRequest() (...) .send(new GSEventConsumer<GSResponseBuilder.LogEventResponse>() { @Override public void onEvent(GSResponseBuilder.LogEventResponse logEventResponse) { GSData scriptData = logEventResponse.getScriptData();
    }});

I receive the answer to the request in scriptData.


how can I actively use scriptData? How can I interpret scriptData.getBaseData() (that is a HashMap, I suppose)? Is it possible to have an example?


scriptData.toString() is:

{"@class":".LogEventResponse","requestId":"1474638532345_2","scriptData":{"selectedData":[{ "_id" : { "$oid" : "57e2ee6c288c2604a2be47ba"} , "X" : 44.41266917 , "Y" : 8.94145145 , "Din" : 1.474489964162E12 , "Dout" : -1.0 , "Type" : "G" , "Desc" : ""},{ "_id" : { "$oid" : "57e2ee3f288c2604a2be358f"} , "X" : 44.41266917 , "Y" : 8.94145145 , "Din" : 1.4744899196E12 , "Dout" : 1.4745763196E12 , "Type" : "B" , "Desc" : ""},{ "_id" : { "$oid" : "57e2ee3e288c2604a2be3556"} , "X" : 44.41266917 , "Y" : 8.94145145 , "Din" : 1.474489918656E12 , "Dout" : 1.474576318656E12 , "Type" : "G" , "Desc" : ""}]}}



Thank you.

1 Comment

Hi Beppi,


Apologies for the slow reply, you appear to have posted this in our Tips & Tricks forum so it wasn't picked up (I have moved it to the q&a forum). Is there something specific you are trying to receive from the scriptData of your events response here ? 


Thanks,

Liam

Login to post a comment