Type.registerNamespace('StardockForums'); StardockForums.ForumService=function() { StardockForums.ForumService.initializeBase(this); this._timeout = 0; this._userContext = null; this._succeeded = null; this._failed = null; } StardockForums.ForumService.prototype={ _get_path:function() { var p = this.get_path(); if (p) return p; else return StardockForums.ForumService._staticInstance.get_path();}, StubServiceResultCode:function(succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'StubServiceResultCode',false,{},succeededCallback,failedCallback,userContext); }, FetchPostPreview:function(postId,PreviewDivId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'FetchPostPreview',false,{postId:postId,PreviewDivId:PreviewDivId},succeededCallback,failedCallback,userContext); }, GetEdits:function(postDataId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GetEdits',false,{postDataId:postDataId},succeededCallback,failedCallback,userContext); }, SetSingleEditAsPrivate:function(postDataId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'SetSingleEditAsPrivate',false,{postDataId:postDataId},succeededCallback,failedCallback,userContext); }, SetAllEditsAsPrivate:function(postDataId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'SetAllEditsAsPrivate',false,{postDataId:postDataId},succeededCallback,failedCallback,userContext); }, StubKarmaResultCode:function(succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'StubKarmaResultCode',false,{},succeededCallback,failedCallback,userContext); }, DeleteKarma:function(accountId,karmaId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'DeleteKarma',false,{accountId:accountId,karmaId:karmaId},succeededCallback,failedCallback,userContext); }, GiveKarma:function(karma,target,reason,postId,postDataId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GiveKarma',false,{karma:karma,target:target,reason:reason,postId:postId,postDataId:postDataId},succeededCallback,failedCallback,userContext); }, GiveKarmaNoPost:function(karma,target,reason,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'GiveKarmaNoPost',false,{karma:karma,target:target,reason:reason},succeededCallback,failedCallback,userContext); }, AlterKarmaReason:function(target,postId,postDataId,reason,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'AlterKarmaReason',false,{target:target,postId:postId,postDataId:postDataId,reason:reason},succeededCallback,failedCallback,userContext); }, AddNote:function(targetAccountId,noteText,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'AddNote',false,{targetAccountId:targetAccountId,noteText:noteText},succeededCallback,failedCallback,userContext); }, DeleteNote:function(noteId,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'DeleteNote',false,{noteId:noteId},succeededCallback,failedCallback,userContext); }, EditNote:function(noteId,targetAccountId,noteText,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'EditNote',false,{noteId:noteId,targetAccountId:targetAccountId,noteText:noteText},succeededCallback,failedCallback,userContext); }, Report:function(postId,postDataId,reason,more,succeededCallback, failedCallback, userContext) { return this._invoke(this._get_path(), 'Report',false,{postId:postId,postDataId:postDataId,reason:reason,more:more},succeededCallback,failedCallback,userContext); }} StardockForums.ForumService.registerClass('StardockForums.ForumService',Sys.Net.WebServiceProxy); StardockForums.ForumService._staticInstance = new StardockForums.ForumService(); StardockForums.ForumService.set_path = function(value) { StardockForums.ForumService._staticInstance.set_path(value); } StardockForums.ForumService.get_path = function() { return StardockForums.ForumService._staticInstance.get_path(); } StardockForums.ForumService.set_timeout = function(value) { StardockForums.ForumService._staticInstance.set_timeout(value); } StardockForums.ForumService.get_timeout = function() { return StardockForums.ForumService._staticInstance.get_timeout(); } StardockForums.ForumService.set_defaultUserContext = function(value) { StardockForums.ForumService._staticInstance.set_defaultUserContext(value); } StardockForums.ForumService.get_defaultUserContext = function() { return StardockForums.ForumService._staticInstance.get_defaultUserContext(); } StardockForums.ForumService.set_defaultSucceededCallback = function(value) { StardockForums.ForumService._staticInstance.set_defaultSucceededCallback(value); } StardockForums.ForumService.get_defaultSucceededCallback = function() { return StardockForums.ForumService._staticInstance.get_defaultSucceededCallback(); } StardockForums.ForumService.set_defaultFailedCallback = function(value) { StardockForums.ForumService._staticInstance.set_defaultFailedCallback(value); } StardockForums.ForumService.get_defaultFailedCallback = function() { return StardockForums.ForumService._staticInstance.get_defaultFailedCallback(); } StardockForums.ForumService.set_enableJsonp = function(value) { StardockForums.ForumService._staticInstance.set_enableJsonp(value); } StardockForums.ForumService.get_enableJsonp = function() { return StardockForums.ForumService._staticInstance.get_enableJsonp(); } StardockForums.ForumService.set_jsonpCallbackParameter = function(value) { StardockForums.ForumService._staticInstance.set_jsonpCallbackParameter(value); } StardockForums.ForumService.get_jsonpCallbackParameter = function() { return StardockForums.ForumService._staticInstance.get_jsonpCallbackParameter(); } StardockForums.ForumService.set_path("/ws/ForumService.asmx"); StardockForums.ForumService.StubServiceResultCode= function(onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.StubServiceResultCode(onSuccess,onFailed,userContext); } StardockForums.ForumService.FetchPostPreview= function(postId,PreviewDivId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.FetchPostPreview(postId,PreviewDivId,onSuccess,onFailed,userContext); } StardockForums.ForumService.GetEdits= function(postDataId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.GetEdits(postDataId,onSuccess,onFailed,userContext); } StardockForums.ForumService.SetSingleEditAsPrivate= function(postDataId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.SetSingleEditAsPrivate(postDataId,onSuccess,onFailed,userContext); } StardockForums.ForumService.SetAllEditsAsPrivate= function(postDataId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.SetAllEditsAsPrivate(postDataId,onSuccess,onFailed,userContext); } StardockForums.ForumService.StubKarmaResultCode= function(onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.StubKarmaResultCode(onSuccess,onFailed,userContext); } StardockForums.ForumService.DeleteKarma= function(accountId,karmaId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.DeleteKarma(accountId,karmaId,onSuccess,onFailed,userContext); } StardockForums.ForumService.GiveKarma= function(karma,target,reason,postId,postDataId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.GiveKarma(karma,target,reason,postId,postDataId,onSuccess,onFailed,userContext); } StardockForums.ForumService.GiveKarmaNoPost= function(karma,target,reason,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.GiveKarmaNoPost(karma,target,reason,onSuccess,onFailed,userContext); } StardockForums.ForumService.AlterKarmaReason= function(target,postId,postDataId,reason,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.AlterKarmaReason(target,postId,postDataId,reason,onSuccess,onFailed,userContext); } StardockForums.ForumService.AddNote= function(targetAccountId,noteText,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.AddNote(targetAccountId,noteText,onSuccess,onFailed,userContext); } StardockForums.ForumService.DeleteNote= function(noteId,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.DeleteNote(noteId,onSuccess,onFailed,userContext); } StardockForums.ForumService.EditNote= function(noteId,targetAccountId,noteText,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.EditNote(noteId,targetAccountId,noteText,onSuccess,onFailed,userContext); } StardockForums.ForumService.Report= function(postId,postDataId,reason,more,onSuccess,onFailed,userContext) {StardockForums.ForumService._staticInstance.Report(postId,postDataId,reason,more,onSuccess,onFailed,userContext); } var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor; if (typeof(StardockForums.PostPreviewResponse) === 'undefined') { StardockForums.PostPreviewResponse=gtc("StardockForums.PostPreviewResponse"); StardockForums.PostPreviewResponse.registerClass('StardockForums.PostPreviewResponse'); } Type.registerNamespace('Stardock.Web.UI.Services'); if (typeof(Stardock.Web.UI.Services.ServiceResult) === 'undefined') { Stardock.Web.UI.Services.ServiceResult=gtc("Stardock.Web.UI.Services.ServiceResult"); Stardock.Web.UI.Services.ServiceResult.registerClass('Stardock.Web.UI.Services.ServiceResult'); } if (typeof(Stardock.Web.UI.Services.ServiceResultCode) === 'undefined') { Stardock.Web.UI.Services.ServiceResultCode = function() { throw Error.invalidOperation(); } Stardock.Web.UI.Services.ServiceResultCode.prototype = {Success: 0,Failure: 1,Exists: 2,Banned: 3,BadAccount: 4,BadAuth: 5,BadData: 6,Blacklisted: 7} Stardock.Web.UI.Services.ServiceResultCode.registerEnum('Stardock.Web.UI.Services.ServiceResultCode', true); } Type.registerNamespace('Stardock.Posts.Forums'); if (typeof(Stardock.Posts.Forums.ResultCode) === 'undefined') { Stardock.Posts.Forums.ResultCode = function() { throw Error.invalidOperation(); } Stardock.Posts.Forums.ResultCode.prototype = {Failure: 0,Success: 1,LimitError: 2} Stardock.Posts.Forums.ResultCode.registerEnum('Stardock.Posts.Forums.ResultCode', true); }