Type.registerNamespace('SilverlightShow.Services');
SilverlightShow.Services.Rating=function() {
SilverlightShow.Services.Rating.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SilverlightShow.Services.Rating.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return SilverlightShow.Services.Rating._staticInstance.get_path();},
Rate:function(resourceItemId,ratingPoints,sessionKey,token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Rate',false,{resourceItemId:resourceItemId,ratingPoints:ratingPoints,sessionKey:sessionKey,token:token},succeededCallback,failedCallback,userContext); }}
SilverlightShow.Services.Rating.registerClass('SilverlightShow.Services.Rating',Sys.Net.WebServiceProxy);
SilverlightShow.Services.Rating._staticInstance = new SilverlightShow.Services.Rating();
SilverlightShow.Services.Rating.set_path = function(value) { SilverlightShow.Services.Rating._staticInstance.set_path(value); }
SilverlightShow.Services.Rating.get_path = function() { return SilverlightShow.Services.Rating._staticInstance.get_path(); }
SilverlightShow.Services.Rating.set_timeout = function(value) { SilverlightShow.Services.Rating._staticInstance.set_timeout(value); }
SilverlightShow.Services.Rating.get_timeout = function() { return SilverlightShow.Services.Rating._staticInstance.get_timeout(); }
SilverlightShow.Services.Rating.set_defaultUserContext = function(value) { SilverlightShow.Services.Rating._staticInstance.set_defaultUserContext(value); }
SilverlightShow.Services.Rating.get_defaultUserContext = function() { return SilverlightShow.Services.Rating._staticInstance.get_defaultUserContext(); }
SilverlightShow.Services.Rating.set_defaultSucceededCallback = function(value) { SilverlightShow.Services.Rating._staticInstance.set_defaultSucceededCallback(value); }
SilverlightShow.Services.Rating.get_defaultSucceededCallback = function() { return SilverlightShow.Services.Rating._staticInstance.get_defaultSucceededCallback(); }
SilverlightShow.Services.Rating.set_defaultFailedCallback = function(value) { SilverlightShow.Services.Rating._staticInstance.set_defaultFailedCallback(value); }
SilverlightShow.Services.Rating.get_defaultFailedCallback = function() { return SilverlightShow.Services.Rating._staticInstance.get_defaultFailedCallback(); }
SilverlightShow.Services.Rating.set_path("/Services/Rating.svc");
SilverlightShow.Services.Rating.Rate= function(resourceItemId,ratingPoints,sessionKey,token,onSuccess,onFailed,userContext) {SilverlightShow.Services.Rating._staticInstance.Rate(resourceItemId,ratingPoints,sessionKey,token,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('BusinessObjects');
if (typeof(BusinessObjects.RatingResult) === 'undefined') {
BusinessObjects.RatingResult=gtc("RatingResult:http://schemas.datacontract.org/2004/07/BusinessObjects");
BusinessObjects.RatingResult.registerClass('BusinessObjects.RatingResult');
}
Type.registerNamespace('BusinessObjects.Enums');
if (typeof(BusinessObjects.Enums.RatingStatus) === 'undefined') {
BusinessObjects.Enums.RatingStatus = function() { throw Error.invalidOperation(); }
BusinessObjects.Enums.RatingStatus.prototype = {OK: 0,InvalidToken: 1,UnknownError: 2}
BusinessObjects.Enums.RatingStatus.registerEnum('BusinessObjects.Enums.RatingStatus', true);
}

