{"action":"opened","issue":{"url":"https://api.github.com/repos/jwvanderbeck/TestFlight/issues/9","labels_url":"https://api.github.com/repos/jwvanderbeck/TestFlight/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jwvanderbeck/TestFlight/issues/9/comments","events_url":"https://api.github.com/repos/jwvanderbeck/TestFlight/issues/9/events","html_url":"https://github.com/jwvanderbeck/TestFlight/issues/9","id":53965686,"number":9,"title":"Expand failure API to allow repairs to take time","user":{"login":"jwvanderbeck","id":161126,"avatar_url":"https://avatars.githubusercontent.com/u/161126?v=3","gravatar_id":"","url":"https://api.github.com/users/jwvanderbeck","html_url":"https://github.com/jwvanderbeck","followers_url":"https://api.github.com/users/jwvanderbeck/followers","following_url":"https://api.github.com/users/jwvanderbeck/following{/other_user}","gists_url":"https://api.github.com/users/jwvanderbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jwvanderbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwvanderbeck/subscriptions","organizations_url":"https://api.github.com/users/jwvanderbeck/orgs","repos_url":"https://api.github.com/users/jwvanderbeck/repos","events_url":"https://api.github.com/users/jwvanderbeck/events{/privacy}","received_events_url":"https://api.github.com/users/jwvanderbeck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jwvanderbeck/TestFlight/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-10T17:52:43Z","updated_at":"2015-01-10T17:52:43Z","closed_at":null,"body":"This should be easy to do.  Make AttempRepair() return a double instead of a bool.  -1 indicates failure to repair.  0 indicates repaired.  Any value above 0 indicates time to finish repairs.\r\n\r\nAdd new method GetTimeUntilRepairComplete() that returns the same information.  In this case  -1 would indicate that something happened during the repair time that caused a failure to repair, such as a prerequisite condition no longer being valid.\r\n\r\nThe MSD/FlightHUD will need to display a countdown when a part is being repaired, and the UI will need to adjust for this.  Might be able to put this in the tooltip, but not sure if that will be very good.  Need to think on it."}}