-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] notification standards #19
base: main
Are you sure you want to change the base?
Conversation
"item": { | ||
"type": "social", | ||
"path": "alice.near/post/main", | ||
"blockHeight": 88260018, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Item
shouldn't include the message. Item is more like a pointer. It provides enough information to identify the given item. E.g. for a post it indicates the following:
- type = "social" - means it belongs to social DB
- path = "alice.near/post/main" - absolute path the item, in this case for
alice.near
- blockHeight = 88260018 - the block height when the information at the path above is written, if omitted it means the same as the notification (for example when you post smth, you don't have a block height until it's saved).
"type": "social", | ||
"path": "alice.near/post/main", | ||
"blockHeight": 88260018, | ||
"message": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message can be included as part of the value
, but not item
"value": { | ||
"type": "alert", | ||
"item": { | ||
"type": "social", | ||
"path": "https://near.gaming", | ||
"blockHeight": 88260018, | ||
"message": "It's your turn" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a schema for items yet, but we should add it. Example for url below:
"value": { | |
"type": "alert", | |
"item": { | |
"type": "social", | |
"path": "https://near.gaming", | |
"blockHeight": 88260018, | |
"message": "It's your turn" | |
} | |
} | |
"value": { | |
"type": "alert", | |
"item": { | |
"type": "url", | |
"path": "https://near.gaming", | |
}, | |
"message": "It's your turn" | |
} |
No description provided.