Ejemplo n.º 1
0
 /// <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)
 {
 }
Ejemplo n.º 2
0
 protected override IRacesClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Races;
Ejemplo n.º 3
0
 /// <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)
 {
 }
Ejemplo n.º 4
0
 protected override IWvwMatchesStatsClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Wvw.Matches.Stats;
Ejemplo n.º 5
0
 protected override ITraitsClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Traits;
Ejemplo n.º 6
0
 /// <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;
 }
Ejemplo n.º 7
0
 /// <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)
 {
 }
Ejemplo n.º 8
0
 /// <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)
 {
 }
Ejemplo n.º 9
0
 protected override ICharactersIdSpecializationsClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Characters["Bob"].Specializations;
Ejemplo n.º 10
0
 protected abstract T CreateClient(IGw2Client gw2Client);
Ejemplo n.º 11
0
 protected override ILegendaryArmoryClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.LegendaryArmory;
Ejemplo n.º 12
0
 /// <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)
 {
 }
Ejemplo n.º 13
0
 /// <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)
 {
 }
Ejemplo n.º 14
0
 /// <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)
 {
 }
Ejemplo n.º 15
0
 protected override IMailCarriersClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.MailCarriers;
Ejemplo n.º 16
0
 protected override ICommerceTransactionsCurrentBuysClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Commerce.Transactions.Current.Buys;
Ejemplo n.º 17
0
 protected override IAccountWalletClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Account.Wallet;
Ejemplo n.º 18
0
 /// <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)
 {
 }
Ejemplo n.º 19
0
 /// <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)
 {
 }
Ejemplo n.º 20
0
 /// <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)
 {
 }
Ejemplo n.º 21
0
 /// <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);
 }
Ejemplo n.º 22
0
 /// <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);
 }
Ejemplo n.º 23
0
 /// <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)
 {
 }
Ejemplo n.º 24
0
 public RenderUrlTests()
 {
     this.client = Substitute.For <IGw2Client>();
     this.client.WebApi.Returns(Substitute.For <IGw2WebApiClient>());
     this.client.WebApi.Render.Returns(Substitute.For <IGw2WebApiRenderClient>());
 }
Ejemplo n.º 25
0
 /// <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)
 {
 }
Ejemplo n.º 26
0
 /// <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)
 {
 }
Ejemplo n.º 27
0
 protected override IMinisClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Minis;
Ejemplo n.º 28
0
 protected override IGuildIdRanksClient CreateClient(IGw2Client gw2Client) =>
 gw2Client.WebApi.V2.Guild["11111111-2222-3333-4444-555555555555"].Ranks;
Ejemplo n.º 29
0
 /// <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)
 {
 }
Ejemplo n.º 30
0
 /// <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;
 }