Type.registerNamespace('EdJoy.Web.Service');
EdJoy.Web.Service.ShareService=function() {
EdJoy.Web.Service.ShareService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EdJoy.Web.Service.ShareService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EdJoy.Web.Service.ShareService._staticInstance.get_path();},
CheckBlogLogin:function(userName,userPwd,verifyCode,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="userPwd" type="String">System.String</param>
/// <param name="verifyCode" 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(), 'CheckBlogLogin',false,{userName:userName,userPwd:userPwd,verifyCode:verifyCode},succeededCallback,failedCallback,userContext); },
GetUserIdByUserName:function(userName,succeededCallback, failedCallback, userContext) {
/// <param name="userName" 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(), 'GetUserIdByUserName',false,{userName:userName},succeededCallback,failedCallback,userContext); },
CheckSubSiteLogin:function(userName,userPwd,verifyCode,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="userPwd" type="String">System.String</param>
/// <param name="verifyCode" 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(), 'CheckSubSiteLogin',false,{userName:userName,userPwd:userPwd,verifyCode:verifyCode},succeededCallback,failedCallback,userContext); },
CheckVerifyCode:function(code,succeededCallback, failedCallback, userContext) {
/// <param name="code" 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(), 'CheckVerifyCode',false,{code:code},succeededCallback,failedCallback,userContext); },
CheckBlogIsLogin: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(), 'CheckBlogIsLogin',false,{},succeededCallback,failedCallback,userContext); },
LogOut: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(), 'LogOut',false,{},succeededCallback,failedCallback,userContext); },
UpdateActiveUser:function(userId,succeededCallback, failedCallback, userContext) {
/// <param name="userId" 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(), 'UpdateActiveUser',false,{userId:userId},succeededCallback,failedCallback,userContext); },
CheckLoginStatus:function(blogId,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" 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(), 'CheckLoginStatus',false,{blogId:blogId},succeededCallback,failedCallback,userContext); }}
EdJoy.Web.Service.ShareService.registerClass('EdJoy.Web.Service.ShareService',Sys.Net.WebServiceProxy);
EdJoy.Web.Service.ShareService._staticInstance = new EdJoy.Web.Service.ShareService();
EdJoy.Web.Service.ShareService.set_path = function(value) {
EdJoy.Web.Service.ShareService._staticInstance.set_path(value); }
EdJoy.Web.Service.ShareService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return EdJoy.Web.Service.ShareService._staticInstance.get_path();}
EdJoy.Web.Service.ShareService.set_timeout = function(value) {
EdJoy.Web.Service.ShareService._staticInstance.set_timeout(value); }
EdJoy.Web.Service.ShareService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return EdJoy.Web.Service.ShareService._staticInstance.get_timeout(); }
EdJoy.Web.Service.ShareService.set_defaultUserContext = function(value) { 
EdJoy.Web.Service.ShareService._staticInstance.set_defaultUserContext(value); }
EdJoy.Web.Service.ShareService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return EdJoy.Web.Service.ShareService._staticInstance.get_defaultUserContext(); }
EdJoy.Web.Service.ShareService.set_defaultSucceededCallback = function(value) { 
 EdJoy.Web.Service.ShareService._staticInstance.set_defaultSucceededCallback(value); }
EdJoy.Web.Service.ShareService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return EdJoy.Web.Service.ShareService._staticInstance.get_defaultSucceededCallback(); }
EdJoy.Web.Service.ShareService.set_defaultFailedCallback = function(value) { 
EdJoy.Web.Service.ShareService._staticInstance.set_defaultFailedCallback(value); }
EdJoy.Web.Service.ShareService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return EdJoy.Web.Service.ShareService._staticInstance.get_defaultFailedCallback(); }
EdJoy.Web.Service.ShareService.set_path("/Service/ShareService.asmx");
EdJoy.Web.Service.ShareService.CheckBlogLogin= function(userName,userPwd,verifyCode,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="userPwd" type="String">System.String</param>
/// <param name="verifyCode" 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>
EdJoy.Web.Service.ShareService._staticInstance.CheckBlogLogin(userName,userPwd,verifyCode,onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.GetUserIdByUserName= function(userName,onSuccess,onFailed,userContext) {
/// <param name="userName" 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>
EdJoy.Web.Service.ShareService._staticInstance.GetUserIdByUserName(userName,onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.CheckSubSiteLogin= function(userName,userPwd,verifyCode,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="userPwd" type="String">System.String</param>
/// <param name="verifyCode" 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>
EdJoy.Web.Service.ShareService._staticInstance.CheckSubSiteLogin(userName,userPwd,verifyCode,onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.CheckVerifyCode= function(code,onSuccess,onFailed,userContext) {
/// <param name="code" 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>
EdJoy.Web.Service.ShareService._staticInstance.CheckVerifyCode(code,onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.CheckBlogIsLogin= 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>
EdJoy.Web.Service.ShareService._staticInstance.CheckBlogIsLogin(onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.LogOut= 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>
EdJoy.Web.Service.ShareService._staticInstance.LogOut(onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.UpdateActiveUser= function(userId,onSuccess,onFailed,userContext) {
/// <param name="userId" 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>
EdJoy.Web.Service.ShareService._staticInstance.UpdateActiveUser(userId,onSuccess,onFailed,userContext); }
EdJoy.Web.Service.ShareService.CheckLoginStatus= function(blogId,onSuccess,onFailed,userContext) {
/// <param name="blogId" 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>
EdJoy.Web.Service.ShareService._staticInstance.CheckLoginStatus(blogId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('EdJoy.Model');
if (typeof(EdJoy.Model.UserDetailInfo) === 'undefined') {
EdJoy.Model.UserDetailInfo=gtc("EdJoy.Model.UserDetailInfo");
EdJoy.Model.UserDetailInfo.registerClass('EdJoy.Model.UserDetailInfo');
}
Type.registerNamespace('EdJoy.BLLModel');
if (typeof(EdJoy.BLLModel.LoginStatusModel) === 'undefined') {
EdJoy.BLLModel.LoginStatusModel=gtc("EdJoy.BLLModel.LoginStatusModel");
EdJoy.BLLModel.LoginStatusModel.registerClass('EdJoy.BLLModel.LoginStatusModel');
}
