C# 클래스 EddiCompanionAppService.CompanionAppService

파일 보기 프로젝트 열기: cmdrmcdonald/EliteDangerousDataProvider

공개 프로퍼티들

프로퍼티 타입 설명
Credentials CompanionAppCredentials
CurrentState EddiDataDefinitions.State

공개 메소드들

메소드 설명
CommoditiesFromProfile ( dynamic json ) : List
CompartmentFromProfile ( dynamic json ) : Compartment
Confirm ( string code ) : void

Confirm a login. Throws an exception if it fails

HardpointFromProfile ( dynamic json ) : Hardpoint
Login ( ) : void

Log in. Throws an exception if it fails

ModuleFromProfile ( string name, Newtonsoft.Json.Linq.JObject json ) : Module
OutfittingFromProfile ( dynamic json ) : List
Profile ( ) : Profile
ProfileFromJson ( Newtonsoft.Json.Linq.JObject json ) : Profile

Create a profile given the results from a /profile call

ProfileFromJson ( string data ) : Profile

Create a profile given the results from a /profile call

ShipFromProfile ( dynamic json ) : Ship
ShipyardFromProfile ( dynamic json ) : List
ShipyardFromProfile ( dynamic json, Profile &profile ) : List

비공개 메소드들

메소드 설명
AddCompanionAppCookie ( CookieContainer cookies, CompanionAppCredentials credentials ) : void
AddMachineIdCookie ( CookieContainer cookies, CompanionAppCredentials credentials ) : void
AddMachineTokenCookie ( CookieContainer cookies, CompanionAppCredentials credentials ) : void
AugmentCmdrInfo ( Commander cmdr ) : void
AugmentShipInfo ( Ship ship, List storedShips ) : void
CompanionAppService ( ) : EddiDataDefinitions
GetRequest ( string url ) : HttpWebRequest
GetResponse ( HttpWebRequest request ) : HttpWebResponse
UpdateCredentials ( HttpWebResponse response ) : void
getResponseData ( HttpWebResponse response ) : string
obtainProfile ( ) : string
relogin ( ) : void

메소드 상세

CommoditiesFromProfile() 공개 정적인 메소드

public static CommoditiesFromProfile ( dynamic json ) : List
json dynamic
리턴 List

CompartmentFromProfile() 공개 정적인 메소드

public static CompartmentFromProfile ( dynamic json ) : Compartment
json dynamic
리턴 EddiDataDefinitions.Compartment

Confirm() 공개 메소드

Confirm a login. Throws an exception if it fails
public Confirm ( string code ) : void
code string
리턴 void

HardpointFromProfile() 공개 정적인 메소드

public static HardpointFromProfile ( dynamic json ) : Hardpoint
json dynamic
리턴 EddiDataDefinitions.Hardpoint

Login() 공개 메소드

Log in. Throws an exception if it fails
public Login ( ) : void
리턴 void

ModuleFromProfile() 공개 정적인 메소드

public static ModuleFromProfile ( string name, Newtonsoft.Json.Linq.JObject json ) : Module
name string
json Newtonsoft.Json.Linq.JObject
리턴 EddiDataDefinitions.Module

OutfittingFromProfile() 공개 정적인 메소드

public static OutfittingFromProfile ( dynamic json ) : List
json dynamic
리턴 List

Profile() 공개 메소드

public Profile ( ) : Profile
리턴 Profile

ProfileFromJson() 공개 정적인 메소드

Create a profile given the results from a /profile call
public static ProfileFromJson ( Newtonsoft.Json.Linq.JObject json ) : Profile
json Newtonsoft.Json.Linq.JObject
리턴 Profile

ProfileFromJson() 공개 정적인 메소드

Create a profile given the results from a /profile call
public static ProfileFromJson ( string data ) : Profile
data string
리턴 Profile

ShipFromProfile() 공개 정적인 메소드

public static ShipFromProfile ( dynamic json ) : Ship
json dynamic
리턴 EddiDataDefinitions.Ship

ShipyardFromProfile() 공개 정적인 메소드

public static ShipyardFromProfile ( dynamic json ) : List
json dynamic
리턴 List

ShipyardFromProfile() 공개 정적인 메소드

public static ShipyardFromProfile ( dynamic json, Profile &profile ) : List
json dynamic
profile Profile
리턴 List

프로퍼티 상세

Credentials 공개적으로 프로퍼티

public CompanionAppCredentials,EddiCompanionAppService Credentials
리턴 CompanionAppCredentials

CurrentState 공개적으로 프로퍼티

public State,EddiDataDefinitions CurrentState
리턴 EddiDataDefinitions.State