/// <summary> /// Client used to access the Guild Wars 2 REST API. /// </summary> /// <param name="apiKey">Official API key provided from ArenaNet.</param> public GW2Client(string apiKey = null) { Achievements = new AchievementRepository(); Items = new ItemRepository(); Misc = new MiscRepository(); PvE = new PvERepository(); PvP = new PvPRepository(); Skills = new SkillRepository(); ApiKey = apiKey; Account = new AccountRepository(ApiKey); Characters = new CharacterRepository(ApiKey); Commerce = new CommerceRepository(ApiKey); Guilds = new GuildRepository(ApiKey); }
public CommerceController(CommerceRepository ec) { _ec = ec; }