Skip to content

Commit eb945bd

Browse files
1 parent 619e764 commit eb945bd

3 files changed

Lines changed: 62 additions & 6 deletions

File tree

src/HangoutsChat/Annotation.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
class Annotation extends \Google\Model
2121
{
22+
protected $customEmojiMetadataType = CustomEmojiMetadata::class;
23+
protected $customEmojiMetadataDataType = '';
2224
/**
2325
* @var int
2426
*/
@@ -38,6 +40,20 @@ class Annotation extends \Google\Model
3840
protected $userMentionType = UserMentionMetadata::class;
3941
protected $userMentionDataType = '';
4042

43+
/**
44+
* @param CustomEmojiMetadata
45+
*/
46+
public function setCustomEmojiMetadata(CustomEmojiMetadata $customEmojiMetadata)
47+
{
48+
$this->customEmojiMetadata = $customEmojiMetadata;
49+
}
50+
/**
51+
* @return CustomEmojiMetadata
52+
*/
53+
public function getCustomEmojiMetadata()
54+
{
55+
return $this->customEmojiMetadata;
56+
}
4157
/**
4258
* @param int
4359
*/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\HangoutsChat;
19+
20+
class CustomEmojiMetadata extends \Google\Model
21+
{
22+
protected $customEmojiType = CustomEmoji::class;
23+
protected $customEmojiDataType = '';
24+
25+
/**
26+
* @param CustomEmoji
27+
*/
28+
public function setCustomEmoji(CustomEmoji $customEmoji)
29+
{
30+
$this->customEmoji = $customEmoji;
31+
}
32+
/**
33+
* @return CustomEmoji
34+
*/
35+
public function getCustomEmoji()
36+
{
37+
return $this->customEmoji;
38+
}
39+
}
40+
41+
// Adding a class alias for backwards compatibility with the previous class name.
42+
class_alias(CustomEmojiMetadata::class, 'Google_Service_HangoutsChat_CustomEmojiMetadata');

src/HangoutsChat/Resource/SpacesMessagesReactions.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@
3232
class SpacesMessagesReactions extends \Google\Service\Resource
3333
{
3434
/**
35-
* Creates a reaction and adds it to a message. Only unicode emojis are
36-
* supported. For an example, see [Add a reaction to a
37-
* message](https://developers.google.com/workspace/chat/create-reactions).
38-
* Requires [user
35+
* Creates a reaction and adds it to a message. For an example, see [Add a
36+
* reaction to a message](https://developers.google.com/workspace/chat/create-
37+
* reactions). Requires [user
3938
* authentication](https://developers.google.com/workspace/chat/authenticate-
4039
* authorize-chat-user). (reactions.create)
4140
*
@@ -53,8 +52,7 @@ public function create($parent, Reaction $postBody, $optParams = [])
5352
return $this->call('create', [$params], Reaction::class);
5453
}
5554
/**
56-
* Deletes a reaction to a message. Only unicode emojis are supported. For an
57-
* example, see [Delete a
55+
* Deletes a reaction to a message. For an example, see [Delete a
5856
* reaction](https://developers.google.com/workspace/chat/delete-reactions).
5957
* Requires [user
6058
* authentication](https://developers.google.com/workspace/chat/authenticate-

0 commit comments

Comments
 (0)