more api functions :) #15

Merged
merged 1 commit into from Jul 20, 2014

Conversation

Projects
None yet
2 participants
@negue
Contributor

negue commented Jul 20, 2014

closes #7 #8 #9

ADD API Calls with tests:

  • GET /user
  • POST /clear-completed
  • PUT /task/{id}
  • DELETE /task/{id}

FIXES:

  • Task.Challenges is a Challange not a List (see habitrpg/src/model/task.js)

Changes:

  • DateTime Asserts in Test, sometimes the calls had a millisecond differences, and then the tests failed because of that, I had to replace these tests
  • GetTasksAsync now returns a habit/todo/daily/reward class instead of "task" ( see TaskConverter)
  • History.Date need to be unix timestamps and not full readable Datetime like the other DateTime Properties, so I needed an other Converter just for this
  • HabitRPGClient now also uses /api/v2/ as BaseAddress so that all calls don't have to add them

I hope I didn't forgot something.

more api functions :)
change api keys

@negue negue changed the title from more api functions :) - also closes #7 #8 #9 to more api functions :) Jul 20, 2014

marska added a commit that referenced this pull request Jul 20, 2014

@marska marska merged commit 3d63623 into marska:master Jul 20, 2014

@marska

This comment has been minimized.

Show comment
Hide comment
@marska

marska Jul 20, 2014

Owner

Great!

Owner

marska commented Jul 20, 2014

Great!

@marska

This comment has been minimized.

Show comment
Hide comment
@marska

marska Jul 20, 2014

Owner

New nuget package created v2.0.0.9.

Owner

marska commented Jul 20, 2014

New nuget package created v2.0.0.9.

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