Documentation correction?

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

Moderators: Lapo, Bax

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

Documentation correction?

Postby Carl Lydon » 13 Aug 2012, 18:03

Hi,

In this docs page:

http://docs2x.smartfoxserver.com/api-docs/csharp-doc/html/faefba8b-5e50-35a7-e082-f8fa818c049a.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?

Postby rjgtav » 14 Aug 2012, 21:23

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?

Postby ThomasLund » 27 Sep 2012, 11:40

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
Evil-Dog
Posts: 86
Joined: 08 Mar 2011, 17:59
Contact:

Re: Documentation correction?

Postby Evil-Dog » 02 Jun 2014, 20:54

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: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Documentation correction?

Postby Bax » 04 Jun 2014, 07:41

Thank you for reporting.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 87 guests