C# Class EddiCompanionAppService.CompanionAppService

Show file Open project: cmdrmcdonald/EliteDangerousDataProvider

Public Properties

Property Type Description
Credentials CompanionAppCredentials
CurrentState EddiDataDefinitions.State

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CommoditiesFromProfile() public static method

public static CommoditiesFromProfile ( dynamic json ) : List
json dynamic
return List

CompartmentFromProfile() public static method

public static CompartmentFromProfile ( dynamic json ) : Compartment
json dynamic
return EddiDataDefinitions.Compartment

Confirm() public method

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

HardpointFromProfile() public static method

public static HardpointFromProfile ( dynamic json ) : Hardpoint
json dynamic
return EddiDataDefinitions.Hardpoint

Login() public method

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

ModuleFromProfile() public static method

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

OutfittingFromProfile() public static method

public static OutfittingFromProfile ( dynamic json ) : List
json dynamic
return List

Profile() public method

public Profile ( ) : Profile
return Profile

ProfileFromJson() public static method

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

ProfileFromJson() public static method

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

ShipFromProfile() public static method

public static ShipFromProfile ( dynamic json ) : Ship
json dynamic
return EddiDataDefinitions.Ship

ShipyardFromProfile() public static method

public static ShipyardFromProfile ( dynamic json ) : List
json dynamic
return List

ShipyardFromProfile() public static method

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

Property Details

Credentials public property

public CompanionAppCredentials,EddiCompanionAppService Credentials
return CompanionAppCredentials

CurrentState public property

public State,EddiDataDefinitions CurrentState
return EddiDataDefinitions.State