Type.registerNamespace('Telligent.Reputation.Web.Services');
Telligent.Reputation.Web.Services.Consumer=function() {
Telligent.Reputation.Web.Services.Consumer.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Telligent.Reputation.Web.Services.Consumer.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_path();},
GetPointAccount:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPointAccount',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserPoints:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserPoints',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserLevel:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserLevel',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetPointTransactions:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPointTransactions',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetPointTransactionsString:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPointTransactionsString',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserCapabilities:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserCapabilities',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserCapabilitiesString:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserCapabilitiesString',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserActivities:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserActivities',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetUserActivitiesString:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserActivitiesString',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetLevelAwards:function(levelID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLevelAwards',false,{levelID:levelID},succeededCallback,failedCallback,userContext); },
GetTopLevelUsers:function(numberOfUsers,levelFilter,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTopLevelUsers',false,{numberOfUsers:numberOfUsers,levelFilter:levelFilter},succeededCallback,failedCallback,userContext); },
GetTopUsersPaged:function(usersPerPage,levelFilter,pageNumber,orderBy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTopUsersPaged',false,{usersPerPage:usersPerPage,levelFilter:levelFilter,pageNumber:pageNumber,orderBy:orderBy},succeededCallback,failedCallback,userContext); },
GetTopApplicationUsers:function(applicationUri,numberOfUsers,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTopApplicationUsers',true,{applicationUri:applicationUri,numberOfUsers:numberOfUsers},succeededCallback,failedCallback,userContext); },
GetUserLevels:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserLevels',false,{},succeededCallback,failedCallback,userContext); },
GetDailyPoints:function(day,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDailyPoints',false,{day:day,count:count},succeededCallback,failedCallback,userContext); },
GetUserLevelRank:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserLevelRank',false,{userName:userName},succeededCallback,failedCallback,userContext); },
GetActivityTypePoints:function(userName,appUri,activityTypeName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetActivityTypePoints',false,{userName:userName,appUri:appUri,activityTypeName:activityTypeName},succeededCallback,failedCallback,userContext); },
GetApplications:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetApplications',false,{},succeededCallback,failedCallback,userContext); }}
Telligent.Reputation.Web.Services.Consumer.registerClass('Telligent.Reputation.Web.Services.Consumer',Sys.Net.WebServiceProxy);
Telligent.Reputation.Web.Services.Consumer._staticInstance = new Telligent.Reputation.Web.Services.Consumer();
Telligent.Reputation.Web.Services.Consumer.set_path = function(value) { Telligent.Reputation.Web.Services.Consumer._staticInstance.set_path(value); }
Telligent.Reputation.Web.Services.Consumer.get_path = function() { return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_path(); }
Telligent.Reputation.Web.Services.Consumer.set_timeout = function(value) { Telligent.Reputation.Web.Services.Consumer._staticInstance.set_timeout(value); }
Telligent.Reputation.Web.Services.Consumer.get_timeout = function() { return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_timeout(); }
Telligent.Reputation.Web.Services.Consumer.set_defaultUserContext = function(value) { Telligent.Reputation.Web.Services.Consumer._staticInstance.set_defaultUserContext(value); }
Telligent.Reputation.Web.Services.Consumer.get_defaultUserContext = function() { return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_defaultUserContext(); }
Telligent.Reputation.Web.Services.Consumer.set_defaultSucceededCallback = function(value) { Telligent.Reputation.Web.Services.Consumer._staticInstance.set_defaultSucceededCallback(value); }
Telligent.Reputation.Web.Services.Consumer.get_defaultSucceededCallback = function() { return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_defaultSucceededCallback(); }
Telligent.Reputation.Web.Services.Consumer.set_defaultFailedCallback = function(value) { Telligent.Reputation.Web.Services.Consumer._staticInstance.set_defaultFailedCallback(value); }
Telligent.Reputation.Web.Services.Consumer.get_defaultFailedCallback = function() { return Telligent.Reputation.Web.Services.Consumer._staticInstance.get_defaultFailedCallback(); }
Telligent.Reputation.Web.Services.Consumer.set_path("/RecognitionServices/Consumer.asmx");
Telligent.Reputation.Web.Services.Consumer.GetPointAccount= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetPointAccount(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserPoints= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserPoints(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserLevel= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserLevel(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetPointTransactions= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetPointTransactions(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetPointTransactionsString= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetPointTransactionsString(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserCapabilities= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserCapabilities(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserCapabilitiesString= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserCapabilitiesString(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserActivities= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserActivities(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserActivitiesString= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserActivitiesString(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetLevelAwards= function(levelID,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetLevelAwards(levelID,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetTopLevelUsers= function(numberOfUsers,levelFilter,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetTopLevelUsers(numberOfUsers,levelFilter,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetTopUsersPaged= function(usersPerPage,levelFilter,pageNumber,orderBy,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetTopUsersPaged(usersPerPage,levelFilter,pageNumber,orderBy,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetTopApplicationUsers= function(applicationUri,numberOfUsers,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetTopApplicationUsers(applicationUri,numberOfUsers,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserLevels= function(onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserLevels(onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetDailyPoints= function(day,count,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetDailyPoints(day,count,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetUserLevelRank= function(userName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetUserLevelRank(userName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetActivityTypePoints= function(userName,appUri,activityTypeName,onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetActivityTypePoints(userName,appUri,activityTypeName,onSuccess,onFailed,userContext); }
Telligent.Reputation.Web.Services.Consumer.GetApplications= function(onSuccess,onFailed,userContext) {Telligent.Reputation.Web.Services.Consumer._staticInstance.GetApplications(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Telligent.Reputation.Consumer');
if (typeof(Telligent.Reputation.Consumer.PointAccountInfo) === 'undefined') {
Telligent.Reputation.Consumer.PointAccountInfo=gtc("Telligent.Reputation.Consumer.PointAccountInfo");
Telligent.Reputation.Consumer.PointAccountInfo.registerClass('Telligent.Reputation.Consumer.PointAccountInfo');
}
if (typeof(Telligent.Reputation.Consumer.LevelInfo) === 'undefined') {
Telligent.Reputation.Consumer.LevelInfo=gtc("Telligent.Reputation.Consumer.LevelInfo");
Telligent.Reputation.Consumer.LevelInfo.registerClass('Telligent.Reputation.Consumer.LevelInfo');
}
if (typeof(Telligent.Reputation.Consumer.PointTransactionInfo) === 'undefined') {
Telligent.Reputation.Consumer.PointTransactionInfo=gtc("Telligent.Reputation.Consumer.PointTransactionInfo");
Telligent.Reputation.Consumer.PointTransactionInfo.registerClass('Telligent.Reputation.Consumer.PointTransactionInfo');
}
if (typeof(Telligent.Reputation.Consumer.CapabilityInfo) === 'undefined') {
Telligent.Reputation.Consumer.CapabilityInfo=gtc("Telligent.Reputation.Consumer.CapabilityInfo");
Telligent.Reputation.Consumer.CapabilityInfo.registerClass('Telligent.Reputation.Consumer.CapabilityInfo');
}
if (typeof(Telligent.Reputation.Consumer.ActivityInfo) === 'undefined') {
Telligent.Reputation.Consumer.ActivityInfo=gtc("Telligent.Reputation.Consumer.ActivityInfo");
Telligent.Reputation.Consumer.ActivityInfo.registerClass('Telligent.Reputation.Consumer.ActivityInfo');
}
if (typeof(Telligent.Reputation.Consumer.AwardInfo) === 'undefined') {
Telligent.Reputation.Consumer.AwardInfo=gtc("Telligent.Reputation.Consumer.AwardInfo");
Telligent.Reputation.Consumer.AwardInfo.registerClass('Telligent.Reputation.Consumer.AwardInfo');
}
if (typeof(Telligent.Reputation.Consumer.PagedPointAccountInfo) === 'undefined') {
Telligent.Reputation.Consumer.PagedPointAccountInfo=gtc("Telligent.Reputation.Consumer.PagedPointAccountInfo");
Telligent.Reputation.Consumer.PagedPointAccountInfo.registerClass('Telligent.Reputation.Consumer.PagedPointAccountInfo');
}
if (typeof(Telligent.Reputation.Consumer.UserApplicationPointInfo) === 'undefined') {
Telligent.Reputation.Consumer.UserApplicationPointInfo=gtc("Telligent.Reputation.Consumer.UserApplicationPointInfo");
Telligent.Reputation.Consumer.UserApplicationPointInfo.registerClass('Telligent.Reputation.Consumer.UserApplicationPointInfo');
}
if (typeof(Telligent.Reputation.Consumer.DailyPointInfo) === 'undefined') {
Telligent.Reputation.Consumer.DailyPointInfo=gtc("Telligent.Reputation.Consumer.DailyPointInfo");
Telligent.Reputation.Consumer.DailyPointInfo.registerClass('Telligent.Reputation.Consumer.DailyPointInfo');
}
if (typeof(Telligent.Reputation.Consumer.UserLevelRankInfo) === 'undefined') {
Telligent.Reputation.Consumer.UserLevelRankInfo=gtc("Telligent.Reputation.Consumer.UserLevelRankInfo");
Telligent.Reputation.Consumer.UserLevelRankInfo.registerClass('Telligent.Reputation.Consumer.UserLevelRankInfo');
}
if (typeof(Telligent.Reputation.Consumer.ActivityTypePointInfo) === 'undefined') {
Telligent.Reputation.Consumer.ActivityTypePointInfo=gtc("Telligent.Reputation.Consumer.ActivityTypePointInfo");
Telligent.Reputation.Consumer.ActivityTypePointInfo.registerClass('Telligent.Reputation.Consumer.ActivityTypePointInfo');
}
if (typeof(Telligent.Reputation.Consumer.ApplicationInfo) === 'undefined') {
Telligent.Reputation.Consumer.ApplicationInfo=gtc("Telligent.Reputation.Consumer.ApplicationInfo");
Telligent.Reputation.Consumer.ApplicationInfo.registerClass('Telligent.Reputation.Consumer.ApplicationInfo');
}
