Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TFT Endpoints : Issue#640 #645

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Added TFT Endpoints : Issue#640 #645

wants to merge 4 commits into from

Conversation

nolanbradshaw
Copy link

Added the endpoints needed for tft. Endpoints were added for League, Match, and Summoner.
Also, added unit tests for the endpoints (minus match endpoints)

@nolanbradshaw nolanbradshaw changed the title Added TFT Endpoints Added TFT Endpoints : Issue#640 Jan 29, 2020
@JanOuborny
Copy link
Contributor

Thank you for you first contribution! The code looks good 👍
I have a change request regarding the structure of the code:

Please create new endpoints for the added methods, i.e. add:

  • TftLeagueEndpint
  • TftMatchEndpint
  • TftSummonerEndpint

with the corresponding interfaces, so that the endpoint classes match the API sections in Riot's documentation.

those endpoints.Also, moved unit tests and created classes for tft
endpoints to ensure maintainability
@nolanbradshaw
Copy link
Author

Sounds good. I'll have those changes made pushed tomorrow morning. If you have any other issues I can work on let me know!

@kwiatkos0
Copy link

Hello, I'm sorry didn't saw this pull request and worked last few theys on my changes. I hope I added something new 👍

…dpoint and ISummonerEndpoint to preserve file history.
RiotSharp.Test/RiotApiTest.cs Outdated Show resolved Hide resolved
RiotSharp/Endpoints/TftMatchEndpoint/TftMatch.cs Outdated Show resolved Hide resolved
RiotSharp/Endpoints/TftMatchEndpoint/TftMatchEndpoint.cs Outdated Show resolved Hide resolved
/// </summary>
[JsonProperty("summonerLevel")]
public long Level { get; set; }
/// <summary>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 missing an empty line

additionally, how is this decoded?

@nolanbradshaw
Copy link
Author

Fixed the issues pointed out by @BenFradet in latest commit.

@Oucema90 Oucema90 mentioned this pull request Feb 12, 2020
3 tasks
Copy link
Owner

@BenFradet BenFradet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 , did you end up creating a separate issue for the tests you had marked as ignored?

@BenFradet BenFradet requested a review from JanOuborny February 19, 2020 16:10
@nolanbradshaw
Copy link
Author

👍 , did you end up creating a separate issue for the tests you had marked as ignored?
Yes just created them, Issue #653!

Copy link
Contributor

@JanOuborny JanOuborny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add initializations for the endpoints in the RiotApi constructors here and below.

/// <param name="region">Region in which the summoner is.</param>
/// <param name="puuid"></param>
/// <returns>A list of strings</returns>
Task<List<string>> GetTftMatchIdsByPuuidAsync(Region region, string puuid, int count = 20);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove ByPuuid from the naming to match the naming of the match endpoint.

/// <param name="region">Region in which the summoner is.</param>
/// <param name="matchId">The match id for the match wanting to be retrieved</param>
/// <returns><see cref="Match"> object </returns>
Task<TftMatch> GetTftMatchByIdAsync(Region region, string matchId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here with ById

}

return match;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove newline


namespace RiotSharp.Endpoints.TftMatchEndpoint
{
public class TftMatch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class does not match the schema of Riot's api resonse. You might have forgotten to include your changes for this one.

@fetonin
Copy link

fetonin commented Feb 20, 2021

Hello, is this working? Can I put it on vb.net? Here is giving error (tftmatchendpoint)

@tVoss
Copy link

tVoss commented Oct 16, 2023

Is there a timeline for merging and deploying these changes? I just about implemented the whole TFT API until I saw it's already in this PR. This would be very useful for a project I'm working on, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants