jira-28 notification

This commit is contained in:
jain
2023-07-26 16:38:36 +05:30
parent bca0d8d49b
commit 2b6e943d8c
8 changed files with 103 additions and 32 deletions

View File

@ -1,10 +1,19 @@
"""
notification constants file
"""
REGISTRATION = 1
TASK_CREATED = 2
INVITED_GUARDIAN = 3
APPROVED_JUNIOR = 4
REFERRAL_POINTS = 5
TASK_POINTS = 6
TASK_REJECTED = 7
SKIPPED_PROFILE_SETUP = 8
TASK_SUBMITTED = 9
TASK_ACTION = 10
LEADERBOARD_RANKING = 11
REMOVE_JUNIOR = 12
TEST_NOTIFICATION = 99
NOTIFICATION_DICT = {
@ -22,7 +31,39 @@ NOTIFICATION_DICT = {
},
APPROVED_JUNIOR: {
"title": "Approve junior",
"body": "You have request for associate the junior"
"body": "You have request from junior to associate with you"
},
REFERRAL_POINTS: {
"title": "Earn Referral points",
"body": "You earn 5 points for referral."
},
TASK_POINTS: {
"title": "Earn Task points!",
"body": "You earn 5 points for task."
},
TASK_REJECTED: {
"title": "Task rejected!",
"body": "Your task has been rejected."
},
SKIPPED_PROFILE_SETUP: {
"title": "Skipped profile setup!",
"body": "Your guardian has been setup your profile."
},
TASK_SUBMITTED: {
"title": "Task submitted!",
"body": "Your task has been submitted successfully."
},
TASK_ACTION: {
"title": "Task approval!",
"body": "You have request for task approval."
},
LEADERBOARD_RANKING: {
"title": "Leader board rank!",
"body": "Your rank is ."
},
REMOVE_JUNIOR: {
"title": "Disassociate by guardian!",
"body": "Your guardian disassociate you ."
},
TEST_NOTIFICATION: {
"title": "Test Notification",