Type.registerNamespace('Microsoft.Marketing.CustomerEvidence.Web.Application.Services');
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings=function() {
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_path();},
RetrieveRatingInformation:function(userID,contentIDs,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RetrieveRatingInformation',false,{userID:userID,contentIDs:contentIDs},succeededCallback,failedCallback,userContext); },
SetUserRating:function(userID,contentID,score,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetUserRating',false,{userID:userID,contentID:contentID,score:score},succeededCallback,failedCallback,userContext); },
SetUserPoll:function(userID,pollID,answer,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetUserPoll',false,{userID:userID,pollID:pollID,answer:answer},succeededCallback,failedCallback,userContext); }}
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.registerClass('Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings',Sys.Net.WebServiceProxy);
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance = new Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings();
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_path = function(value) { Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.set_path(value); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.get_path = function() { return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_path(); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_timeout = function(value) { Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.set_timeout(value); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.get_timeout = function() { return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_timeout(); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_defaultUserContext = function(value) { Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.set_defaultUserContext(value); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.get_defaultUserContext = function() { return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_defaultUserContext(); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_defaultSucceededCallback = function(value) { Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.set_defaultSucceededCallback(value); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.get_defaultSucceededCallback = function() { return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_defaultSucceededCallback(); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_defaultFailedCallback = function(value) { Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.set_defaultFailedCallback(value); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.get_defaultFailedCallback = function() { return Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.get_defaultFailedCallback(); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.set_path("/business/success/Services/RatingsPolls.asmx");
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.RetrieveRatingInformation= function(userID,contentIDs,onSuccess,onFailed,userContext) {Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.RetrieveRatingInformation(userID,contentIDs,onSuccess,onFailed,userContext); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.SetUserRating= function(userID,contentID,score,onSuccess,onFailed,userContext) {Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.SetUserRating(userID,contentID,score,onSuccess,onFailed,userContext); }
Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings.SetUserPoll= function(userID,pollID,answer,onSuccess,onFailed,userContext) {Microsoft.Marketing.CustomerEvidence.Web.Application.Services.Ratings._staticInstance.SetUserPoll(userID,pollID,answer,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Microsoft.Marketing.CustomerEvidence.Dal');
if (typeof(Microsoft.Marketing.CustomerEvidence.Dal.RatingInformation) === 'undefined') {
Microsoft.Marketing.CustomerEvidence.Dal.RatingInformation=gtc("Microsoft.Marketing.CustomerEvidence.Dal.RatingInformation");
Microsoft.Marketing.CustomerEvidence.Dal.RatingInformation.registerClass('Microsoft.Marketing.CustomerEvidence.Dal.RatingInformation');
}
Type.registerNamespace('Microsoft.Marketing.CustomerEvidence.Entities');
if (typeof(Microsoft.Marketing.CustomerEvidence.Entities.PollQuestion) === 'undefined') {
Microsoft.Marketing.CustomerEvidence.Entities.PollQuestion=gtc("Microsoft.Marketing.CustomerEvidence.Entities.PollQuestion");
Microsoft.Marketing.CustomerEvidence.Entities.PollQuestion.registerClass('Microsoft.Marketing.CustomerEvidence.Entities.PollQuestion');
}
