Type.registerNamespace('Foloda.Web');
Foloda.Web.ReviewService=function() {
Foloda.Web.ReviewService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Foloda.Web.ReviewService.prototype={
GetReviews:function(objectId,pageIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'GetReviews',false,{objectId:objectId,pageIndex:pageIndex},succeededCallback,failedCallback,userContext); },
GetReviewsWithName:function(objectId,pageIndex,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'GetReviewsWithName',false,{objectId:objectId,pageIndex:pageIndex,userName:userName},succeededCallback,failedCallback,userContext); },
Save:function(reviewId,objectId,parentId,title,content,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'Save',false,{reviewId:reviewId,objectId:objectId,parentId:parentId,title:title,content:content},succeededCallback,failedCallback,userContext); },
SaveWithName:function(reviewId,objectId,parentId,title,content,userName,ip,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'SaveWithName',false,{reviewId:reviewId,objectId:objectId,parentId:parentId,title:title,content:content,userName:userName,ip:ip},succeededCallback,failedCallback,userContext); },
Del:function(reviewId,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'Del',false,{reviewId:reviewId},succeededCallback,failedCallback,userContext); },
DelWithName:function(reviewId,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(Foloda.Web.ReviewService.get_path(), 'DelWithName',false,{reviewId:reviewId,userName:userName},succeededCallback,failedCallback,userContext); }}
Foloda.Web.ReviewService.registerClass('Foloda.Web.ReviewService',Sys.Net.WebServiceProxy);
Foloda.Web.ReviewService._staticInstance = new Foloda.Web.ReviewService();
Foloda.Web.ReviewService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Foloda.Web.ReviewService._staticInstance._path = value; }
Foloda.Web.ReviewService.get_path = function() { return Foloda.Web.ReviewService._staticInstance._path; }
Foloda.Web.ReviewService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Foloda.Web.ReviewService._staticInstance._timeout = value; }
Foloda.Web.ReviewService.get_timeout = function() { 
return Foloda.Web.ReviewService._staticInstance._timeout; }
Foloda.Web.ReviewService.set_defaultUserContext = function(value) { 
Foloda.Web.ReviewService._staticInstance._userContext = value; }
Foloda.Web.ReviewService.get_defaultUserContext = function() { 
return Foloda.Web.ReviewService._staticInstance._userContext; }
Foloda.Web.ReviewService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Foloda.Web.ReviewService._staticInstance._succeeded = value; }
Foloda.Web.ReviewService.get_defaultSucceededCallback = function() { 
return Foloda.Web.ReviewService._staticInstance._succeeded; }
Foloda.Web.ReviewService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Foloda.Web.ReviewService._staticInstance._failed = value; }
Foloda.Web.ReviewService.get_defaultFailedCallback = function() { 
return Foloda.Web.ReviewService._staticInstance._failed; }
Foloda.Web.ReviewService.set_path("/WebService/FolodaReview.asmx");
Foloda.Web.ReviewService.GetReviews= function(objectId,pageIndex,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.GetReviews(objectId,pageIndex,onSuccess,onFailed,userContext); }
Foloda.Web.ReviewService.GetReviewsWithName= function(objectId,pageIndex,userName,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.GetReviewsWithName(objectId,pageIndex,userName,onSuccess,onFailed,userContext); }
Foloda.Web.ReviewService.Save= function(reviewId,objectId,parentId,title,content,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.Save(reviewId,objectId,parentId,title,content,onSuccess,onFailed,userContext); }
Foloda.Web.ReviewService.SaveWithName= function(reviewId,objectId,parentId,title,content,userName,ip,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.SaveWithName(reviewId,objectId,parentId,title,content,userName,ip,onSuccess,onFailed,userContext); }
Foloda.Web.ReviewService.Del= function(reviewId,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.Del(reviewId,onSuccess,onFailed,userContext); }
Foloda.Web.ReviewService.DelWithName= function(reviewId,userName,onSuccess,onFailed,userContext) {Foloda.Web.ReviewService._staticInstance.DelWithName(reviewId,userName,onSuccess,onFailed,userContext); }
