Example #1
0
        public CharacterLogic(HttpClient client, EsiConfig config, AuthorizedCharacterData data = null)
        {
            _client = client;
            _config = config;
            _data = data;

            if (data != null)
                character_id = data.CharacterID;
        }
Example #2
0
        public CorporationLogic(HttpClient client, EsiConfig config, AuthorizedCharacterData data = null)
        {
            _client = client;
            _config = config;
            _data   = data;

            if (data != null)
            {
                corporation_id = data.CorporationID;
            }
        }
Example #3
0
        public ContactsLogic(HttpClient client, EsiConfig config, AuthorizedCharacterData data = null)
        {
            _client = client;
            _config = config;
            _data   = data;

            if (_data != null)
            {
                character_id   = _data.CharacterID;
                corporation_id = _data.CorporationID;
                alliance_id    = _data.CorporationID;
            }
        }
Example #4
0
        public static IServiceCollection AddEsi(this IServiceCollection services, IConfiguration config)
        {
            services.AddEve(config);

            services.AddScoped <IApiConfig, EsiConfig>(a =>
            {
                EsiConfig esiConfig = new EsiConfig();
                config.Bind("EsiConfig", esiConfig);

                return(esiConfig);
            });
            services.AddScoped <API>();

            return(services);
        }
Example #5
0
 public UserInterfaceLogic(HttpClient client, EsiConfig config, AuthorizedCharacterData data = null)
 {
     _client = client;
     _config = config;
     _data   = data;
 }
Example #6
0
 public AllianceLogic(HttpClient client, EsiConfig config)
 {
     _client = client; _config = config;
 }
Example #7
0
 public DogmaLogic(HttpClient client, EsiConfig config)
 {
     _client = client; _config = config;
 }
Example #8
0
 public WarsLogic(HttpClient client, EsiConfig config)
 {
     _client = client; _config = config;
 }
Example #9
0
 public SovereigntyLogic(HttpClient client, EsiConfig config)
 {
     _client = client; _config = config;
 }
Example #10
0
 public IncursionsLogic(HttpClient client, EsiConfig config)
 {
     _client = client; _config = config;
 }