Page 3 of 3

Re: User variables for user only

Posted: 22 Jun 2016, 08:40
by Lapo
If you want to send User Variables as SFSArray why don't you simply wrap them into an SFSObject?

Code: Select all

SFSObject data = new SFSObject()
data.putSFSArray("varName1", varArray1);
data.putSFSArray("varName2", varArray2);
...
...
send("someCommand", data, someUser);
cheers

Re: User variables for user only

Posted: 22 Jun 2016, 12:56
by tdanylchuk
Since I use this extension call not only for push messages, but for request-response model, I'm using custom wrapper, which also includes Response status in it(for example if error occurred, I'm putting custom error message, status code, etc..)

BR, Taras.

Re: User variables for user only

Posted: 22 Jun 2016, 14:29
by Lapo
Why not simply adding those status code in the SFSObject as well?