Confirmed users
632
edits
No edit summary |
|||
Line 282: | Line 282: | ||
The unencrypted format stored in context.value is a JSON object. The intention is that the fields will grow over time, so implementations should take care not to remove unknown fields when they modify context information. For future expandability, care should be taken to ensure that elements that might conceivably appear more than once are stored as arrays (even if the current design only calls for one instance). As with unknown fields, implementations that expect only one element in an array should preserve the other values. | The unencrypted format stored in context.value is a JSON object. The intention is that the fields will grow over time, so implementations should take care not to remove unknown fields when they modify context information. For future expandability, care should be taken to ensure that elements that might conceivably appear more than once are stored as arrays (even if the current design only calls for one instance). As with unknown fields, implementations that expect only one element in an array should preserve the other values. | ||
For the fields currently defined in the initial version of room context, the structure will look like this: | |||
{ | |||
"roomName": "Birthday gift discussion", | |||
"urls": ["https://www.amazon.com/gp/registry/registry.html"], // NOTE: Array | |||
"thumbnail": "'''data: url goes here; implementation should handle other URL schemes gracefully'''", | |||
"description": "Let's get together to talk about what we're going to get the twins for their birthday this year" | |||
} | |||
[[Category:Firefox Hello]] | [[Category:Firefox Hello]] |