Page 1 of 1

Documentation correction?

Posted: 13 Aug 2012, 18:03
by Carl Lydon
Hi,

In this docs page:

http://docs2x.smartfoxserver.com/api-do ... 8c049a.htm

if indicated that you get the data from the response like this:

Code: Select all

ISFSObject responseParams = (SFSObject)evt.Params["data"];
but that doesn't work for me in C# / Unity/ Smartfox 2X.
This does work:

Code: Select all

ISFSObject responseParams = (SFSObject)evt.Params["params"];
Is that a mistake in the docs that should be fixed, or am I reading it wrong?

Re: Documentation correction?

Posted: 14 Aug 2012, 21:23
by rjgtav
Hi Carl,

Yes, It's a mistake on the documentation, as in the AS3 Client API you also retrieve the response params by doing:

Code: Select all

var responseParams:ISFSObject = SFSObject(evt.params.params);
Will inform the team about this,
Thank you for reporting ;)

Re: Documentation correction?

Posted: 27 Sep 2012, 11:40
by ThomasLund
Fixed in next update of the docs - thx for reporting

/T

Re: Documentation correction?

Posted: 27 Sep 2012, 14:40
by Carl Lydon
:-)

Re: Documentation correction?

Posted: 02 Jun 2014, 20:54
by Evil-Dog
Here's another error in the doc at http://docs2x.smartfoxserver.com/api-do ... Index.html

sfs.Send( new QuickJoinGameRequest(exp, new List<string>({"games"}), sfs.LastJoinedRoom) );
should be
sfs.Send( new QuickJoinGameRequest(exp, new List<string>(){"games"}, sfs.LastJoinedRoom) );

cheers

Re: Documentation correction?

Posted: 04 Jun 2014, 07:41
by Bax
Thank you for reporting.