REST Resource: users.spaces.threads
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: ThreadReadState
किसी थ्रेड में उपयोगकर्ता के पढ़े जाने की स्थिति. इसका इस्तेमाल, पढ़े गए और नहीं पढ़े गए मैसेज की पहचान करने के लिए किया जाता है.
JSON के काेड में दिखाना |
{
"name": string,
"lastReadTime": string
} |
फ़ील्ड |
name |
string
थ्रेड के पढ़े जाने की स्थिति के संसाधन का नाम. फ़ॉर्मैट: users/{user}/spaces/{space}/threads/{thread}/threadReadState
|
lastReadTime |
string (Timestamp format)
वह समय जब उपयोगकर्ता के थ्रेड को पढ़ने की स्थिति को अपडेट किया गया था. आम तौर पर, यह किसी थ्रेड में आखिरी बार पढ़े गए मैसेज के टाइमस्टैंप से मेल खाता है.
|
तरीके |
|
किसी थ्रेड में उपयोगकर्ता के पढ़े गए की स्थिति के बारे में जानकारी दिखाता है. इसका इस्तेमाल, पढ़े गए और नहीं पढ़े गए मैसेज की पहचान करने के लिए किया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThreadReadState resource indicates a user's read status within a specific thread, helping to distinguish between read and unread messages.\u003c/p\u003e\n"],["\u003cp\u003eIt is represented in JSON format with \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003elastReadTime\u003c/code\u003e fields, specifying the resource name and the timestamp of the last read message.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve details about a user's ThreadReadState using the \u003ccode\u003egetThreadReadState\u003c/code\u003e method to identify read and unread messages within a thread.\u003c/p\u003e\n"]]],["The core content defines the `ThreadReadState` resource, which tracks a user's read status within a thread. It's represented in JSON with `name` (resource identifier) and `lastReadTime` (timestamp of the last read message). The `getThreadReadState` method retrieves details about a user's read status, allowing identification of read and unread messages in a thread. `lastReadTime` reflects when the user's read state was last updated, typically matching the timestamp of the most recently read message.\n"],null,["# REST Resource: users.spaces.threads\n\n- [Resource: ThreadReadState](#ThreadReadState)\n - [JSON representation](#ThreadReadState.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: ThreadReadState\n-------------------------\n\nA user's read state within a thread, 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 thread read state. Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` |\n| `lastReadTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| ### [getThreadReadState](/workspace/chat/api/reference/rest/v1/users.spaces.threads/getThreadReadState) | Returns details about a user's read state within a thread, used to identify read and unread messages. |"]]