Advertisement
JuhaniTolvanen

format data deeplink

Mar 10th, 2021 (edited)
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.98 KB | None | 0 0
  1. {
  2.     "source":"NOTI",
  3.     "type":"SILENT",
  4.     "action":[{
  5.         "behavior":"SILENT",
  6.         "type":"NAVIGATION",
  7.         "routeName":"<route-name>",
  8.         "payload":{
  9.             "id":"<id>"
  10.         }
  11.     }]
  12. }
  13.  
  14. {
  15.   "source":"NOTI",
  16.   "type":"POPUP",
  17.   "title":"Đây là title",
  18.   "content": "Đây là content",
  19.   "imgUrl" : "<url-hinh-anh>",
  20.   "actionAxis": "vertical" | "horizontal",
  21.   "action":[
  22.         {
  23.             "behavior":"CTA",
  24.             "displayName":"Đây là button 1",
  25.             "color":"#87EB2D",
  26.             "style":"outlined" | "gradient" | "link",
  27.             "type":"NAVIGATION",
  28.             "routeName":"/reward/detail",
  29.             "payload":{
  30.                     "id":"603f06b6b28db796d2a2cb01"
  31.             }
  32.         },
  33.         {
  34.             "behavior":"CTA",
  35.             "displayName":"Đây là button 2",
  36.             "color":"#87EB2D",
  37.             "style":"outlined" | "gradient" | "link",
  38.             "type":"NAVIGATION",
  39.             "routeName":"/reward/detail",
  40.             "payload":{
  41.                     "id":"603f06b6b28db796d2a2cb01"
  42.             }
  43.         },
  44.   ]
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement