|
25 | 25 | * @method \void setAgencyConversationToken(?string $agencyConversationToken) |
26 | 26 | * @method \string|null getAgencyPendingActions() |
27 | 27 | * @method \void setAgencyPendingActions(?string $agencyPendingActions) |
| 28 | + * @method \int getIsRemembered() |
| 29 | + * @method \void setIsRemembered(int $isRemembered) |
| 30 | + * @method \int getIsSummaryUpToDate() |
| 31 | + * @method \void setIsSummaryUpToDate(int $isSummaryUpToDate) |
28 | 32 | */ |
29 | 33 | class Session extends Entity implements \JsonSerializable { |
30 | 34 | /** @var string */ |
@@ -100,24 +104,8 @@ public function jsonSerialize() { |
100 | 104 | 'agency_conversation_token' => $this->getAgencyConversationToken(), |
101 | 105 | 'agency_pending_actions' => $this->getAgencyPendingActions(), |
102 | 106 | 'summary' => $this->getSummary(), |
103 | | - 'is_summary_up_to_date' => $this->getIsSummaryUpToDate(), |
104 | | - 'is_remembered' => $this->getIsRemembered(), |
| 107 | + 'is_summary_up_to_date' => $this->getIsSummaryUpToDate() !== 0, |
| 108 | + 'is_remembered' => $this->getIsRemembered() !== 0, |
105 | 109 | ]; |
106 | 110 | } |
107 | | - |
108 | | - public function setIsSummaryUpToDate(bool $value): void { |
109 | | - $this->setter('isSummaryUpToDate', [$value ? 1 : 0]); |
110 | | - } |
111 | | - |
112 | | - public function setIsRemembered(bool $value): void { |
113 | | - $this->setter('isRemembered', [$value ? 1 : 0]); |
114 | | - } |
115 | | - |
116 | | - public function getIsSummaryUpToDate(): bool { |
117 | | - return $this->getter('isSummaryUpToDate') === 1; |
118 | | - } |
119 | | - |
120 | | - public function getIsRemembered(): bool { |
121 | | - return $this->getter('isRemembered') === 1; |
122 | | - } |
123 | 111 | } |
0 commit comments