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

Complete WorldState.Data models for the worldstate parser. #11

Open
8 of 20 tasks
Erlite opened this issue Nov 21, 2018 · 11 comments
Open
8 of 20 tasks

Complete WorldState.Data models for the worldstate parser. #11

Erlite opened this issue Nov 21, 2018 · 11 comments

Comments

@Erlite
Copy link
Member

Erlite commented Nov 21, 2018

All of these models are returned by the worldstate api at api.warframestat.us, so we'll need to make C# models for every item returned to be used when deserializing from the JSON results.

  • News
  • Events
  • Alerts
  • Sorties
  • Syndicate Missions
  • Fissures
  • Global Upgrades
  • Flash Sales
  • Invasions
  • Dark Sectors (don't think these are used anymore?)
  • Void Trader
  • Daily Deals
  • Simaris
  • Conclave Challenges
  • Persistent Enemies
  • ICycle interface for cycles like Earth, Cetus and Orb Vallis.
  • Earth Cycle
  • Cetus Cycle
  • Orb Vallis Cycle. Doesn't look like it's in the docs, but iirc it's been added to the api.
  • Construction Progress for Fomorians etc.

If I missed anything please let me know.

@Erlite Erlite self-assigned this Nov 21, 2018
@Erlite Erlite added the rewrite label Nov 21, 2018
@Erlite
Copy link
Member Author

Erlite commented Nov 21, 2018

Alerts should be done, created AlertMission and MissionReward. However it seems like the worldstate doesn't re-use models often between each route, only with a couple of exceptions, is there any reason for that? @TobiTenno

@TobiTenno
Copy link
Member

Because the data is pretty different between each route

@Erlite
Copy link
Member Author

Erlite commented Nov 22, 2018

Ah alright, well that's not too bad.

@TobiTenno
Copy link
Member

I've been pulling as many common fields into the base object, but it's pretty varied. I need to go through and clean up some of the responses like for Twitter. At some point, I'd like to write it in bicubic routes similar to what Nexus stats uses for their API that makes their docs largely auto-generated.

@Erlite
Copy link
Member Author

Erlite commented Nov 22, 2018

It's not a big problem, I'm just surprised DE didn't think about making their API cleaner in the first place.

@Erlite
Copy link
Member Author

Erlite commented Nov 22, 2018

Unable to do events for now since the docs say array of object and the api returns an empty array.

@TobiTenno
Copy link
Member

You can see the possible fields on the js repo in wfcd/warframe-worldstate-parser

@Erlite
Copy link
Member Author

Erlite commented Nov 23, 2018

I'll also make an interface for cycles.

@Erlite
Copy link
Member Author

Erlite commented Nov 23, 2018

Sorties are done.

@TobiTenno
Copy link
Member

oh, i have actual swagger docs now: swagger

@TobiTenno
Copy link
Member

this codegen might make it go a bit faster.

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

No branches or pull requests

2 participants