Type.registerNamespace('Clozone.Web.WebService'); Clozone.Web.WebService.Friend = { path: "/WebService/Friend.asmx", AddFriend:function(friendID,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "AddFriend",{friendID:friendID}, onMethodComplete, onMethodTimeout); }, RemoveFriend:function(friendID,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "RemoveFriend",{friendID:friendID}, onMethodComplete, onMethodTimeout); }, GetFriendsPaged:function(prefix,pageIndex,pageSize,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "GetFriendsPaged",{prefix:prefix,pageIndex:pageIndex,pageSize:pageSize}, onMethodComplete, onMethodTimeout); }, GetCandidatesPaged:function(prefix,pageIndex,pageSize,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "GetCandidatesPaged",{prefix:prefix,pageIndex:pageIndex,pageSize:pageSize}, onMethodComplete, onMethodTimeout); }, AcceptFriend:function(friendName,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "AcceptFriend",{friendName:friendName}, onMethodComplete, onMethodTimeout); }, DenyFriend:function(friendName,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "DenyFriend",{friendName:friendName}, onMethodComplete, onMethodTimeout); }, AcceptAndAddFriend:function(friendName,onMethodComplete, onMethodTimeout) {return Web.Net.ServiceMethodRequest.callMethod(this.path, "AcceptAndAddFriend",{friendName:friendName}, onMethodComplete, onMethodTimeout); } }