{"action":"opened","issue":{"url":"https://api.github.com/repos/stephanenicolas/robospice/issues/411","labels_url":"https://api.github.com/repos/stephanenicolas/robospice/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/stephanenicolas/robospice/issues/411/comments","events_url":"https://api.github.com/repos/stephanenicolas/robospice/issues/411/events","html_url":"https://github.com/stephanenicolas/robospice/issues/411","id":63456724,"number":411,"title":"Pending Request and Notification","user":{"login":"anto2b","id":3892090,"avatar_url":"https://avatars.githubusercontent.com/u/3892090?v=3","gravatar_id":"","url":"https://api.github.com/users/anto2b","html_url":"https://github.com/anto2b","followers_url":"https://api.github.com/users/anto2b/followers","following_url":"https://api.github.com/users/anto2b/following{/other_user}","gists_url":"https://api.github.com/users/anto2b/gists{/gist_id}","starred_url":"https://api.github.com/users/anto2b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anto2b/subscriptions","organizations_url":"https://api.github.com/users/anto2b/orgs","repos_url":"https://api.github.com/users/anto2b/repos","events_url":"https://api.github.com/users/anto2b/events{/privacy}","received_events_url":"https://api.github.com/users/anto2b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-21T21:34:04Z","updated_at":"2015-03-21T21:34:04Z","closed_at":null,"body":"Hi,\r\n\r\nIn my application, I use the (amazing) library RoboSpice with Retrofit. \r\nI have an Activity where I execute dependent requests each other ie for example In my Request1Listener I call my Request2, in my Request2Listener I call Request 3 etc... I have 2 questions : \r\n\r\n1. How do I know that all of the request executed in my Activity is completed? I tried to check in every listener if the number of pending request is zero (getSpiceManager().getPendingRequestCount() == 0) but it doesn' work.\r\n\r\n2. If the user leaves the business for one reason or another, I would like to create a notification informing him of the progress of data with a percentage (I created the percentage calculation algorithm), and when all requests are completed (hence my question 1) I can also warn the user with a new notification.\r\n\r\nThank you in advance for your help and sorry for my english, I'm a French developer"}}