REST Resource: spaces.messages.reactions
Tài nguyên: Phản ứng
Thể hiện cảm xúc với một tin nhắn.
Biểu diễn dưới dạng JSON |
{
"name": string,
"user": {
object (User )
},
"emoji": {
object (Emoji )
}
} |
Trường |
name |
string
Giá trị nhận dạng. Tên tài nguyên của phản ứng. Định dạng spaces/{space}/messages/{message}/reactions/{reaction}
|
user |
object (User )
Chỉ có đầu ra. Người dùng đã tạo biểu tượng cảm xúc.
|
emoji |
object (Emoji )
Bắt buộc. Biểu tượng cảm xúc được dùng trong lượt phản ứng.
|
Phương thức |
|
Tạo một lượt thể hiện cảm xúc và thêm lượt thể hiện cảm xúc đó vào một tin nhắn. |
|
Xoá lượt thể hiện cảm xúc với một tin nhắn. |
|
Liệt kê các lượt bày tỏ cảm xúc với một tin nhắn. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-05 UTC."],[[["A Reaction represents a response to a message, containing information about the user, the emoji used, and a unique identifier."],["Reactions can be created, deleted, and listed using the provided API methods."],["The `user` field is output-only and indicates who created the reaction, while the `emoji` field is required and specifies the emoji used."]]],["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"]]