REST Resource: users.spaces
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع: SpaceReadState
حالت خواندن کاربر در یک فاصله، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود.
نمایندگی JSON |
---|
{
"name": string,
"lastReadTime": string
} |
فیلدها |
---|
name | string نام منبع وضعیت خواندن فضا. قالب: users/{user}/spaces/{space}/spaceReadState |
lastReadTime | string ( Timestamp format) اختیاری. زمانی که وضعیت خواندن فضای کاربر به روز شد. معمولاً این با مهر زمانی آخرین پیام خوانده شده یا مهر زمانی مشخص شده توسط کاربر برای علامت گذاری آخرین موقعیت خوانده شده در یک فاصله مطابقت دارد. |
روش ها |
---|
| جزئیات مربوط به وضعیت خوانده شده کاربر را در یک فضا باز می گرداند که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. |
| وضعیت خواندن کاربر را در یک فضا به روز می کند، که برای شناسایی پیام های خوانده شده و خوانده نشده استفاده می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003e\u003ccode\u003eSpaceReadState\u003c/code\u003e tracks a user's read progress within a Google Chat space, indicating which messages are read and unread.\u003c/p\u003e\n"],["\u003cp\u003eIt's represented in JSON format with a \u003ccode\u003ename\u003c/code\u003e field (identifying the user and space) and an optional \u003ccode\u003elastReadTime\u003c/code\u003e field (indicating the last read message or user-defined position).\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve and update a user's \u003ccode\u003eSpaceReadState\u003c/code\u003e using the \u003ccode\u003egetSpaceReadState\u003c/code\u003e and \u003ccode\u003eupdateSpaceReadState\u003c/code\u003e methods, respectively, allowing developers to manage read receipts and user progress within Chat spaces.\u003c/p\u003e\n"]]],["The `SpaceReadState` resource tracks a user's read status within a space. It's represented in JSON with a `name` string and an optional `lastReadTime` timestamp. The `name` specifies the resource path, while `lastReadTime` indicates the user's last read position. Key actions include retrieving read state details via `getSpaceReadState` and updating it through `updateSpaceReadState`, both helping to identify read and unread messages.\n"],null,["# REST Resource: users.spaces\n\n- [Resource: SpaceReadState](#SpaceReadState)\n - [JSON representation](#SpaceReadState.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: SpaceReadState\n------------------------\n\nA user's read state within a space, used to identify read and unread messages.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"name\": string, \"lastReadTime\": string } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState` |\n| `lastReadTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| ### [getSpaceReadState](/workspace/chat/api/reference/rest/v1/users.spaces/getSpaceReadState) | Returns details about a user's read state within a space, used to identify read and unread messages. |\n| ### [updateSpaceReadState](/workspace/chat/api/reference/rest/v1/users.spaces/updateSpaceReadState) | Updates a user's read state within a space, used to identify read and unread messages. |"]]