C# 클래스 EDCompanionAPI.EliteCompanion

파일 보기 프로젝트 열기: Duke-Jones/ED-IBE

공개 메소드들

메소드 설명
CreateProfile ( string email, string password ) : void

Creates a user profile, which is stored on disk. Password will be encrypted using machine key. Created profile will be set as active profile.

DeleteProfile ( string email ) : void
GetProfileData ( bool force = false ) : ProfileResponse

Get json profile data for active profile. Will attempt login. It's only possible to get fresh data every 60 seconds

LoadProfile ( string email ) : bool

Loads a profile and sets it as active.

Login ( ) : LoginResponse

Logins active profile

RestTime ( ) : System.TimeSpan

returns the time until cache is no more valid

RestTimeReset ( ) : void

sets the cooldowntimer to "finished"

SubmitVerification ( string verificationCode ) : VerificationResponse

Use to submit verification code, which is sent as an email to the user on first log in or cookie has expired.

비공개 메소드들

메소드 설명
EliteCompanion ( ) : System
GetProfileDataInternal ( bool force ) : ProfileResponse
LoginInternal ( ) : LoginResponse
SubmitVerificationInternal ( string verificationCode ) : VerificationResponse

메소드 상세

CreateProfile() 공개 메소드

Creates a user profile, which is stored on disk. Password will be encrypted using machine key. Created profile will be set as active profile.
public CreateProfile ( string email, string password ) : void
email string Email of user
password string Password of user
리턴 void

DeleteProfile() 공개 메소드

public DeleteProfile ( string email ) : void
email string
리턴 void

GetProfileData() 공개 메소드

Get json profile data for active profile. Will attempt login. It's only possible to get fresh data every 60 seconds
public GetProfileData ( bool force = false ) : ProfileResponse
force bool
리턴 EDCompanionAPI.Models.ProfileResponse

LoadProfile() 공개 메소드

Loads a profile and sets it as active.
public LoadProfile ( string email ) : bool
email string Email of user
리턴 bool

Login() 공개 메소드

Logins active profile
public Login ( ) : LoginResponse
리턴 EDCompanionAPI.Models.LoginResponse

RestTime() 공개 메소드

returns the time until cache is no more valid
public RestTime ( ) : System.TimeSpan
리턴 System.TimeSpan

RestTimeReset() 공개 메소드

sets the cooldowntimer to "finished"
public RestTimeReset ( ) : void
리턴 void

SubmitVerification() 공개 메소드

Use to submit verification code, which is sent as an email to the user on first log in or cookie has expired.
public SubmitVerification ( string verificationCode ) : VerificationResponse
verificationCode string The five character code sent to the user
리턴 EDCompanionAPI.Models.VerificationResponse