Type.registerNamespace('PopForums.UI');
PopForums.UI.WebServices=function() {
PopForums.UI.WebServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PopForums.UI.WebServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PopForums.UI.WebServices._staticInstance.get_path();},
GetFirstPost:function(topicID,succeededCallback, failedCallback, userContext) {
/// <param name="topicID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetFirstPost',false,{topicID:topicID},succeededCallback,failedCallback,userContext); },
GetQuote:function(postID,isRichText,succeededCallback, failedCallback, userContext) {
/// <param name="postID" type="Number">System.Int32</param>
/// <param name="isRichText" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetQuote',false,{postID:postID,isRichText:isRichText},succeededCallback,failedCallback,userContext); }}
PopForums.UI.WebServices.registerClass('PopForums.UI.WebServices',Sys.Net.WebServiceProxy);
PopForums.UI.WebServices._staticInstance = new PopForums.UI.WebServices();
PopForums.UI.WebServices.set_path = function(value) {
PopForums.UI.WebServices._staticInstance.set_path(value); }
PopForums.UI.WebServices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return PopForums.UI.WebServices._staticInstance.get_path();}
PopForums.UI.WebServices.set_timeout = function(value) {
PopForums.UI.WebServices._staticInstance.set_timeout(value); }
PopForums.UI.WebServices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return PopForums.UI.WebServices._staticInstance.get_timeout(); }
PopForums.UI.WebServices.set_defaultUserContext = function(value) { 
PopForums.UI.WebServices._staticInstance.set_defaultUserContext(value); }
PopForums.UI.WebServices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return PopForums.UI.WebServices._staticInstance.get_defaultUserContext(); }
PopForums.UI.WebServices.set_defaultSucceededCallback = function(value) { 
 PopForums.UI.WebServices._staticInstance.set_defaultSucceededCallback(value); }
PopForums.UI.WebServices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return PopForums.UI.WebServices._staticInstance.get_defaultSucceededCallback(); }
PopForums.UI.WebServices.set_defaultFailedCallback = function(value) { 
PopForums.UI.WebServices._staticInstance.set_defaultFailedCallback(value); }
PopForums.UI.WebServices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return PopForums.UI.WebServices._staticInstance.get_defaultFailedCallback(); }
PopForums.UI.WebServices.set_path("/Forums/WebServices.asmx");
PopForums.UI.WebServices.GetFirstPost= function(topicID,onSuccess,onFailed,userContext) {
/// <param name="topicID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
PopForums.UI.WebServices._staticInstance.GetFirstPost(topicID,onSuccess,onFailed,userContext); }
PopForums.UI.WebServices.GetQuote= function(postID,isRichText,onSuccess,onFailed,userContext) {
/// <param name="postID" type="Number">System.Int32</param>
/// <param name="isRichText" type="Boolean">System.Boolean</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
PopForums.UI.WebServices._staticInstance.GetQuote(postID,isRichText,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('PopForums');
if (typeof(PopForums.PostContainer) === 'undefined') {
PopForums.PostContainer=gtc("PopForums.PostContainer");
PopForums.PostContainer.registerClass('PopForums.PostContainer');
}
