{"comment":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/comments/16580478","html_url":"https://github.com/ankidroid/Anki-Android/commit/7fdc70cc94051b6314a91b9928c4c1dfee9cb3ae#commitcomment-16580478","id":16580478,"user":{"login":"marcardar","id":409640,"avatar_url":"https://avatars.githubusercontent.com/u/409640?v=3","gravatar_id":"","url":"https://api.github.com/users/marcardar","html_url":"https://github.com/marcardar","followers_url":"https://api.github.com/users/marcardar/followers","following_url":"https://api.github.com/users/marcardar/following{/other_user}","gists_url":"https://api.github.com/users/marcardar/gists{/gist_id}","starred_url":"https://api.github.com/users/marcardar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcardar/subscriptions","organizations_url":"https://api.github.com/users/marcardar/orgs","repos_url":"https://api.github.com/users/marcardar/repos","events_url":"https://api.github.com/users/marcardar/events{/privacy}","received_events_url":"https://api.github.com/users/marcardar/received_events","type":"User","site_admin":false},"position":150,"line":602,"path":"api/src/main/java/com/ichi2/anki/api/AddContentApi.java","commit_id":"7fdc70cc94051b6314a91b9928c4c1dfee9cb3ae","created_at":"2016-03-09T04:33:29Z","updated_at":"2016-03-09T04:33:29Z","body":"The client also needs to know whether the Model flush() bug occurs in the provider.\r\n\r\nOn reflection, I think this style of feature-inspection can quickly get out of control. I would suggest a int getApiVersionCode() (intentionally named to avoid confusion with AnkiDroid app version code and avoid tying it to the provider spec code). The Api class-level doc would detail differences between each version.  "}}