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

A few more tweaks to CardSetApiClient #3

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

asimonov-im
Copy link
Contributor

Change API to specify set id as an unsigned integer.
Rename CardSetDataCache to Cache and make the class generic, so as not to hard code the key/value types.
Remove a few unimplemented methods added accidentally by VS.

@asimonov-im
Copy link
Contributor Author

I think specifying the set id as a uint is much safer and harder to misuse. The Vale API clearly also treats it as a numeric ID since the following are equivalent:
https://playartifact.com/cardset/00 and https://playartifact.com/cardset/0
https://playartifact.com/cardset/01 and https://playartifact.com/cardset/1

@MisterJimson
Copy link
Owner

I prefer to match the spec when sending the request at least, which is with the leading 0. I'm ok with the changing the signature to a uint though.

@asimonov-im
Copy link
Contributor Author

I modified CardSetInfoUrl as per your wishes.

Rename CardSetDataCache to Cache and make the class generic, so as not to hard code the key/value types.
Remove a few unimplemented methods added accidentally by VS.
@asimonov-im asimonov-im changed the title A few more tweaks A few more tweaks to CardSetApiClient Nov 16, 2018
@MisterJimson MisterJimson merged commit 14def3f into MisterJimson:master Nov 16, 2018
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.

None yet

2 participants