Ejemplo n.º 1
0
        public XIVApi(ICache cache, string apiKey = "")
        {
            Requesters.XIVApiRequester = new Requester(apiKey);
            var requester = Requesters.XIVApiRequester;

            Character = new CharacterEndpoint(requester, cache);
        }
Ejemplo n.º 2
0
        public XIVApi(IRequester requester, ICache cache = null)
        {
            if (requester == null)
            {
                throw new ArgumentNullException(nameof(requester));
            }

            _cache    = cache ?? new PassThroughCache();
            Character = new CharacterEndpoint(requester, _cache);
        }