C# Класс EDCompanionAPI.EliteCompanion

Показать файл Открыть проект

Открытые методы

Метод Описание
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