Page 1 of 1

Checks

Posted: 20 Jun 2011, 13:35
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

Posted: 20 Jun 2011, 14:43
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.