C# 클래스 DoubanFM.Core.UserAssistant

处理用户的登录、注销等请求
상속: System.Windows.DependencyObject
파일 보기 프로젝트 열기: LiteCoder/DoubanFM 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CurrentStateProperty System.Windows.DependencyProperty
IsLoggedOffProperty System.Windows.DependencyProperty
IsLoggedOnProperty System.Windows.DependencyProperty
IsLoggingOffProperty System.Windows.DependencyProperty
IsLoggingOnProperty System.Windows.DependencyProperty
LogOnFailedMessageProperty System.Windows.DependencyProperty
ShowLogOnFailedHintProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
Initialize ( ) : void

初始化用户状态

LogOff ( ) : void

注销

LogOn ( ) : void

登录

비공개 메소드들

메소드 설명
LogOnWithEmail ( string email, string password ) : DoubanFM.Core.Json.LogOnResult

使用邮箱登录

LogOnWithUsername ( string username, string password ) : DoubanFM.Core.Json.LogOnResult

使用用户名登录

RaiseCurrentStateChangedEvent ( State oldState, State newState ) : void
RaiseLogOffFailedEvent ( ) : void
RaiseLogOffSucceedEvent ( ) : void
RaiseLogOnFailedEvent ( ) : void
RaiseLogOnSucceedEvent ( ) : void
ResetUser ( ) : void

重置与用户有关的所有附加信息

UpdateUserInfo ( ) : bool

更新用户信息

UpdateWhenLogOn ( DoubanFM.Core.Json.LogOnResult result ) : void

更新验证码

根据douban.fm的主页的HTML代码更新登录状态

根据服务器返回的登录结果更新登录状态

메소드 상세

Initialize() 공개 메소드

初始化用户状态
public Initialize ( ) : void
리턴 void

LogOff() 공개 메소드

注销
public LogOff ( ) : void
리턴 void

LogOn() 공개 메소드

登录
public LogOn ( ) : void
리턴 void

프로퍼티 상세

CurrentStateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CurrentStateProperty
리턴 System.Windows.DependencyProperty

IsLoggedOffProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsLoggedOffProperty
리턴 System.Windows.DependencyProperty

IsLoggedOnProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsLoggedOnProperty
리턴 System.Windows.DependencyProperty

IsLoggingOffProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsLoggingOffProperty
리턴 System.Windows.DependencyProperty

IsLoggingOnProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsLoggingOnProperty
리턴 System.Windows.DependencyProperty

LogOnFailedMessageProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows LogOnFailedMessageProperty
리턴 System.Windows.DependencyProperty

ShowLogOnFailedHintProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ShowLogOnFailedHintProperty
리턴 System.Windows.DependencyProperty