Type.registerNamespace('DaShi.WebSite.Services');
DaShi.WebSite.Services.Posts=function() {
DaShi.WebSite.Services.Posts.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DaShi.WebSite.Services.Posts.prototype={
Add:function(title,verify,toUsersID,commentObjectID,coc,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Posts.get_path(), 'Add',false,{title:title,verify:verify,toUsersID:toUsersID,commentObjectID:commentObjectID,coc:coc},succeededCallback,failedCallback,userContext); },
Reply:function(reply,postid,toUsersID,commentObjectID,coc,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Posts.get_path(), 'Reply',false,{reply:reply,postid:postid,toUsersID:toUsersID,commentObjectID:commentObjectID,coc:coc},succeededCallback,failedCallback,userContext); },
List:function(pageIndex,pageSize,toUsersID,coid,cocid,succeededCallback, failedCallback, userContext) {
return this._invoke(DaShi.WebSite.Services.Posts.get_path(), 'List',false,{pageIndex:pageIndex,pageSize:pageSize,toUsersID:toUsersID,coid:coid,cocid:cocid},succeededCallback,failedCallback,userContext); }}
DaShi.WebSite.Services.Posts.registerClass('DaShi.WebSite.Services.Posts',Sys.Net.WebServiceProxy);
DaShi.WebSite.Services.Posts._staticInstance = new DaShi.WebSite.Services.Posts();
DaShi.WebSite.Services.Posts.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; DaShi.WebSite.Services.Posts._staticInstance._path = value; }
DaShi.WebSite.Services.Posts.get_path = function() { return DaShi.WebSite.Services.Posts._staticInstance._path; }
DaShi.WebSite.Services.Posts.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
DaShi.WebSite.Services.Posts._staticInstance._timeout = value; }
DaShi.WebSite.Services.Posts.get_timeout = function() { 
return DaShi.WebSite.Services.Posts._staticInstance._timeout; }
DaShi.WebSite.Services.Posts.set_defaultUserContext = function(value) { 
DaShi.WebSite.Services.Posts._staticInstance._userContext = value; }
DaShi.WebSite.Services.Posts.get_defaultUserContext = function() { 
return DaShi.WebSite.Services.Posts._staticInstance._userContext; }
DaShi.WebSite.Services.Posts.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; DaShi.WebSite.Services.Posts._staticInstance._succeeded = value; }
DaShi.WebSite.Services.Posts.get_defaultSucceededCallback = function() { 
return DaShi.WebSite.Services.Posts._staticInstance._succeeded; }
DaShi.WebSite.Services.Posts.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; DaShi.WebSite.Services.Posts._staticInstance._failed = value; }
DaShi.WebSite.Services.Posts.get_defaultFailedCallback = function() { 
return DaShi.WebSite.Services.Posts._staticInstance._failed; }
DaShi.WebSite.Services.Posts.set_path("/Services/Posts.asmx");
DaShi.WebSite.Services.Posts.Add= function(title,verify,toUsersID,commentObjectID,coc,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Posts._staticInstance.Add(title,verify,toUsersID,commentObjectID,coc,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Posts.Reply= function(reply,postid,toUsersID,commentObjectID,coc,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Posts._staticInstance.Reply(reply,postid,toUsersID,commentObjectID,coc,onSuccess,onFailed,userContext); }
DaShi.WebSite.Services.Posts.List= function(pageIndex,pageSize,toUsersID,coid,cocid,onSuccess,onFailed,userContext) {DaShi.WebSite.Services.Posts._staticInstance.List(pageIndex,pageSize,toUsersID,coid,cocid,onSuccess,onFailed,userContext); }
Type.registerNamespace('DaShi.Enum');
if (typeof(DaShi.Enum.CommentObjectCategory) === 'undefined') {
DaShi.Enum.CommentObjectCategory = function() { throw Error.invalidOperation(); }
DaShi.Enum.CommentObjectCategory.prototype = {UserComment: 1,PhotoComment: 2,ArticleComment: 3,CaseComment: 4,CommissionComment: 5,ProductComment: 6,ProjectPhasesComment: 7}
DaShi.Enum.CommentObjectCategory.registerEnum('DaShi.Enum.CommentObjectCategory', true);
}
