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

Adding duration property for Item model. #34

Closed
AhmedZaki99 opened this issue Sep 28, 2023 · 1 comment · Fixed by #35
Closed

Adding duration property for Item model. #34

AhmedZaki99 opened this issue Sep 28, 2023 · 1 comment · Fixed by #35

Comments

@AhmedZaki99
Copy link
Contributor

The new duration feature was announced in July this year, and since then, tasks returned by the API include a duration property for paid users like this:

"duration": {
    "amount": 15,
    "unit": "minute"
}

I think it's easy to support (correct me if I'm wrong). If we add a new property in the Item model then JSON mapping will probably do the rest. Similar to the DueDate object.

@AhmedZaki99
Copy link
Contributor Author

I've made the proposed change and tested it on my fork, and it's working fine both ways (read and write).

I will create a pull request for it and link it to this issue.

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 a pull request may close this issue.

1 participant