Checks

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

Moderators: Lapo, Bax

Post Reply
Zerano
Posts: 10
Joined: 16 Jun 2011, 10:18

Checks

Post by Zerano »

Hello i have a general question.

i want to pickup an item so i send a request to the server for some checks.

Code: Select all

public void PickUpRequest(int id,string name){
		Room room = smartFox.LastJoinedRoom;
		ISFSObject data=new SFSObject();
		data.PutInt("id",id);
		data.PutUtfString("name",name);
		ExtensionRequest request = new ExtensionRequest("pickUp", data, room);
		smartFox.Send(request);
	}
But what should i send to the server to find the item in the database and to do some checks? At the moment i am sending the id and name but i do not know if this is okay or not...

Thanks
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Post by appels »

Thats a vague question, you can send anything you need or want.
Send your info to the extension and then create a query from the received info to check in the database.
Same thing for the response to the client.
Post Reply