Having problem in getting POJO classes data on my javascript client .
In my clientOutGoingData i have converted MY POJO int SFSObject like this
Code: Select all
loginData.clientOutGoingData.putSFSObject("userProperties", SFSObject.newFromObject(new UserProperties()));
I have check for Dump i got the value as array
Code: Select all
"
(sfs_array) $F:
(sfs_object) 0:
(utf_string) V: user property Gameid
(utf_string) N: userGameId
(sfs_object) 1:
(int) V: 10000
(utf_string) N: tableId
(sfs_object) 2:
(utf_string) V: hello POJO
(utf_string) N: name
(utf_string) $C: com.sfs.UserProperties
"
And trying to fetch it in JavaScript but not able to fetch it like this
Code: Select all
event.data.getSFSObject('userProperties').getUtfString('userGameId');
userGameId as some private varaible. but value is null
Thanks in advance