REST Resource: spaces.messages.reactions
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
المرجع: Reaction
تمثيل JSON |
{
"name": string,
"user": {
object (User )
},
"emoji": {
object (Emoji )
}
} |
الحقول |
name |
string
المعرّف اسم المورد للتفاعل تنسيق الملف: spaces/{space}/messages/{message}/reactions/{reaction}
|
user |
object (User )
النتائج فقط. المستخدِم الذي أنشأ التفاعل.
|
emoji |
object (Emoji )
مطلوب. الرمز التعبيري المستخدَم في التفاعل
|
الطُرق |
|
لإنشاء تفاعل وإضافته إلى رسالة |
|
حذف تفاعل مع رسالة |
|
يسرد التفاعلات مع رسالة. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eA Reaction represents a response to a message, containing information about the user, the emoji used, and a unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eReactions can be created, deleted, and listed using the provided API methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003euser\u003c/code\u003e field is output-only and indicates who created the reaction, while the \u003ccode\u003eemoji\u003c/code\u003e field is required and specifies the emoji used.\u003c/p\u003e\n"]]],["Reactions to messages are identified by a string name and include the user who created them and the emoji used. JSON format represents reactions with these fields. Core actions include: creating a reaction, which adds it to a message; deleting a reaction; and listing all reactions associated with a specific message. The identifier of a reaction follows a specific string pattern, specifying the space, message, and reaction involved.\n"],null,["# REST Resource: spaces.messages.reactions\n\n- [Resource: Reaction](#Reaction)\n - [JSON representation](#Reaction.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Reaction\n------------------\n\nA reaction to a message.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"user\": { object (/workspace/chat/api/reference/rest/v1/User) }, \"emoji\": { object (/workspace/chat/api/reference/rest/v1/Emoji) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}` |\n| `user` | `object (`[User](/workspace/chat/api/reference/rest/v1/User)`)` Output only. The user who created the reaction. |\n| `emoji` | `object (`[Emoji](/workspace/chat/api/reference/rest/v1/Emoji)`)` Required. The emoji used in the reaction. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------------|----------------------------------------------|\n| ### [create](/workspace/chat/api/reference/rest/v1/spaces.messages.reactions/create) | Creates a reaction and adds it to a message. |\n| ### [delete](/workspace/chat/api/reference/rest/v1/spaces.messages.reactions/delete) | Deletes a reaction to a message. |\n| ### [list](/workspace/chat/api/reference/rest/v1/spaces.messages.reactions/list) | Lists reactions to a message. |"]]