Documentation correction?

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC

Documentation correction?

Post 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?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Documentation correction?

Post 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 ;)
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Re: Documentation correction?

Post by ThomasLund »

Fixed in next update of the docs - thx for reporting

/T
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC

Re: Documentation correction?

Post by Carl Lydon »

:-)
User avatar
Evil-Dog
Posts: 86
Joined: 08 Mar 2011, 17:59
Contact:

Re: Documentation correction?

Post 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
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Documentation correction?

Post by Bax »

Thank you for reporting.
Paolo Bax
The SmartFoxServer Team
Post Reply