forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserFeedback.php
More file actions
120 lines (115 loc) · 3.94 KB
/
Copy pathUserFeedback.php
File metadata and controls
120 lines (115 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UserFeedback File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\CallRecords\Model;
/**
* UserFeedback class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class UserFeedback extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the rating
* The rating provided by the user of this endpoint about the quality of this Session. Possible values are: notRated, bad, poor, fair, good, excellent, unknownFutureValue.
*
* @return UserFeedbackRating|null The rating
*/
public function getRating()
{
if (array_key_exists("rating", $this->_propDict)) {
if (is_a($this->_propDict["rating"], "\Microsoft\Graph\CallRecords\Model\UserFeedbackRating") || is_null($this->_propDict["rating"])) {
return $this->_propDict["rating"];
} else {
$this->_propDict["rating"] = new UserFeedbackRating($this->_propDict["rating"]);
return $this->_propDict["rating"];
}
}
return null;
}
/**
* Sets the rating
* The rating provided by the user of this endpoint about the quality of this Session. Possible values are: notRated, bad, poor, fair, good, excellent, unknownFutureValue.
*
* @param UserFeedbackRating $val The value to assign to the rating
*
* @return UserFeedback The UserFeedback
*/
public function setRating($val)
{
$this->_propDict["rating"] = $val;
return $this;
}
/**
* Gets the text
* The feedback text provided by the user of this endpoint for the session.
*
* @return string|null The text
*/
public function getText()
{
if (array_key_exists("text", $this->_propDict)) {
return $this->_propDict["text"];
} else {
return null;
}
}
/**
* Sets the text
* The feedback text provided by the user of this endpoint for the session.
*
* @param string $val The value of the text
*
* @return UserFeedback
*/
public function setText($val)
{
$this->_propDict["text"] = $val;
return $this;
}
/**
* Gets the tokens
* The set of feedback tokens provided by the user of this endpoint for the session. This is a set of Boolean properties. The property names should not be relied upon since they may change depending on what tokens are offered to the user.
*
* @return FeedbackTokenSet|null The tokens
*/
public function getTokens()
{
if (array_key_exists("tokens", $this->_propDict)) {
if (is_a($this->_propDict["tokens"], "\Microsoft\Graph\CallRecords\Model\FeedbackTokenSet") || is_null($this->_propDict["tokens"])) {
return $this->_propDict["tokens"];
} else {
$this->_propDict["tokens"] = new FeedbackTokenSet($this->_propDict["tokens"]);
return $this->_propDict["tokens"];
}
}
return null;
}
/**
* Sets the tokens
* The set of feedback tokens provided by the user of this endpoint for the session. This is a set of Boolean properties. The property names should not be relied upon since they may change depending on what tokens are offered to the user.
*
* @param FeedbackTokenSet $val The value to assign to the tokens
*
* @return UserFeedback The UserFeedback
*/
public function setTokens($val)
{
$this->_propDict["tokens"] = $val;
return $this;
}
}