/// <summary> /// Creates a new <see cref="AccountMailCarriersClient"/> that is used for the API v2 account mail carriers endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <see langword="null"/>.</exception> protected internal AccountMailCarriersClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
protected override IRacesClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Races;
/// <summary> /// Creates a new <see cref="EmotesClient"/> that is used for the API v2 emotes endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <see langword="null"/>.</exception> protected internal EmotesClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
protected override IWvwMatchesStatsClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Wvw.Matches.Stats;
protected override ITraitsClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Traits;
/// <summary> /// Creates a new base guild subendpoint client. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <param name="guildId">The guild id.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected BaseGuildSubClient(IConnection connection, IGw2Client gw2Client, Guid guildId) : base(connection, gw2Client, guildId.ToString()) { this.GuildId = guildId; }
/// <summary> /// Creates a new <see cref="AccountMasteryPointsClient"/> that is used for the API v2 account mastery points endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <see langword="null"/>.</exception> protected internal AccountMasteryPointsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="GuildPermissionsClient"/> that is used for the API v2 guild permissions endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal GuildPermissionsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
protected override ICharactersIdSpecializationsClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Characters["Bob"].Specializations;
protected abstract T CreateClient(IGw2Client gw2Client);
protected override ILegendaryArmoryClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.LegendaryArmory;
/// <summary> /// Creates a new <see cref="HomeCatsClient"/> that is used for the API v2 home cats endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal HomeCatsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="StoriesSeasonsClient"/> that is used for the API v2 stories seasons endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal StoriesSeasonsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="CharactersIdRecipesClient"/> that is used for the API v2 characters id recipes endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="characterName">The character name.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/>, <paramref name="gw2Client"/> or <paramref name="characterName"/> is <see langword="null"/>.</exception> protected internal CharactersIdRecipesClient(IConnection connection, IGw2Client gw2Client, string characterName) : base(connection, gw2Client, characterName) { }
protected override IMailCarriersClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.MailCarriers;
protected override ICommerceTransactionsCurrentBuysClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Commerce.Transactions.Current.Buys;
protected override IAccountWalletClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Account.Wallet;
/// <summary> /// Creates a new <see cref="AccountMaterialsClient"/> that is used for the API v2 account materials endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected internal AccountMaterialsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="AccountWorldBossesClient"/> that is used for the API v2 account worldbosses endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected internal AccountWorldBossesClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="AchievementsGroupsClient"/> that is used for the API v2 achievements groups endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected internal AchievementsGroupsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="MountsClient"/> that is used for the API v2 mounts endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal MountsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { this.skins = new MountsSkinsClient(connection, gw2Client); this.types = new MountsTypesClient(connection, gw2Client); }
/// <summary> /// Creates a new <see cref="CommerceTransactionsHistoryClient"/> that is used for the API v2 commerce transactions history endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <c>null</c>.</exception> protected internal CommerceTransactionsHistoryClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { this.buys = new CommerceTransactionsHistoryBuysClient(connection, gw2Client); this.sells = new CommerceTransactionsHistorySellsClient(connection, gw2Client); }
/// <summary> /// Creates a new <see cref="EmblemBackgroundsClient"/> that is used for the API v2 emblem backgrounds endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal EmblemBackgroundsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
public RenderUrlTests() { this.client = Substitute.For <IGw2Client>(); this.client.WebApi.Returns(Substitute.For <IGw2WebApiClient>()); this.client.WebApi.Render.Returns(Substitute.For <IGw2WebApiRenderClient>()); }
/// <summary> /// Creates a new <see cref="PvpStandingsClient"/> that is used for the API v2 PvP standings endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <see langword="null"/>.</exception> protected internal PvpStandingsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
/// <summary> /// Creates a new <see cref="DungeonsClient"/> that is used for the API v2 dungeons endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c>.</exception> protected internal DungeonsClient(IConnection connection, IGw2Client gw2Client) : base(connection, gw2Client) { }
protected override IMinisClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Minis;
protected override IGuildIdRanksClient CreateClient(IGw2Client gw2Client) => gw2Client.WebApi.V2.Guild["11111111-2222-3333-4444-555555555555"].Ranks;
/// <summary> /// Creates a new <see cref="GuildIdTreasuryClient"/> that is used for the API v2 guild id treasury endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <param name="guildId">The guild id.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <see langword="null"/>.</exception> protected internal GuildIdTreasuryClient(IConnection connection, IGw2Client gw2Client, Guid guildId) : base(connection, gw2Client, guildId) { }
/// <summary> /// Creates a new <see cref="ContinentsFloorsRegionsMapsPoisClient"/> that is used for the API v2 characters floors regions maps poins of interest endpoint. /// </summary> /// <param name="connection">The connection used to make requests, see <see cref="IConnection"/>.</param> /// <param name="gw2Client">The Guild Wars 2 client.</param> /// <param name="continentId">The continent id.</param> /// <param name="floorId">The floor id.</param> /// <param name="regionId">The region id.</param> /// <param name="mapId">The map id.</param> /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="gw2Client"/> is <see langword="null"/>.</exception> protected internal ContinentsFloorsRegionsMapsPoisClient(IConnection connection, IGw2Client gw2Client, int continentId, int floorId, int regionId, int mapId) : base(connection, gw2Client, continentId.ToString(CultureInfo.InvariantCulture), floorId.ToString(CultureInfo.InvariantCulture), regionId.ToString(CultureInfo.InvariantCulture), mapId.ToString(CultureInfo.InvariantCulture)) { this.continentId = continentId; this.floorId = floorId; this.regionId = regionId; this.mapId = mapId; }