Type.registerNamespace('thmz.shire.services');
thmz.shire.services.commentservices=function() {
thmz.shire.services.commentservices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
thmz.shire.services.commentservices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return thmz.shire.services.commentservices._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetCommentListForItem:function(itemid,succeededCallback, failedCallback, userContext) {
/// <param name="itemid" 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(), 'GetCommentListForItem',false,{itemid:itemid},succeededCallback,failedCallback,userContext); },
GetCommentListPagedForItem:function(itemid,pageindex,succeededCallback, failedCallback, userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="pageindex" 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(), 'GetCommentListPagedForItem',false,{itemid:itemid,pageindex:pageindex},succeededCallback,failedCallback,userContext); },
WriteComment:function(itemid,content,succeededCallback, failedCallback, userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</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(), 'WriteComment',false,{itemid:itemid,content:content},succeededCallback,failedCallback,userContext); },
WriteCommentWithReply:function(itemid,content,touserid,succeededCallback, failedCallback, userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</param>
/// <param name="touserid" type="String">System.String</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(), 'WriteCommentWithReply',false,{itemid:itemid,content:content,touserid:touserid},succeededCallback,failedCallback,userContext); }}
thmz.shire.services.commentservices.registerClass('thmz.shire.services.commentservices',Sys.Net.WebServiceProxy);
thmz.shire.services.commentservices._staticInstance = new thmz.shire.services.commentservices();
thmz.shire.services.commentservices.set_path = function(value) {
thmz.shire.services.commentservices._staticInstance.set_path(value); }
thmz.shire.services.commentservices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return thmz.shire.services.commentservices._staticInstance.get_path();}
thmz.shire.services.commentservices.set_timeout = function(value) {
thmz.shire.services.commentservices._staticInstance.set_timeout(value); }
thmz.shire.services.commentservices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return thmz.shire.services.commentservices._staticInstance.get_timeout(); }
thmz.shire.services.commentservices.set_defaultUserContext = function(value) { 
thmz.shire.services.commentservices._staticInstance.set_defaultUserContext(value); }
thmz.shire.services.commentservices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return thmz.shire.services.commentservices._staticInstance.get_defaultUserContext(); }
thmz.shire.services.commentservices.set_defaultSucceededCallback = function(value) { 
 thmz.shire.services.commentservices._staticInstance.set_defaultSucceededCallback(value); }
thmz.shire.services.commentservices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return thmz.shire.services.commentservices._staticInstance.get_defaultSucceededCallback(); }
thmz.shire.services.commentservices.set_defaultFailedCallback = function(value) { 
thmz.shire.services.commentservices._staticInstance.set_defaultFailedCallback(value); }
thmz.shire.services.commentservices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return thmz.shire.services.commentservices._staticInstance.get_defaultFailedCallback(); }
thmz.shire.services.commentservices.set_enableJsonp = function(value) { thmz.shire.services.commentservices._staticInstance.set_enableJsonp(value); }
thmz.shire.services.commentservices.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return thmz.shire.services.commentservices._staticInstance.get_enableJsonp(); }
thmz.shire.services.commentservices.set_jsonpCallbackParameter = function(value) { thmz.shire.services.commentservices._staticInstance.set_jsonpCallbackParameter(value); }
thmz.shire.services.commentservices.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return thmz.shire.services.commentservices._staticInstance.get_jsonpCallbackParameter(); }
thmz.shire.services.commentservices.set_path("/services/commentservices.asmx");
thmz.shire.services.commentservices.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <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>
thmz.shire.services.commentservices._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
thmz.shire.services.commentservices.GetCommentListForItem= function(itemid,onSuccess,onFailed,userContext) {
/// <param name="itemid" 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>
thmz.shire.services.commentservices._staticInstance.GetCommentListForItem(itemid,onSuccess,onFailed,userContext); }
thmz.shire.services.commentservices.GetCommentListPagedForItem= function(itemid,pageindex,onSuccess,onFailed,userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="pageindex" 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>
thmz.shire.services.commentservices._staticInstance.GetCommentListPagedForItem(itemid,pageindex,onSuccess,onFailed,userContext); }
thmz.shire.services.commentservices.WriteComment= function(itemid,content,onSuccess,onFailed,userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</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>
thmz.shire.services.commentservices._staticInstance.WriteComment(itemid,content,onSuccess,onFailed,userContext); }
thmz.shire.services.commentservices.WriteCommentWithReply= function(itemid,content,touserid,onSuccess,onFailed,userContext) {
/// <param name="itemid" type="Number">System.Int32</param>
/// <param name="content" type="String">System.String</param>
/// <param name="touserid" type="String">System.String</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>
thmz.shire.services.commentservices._staticInstance.WriteCommentWithReply(itemid,content,touserid,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('thmz.shire.bll.model');
if (typeof(thmz.shire.bll.model.CComment) === 'undefined') {
thmz.shire.bll.model.CComment=gtc("thmz.shire.bll.model.CComment");
thmz.shire.bll.model.CComment.registerClass('thmz.shire.bll.model.CComment');
}
if (typeof(thmz.shire.services.CommentPaged) === 'undefined') {
thmz.shire.services.CommentPaged=gtc("thmz.shire.services.CommentPaged");
thmz.shire.services.CommentPaged.registerClass('thmz.shire.services.CommentPaged');
}

