Type.registerNamespace('demonic.fbg.www.ajax');
demonic.fbg.www.ajax.ControlSupport=function() {
demonic.fbg.www.ajax.ControlSupport.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
demonic.fbg.www.ajax.ControlSupport.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_path();},
FormatBBCode:function(input,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FormatBBCode',false,{input:input},succeededCallback,failedCallback,userContext); },
ForumPostHeaderVote:function(postid,isup,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ForumPostHeaderVote',false,{postid:postid,isup:isup},succeededCallback,failedCallback,userContext); },
ForumPostHeaderWatch:function(postid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ForumPostHeaderWatch',false,{postid:postid},succeededCallback,failedCallback,userContext); }}
demonic.fbg.www.ajax.ControlSupport.registerClass('demonic.fbg.www.ajax.ControlSupport',Sys.Net.WebServiceProxy);
demonic.fbg.www.ajax.ControlSupport._staticInstance = new demonic.fbg.www.ajax.ControlSupport();
demonic.fbg.www.ajax.ControlSupport.set_path = function(value) { demonic.fbg.www.ajax.ControlSupport._staticInstance.set_path(value); }
demonic.fbg.www.ajax.ControlSupport.get_path = function() { return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_path(); }
demonic.fbg.www.ajax.ControlSupport.set_timeout = function(value) { demonic.fbg.www.ajax.ControlSupport._staticInstance.set_timeout(value); }
demonic.fbg.www.ajax.ControlSupport.get_timeout = function() { return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_timeout(); }
demonic.fbg.www.ajax.ControlSupport.set_defaultUserContext = function(value) { demonic.fbg.www.ajax.ControlSupport._staticInstance.set_defaultUserContext(value); }
demonic.fbg.www.ajax.ControlSupport.get_defaultUserContext = function() { return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_defaultUserContext(); }
demonic.fbg.www.ajax.ControlSupport.set_defaultSucceededCallback = function(value) { demonic.fbg.www.ajax.ControlSupport._staticInstance.set_defaultSucceededCallback(value); }
demonic.fbg.www.ajax.ControlSupport.get_defaultSucceededCallback = function() { return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_defaultSucceededCallback(); }
demonic.fbg.www.ajax.ControlSupport.set_defaultFailedCallback = function(value) { demonic.fbg.www.ajax.ControlSupport._staticInstance.set_defaultFailedCallback(value); }
demonic.fbg.www.ajax.ControlSupport.get_defaultFailedCallback = function() { return demonic.fbg.www.ajax.ControlSupport._staticInstance.get_defaultFailedCallback(); }
demonic.fbg.www.ajax.ControlSupport.set_path("/ajax/ControlSupport.asmx");
demonic.fbg.www.ajax.ControlSupport.FormatBBCode= function(input,onSuccess,onFailed,userContext) {demonic.fbg.www.ajax.ControlSupport._staticInstance.FormatBBCode(input,onSuccess,onFailed,userContext); }
demonic.fbg.www.ajax.ControlSupport.ForumPostHeaderVote= function(postid,isup,onSuccess,onFailed,userContext) {demonic.fbg.www.ajax.ControlSupport._staticInstance.ForumPostHeaderVote(postid,isup,onSuccess,onFailed,userContext); }
demonic.fbg.www.ajax.ControlSupport.ForumPostHeaderWatch= function(postid,onSuccess,onFailed,userContext) {demonic.fbg.www.ajax.ControlSupport._staticInstance.ForumPostHeaderWatch(postid,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(demonic.fbg.www.ajax.ForumVoteResult) === 'undefined') {
demonic.fbg.www.ajax.ForumVoteResult=gtc("ForumVoteResult");
demonic.fbg.www.ajax.ForumVoteResult.registerClass('demonic.fbg.www.ajax.ForumVoteResult');
}
if (typeof(demonic.fbg.www.ajax.ForumWatchResult) === 'undefined') {
demonic.fbg.www.ajax.ForumWatchResult = function() { throw Error.invalidOperation(); }
demonic.fbg.www.ajax.ForumWatchResult.prototype = {Watched: 0,NotWatched: 1,Error: -1}
demonic.fbg.www.ajax.ForumWatchResult.registerEnum('demonic.fbg.www.ajax.ForumWatchResult', true);
}
