Marker
Represents the last read position within a user's timelines.
Example
{
"home": {
"last_read_id": "103194548672408537",
"version": 462,
"updated_at": "2019-11-24T19:39:39.337Z"
},
"notifications": {
"last_read_id": "35050107",
"version": 356,
"updated_at": "2019-11-25T13:47:31.333Z"
}
}
Base attributes
home
Description: Information about the user’s position in the home timeline.
Type: Hash
実装履歴: Added in 3.0.0
notifications
Description: Information about the user’s position in their notifications.
Type: Hash
実装履歴: Added in 3.0.0
Nested attributes
last_read_id
Description: The ID of the most recently viewed entity.
Type: String (cast from integer but not guaranteed to be a number)
実装履歴: Added in 3.0.0
updated_at
Description: The timestamp of when the marker was set.
Type: String (ISO 8601 Datetime)
実装履歴: Added in 3.0.0
version
Description: Used for locking to prevent write conflicts.
Type: Number
実装履歴: Added in 3.0.0
See also
markers app/serializers/rest/marker_serializer.rb
最終更新 May 17, 2020 · このページを改善する
他の言語:
English