Spurrya / Calfit

3 stars 1 forks source link

Business logic for triggering notification #9

Open Spurrya opened 8 years ago

bhaanu77 commented 8 years ago

Logic for deciding whether it is right time to send a notification is described in this document https://docs.google.com/document/d/1JsmmmZlizBMxQSiev1ZlcbVLjkwlWHsmTm1JuVePnkg/edit# please write a function that decides whether it is a right time to show a reminder to user to take a break

Code from shebin for that is available here https://github.com/shebinmathew/node-js-sample/blob/master/index.js . Please note that this code did not use the parameter "Last time reminder was shown", because the specification did not include that at that time.