whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
FlexApi
/
V2
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/twilio/sdk/src/Twilio/Rest/FlexApi/V2/WebChannelsOptions.php
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\FlexApi\V2; use Twilio\Options; use Twilio\Values; abstract class WebChannelsOptions { /** * @param string $chatFriendlyName The Conversation's friendly name * @param string $customerFriendlyName The Conversation participant's friendly * name * @param string $preEngagementData The pre-engagement data * @return CreateWebChannelsOptions Options builder */ public static function create(string $chatFriendlyName = Values::NONE, string $customerFriendlyName = Values::NONE, string $preEngagementData = Values::NONE): CreateWebChannelsOptions { return new CreateWebChannelsOptions($chatFriendlyName, $customerFriendlyName, $preEngagementData); } } class CreateWebChannelsOptions extends Options { /** * @param string $chatFriendlyName The Conversation's friendly name * @param string $customerFriendlyName The Conversation participant's friendly * name * @param string $preEngagementData The pre-engagement data */ public function __construct(string $chatFriendlyName = Values::NONE, string $customerFriendlyName = Values::NONE, string $preEngagementData = Values::NONE) { $this->options['chatFriendlyName'] = $chatFriendlyName; $this->options['customerFriendlyName'] = $customerFriendlyName; $this->options['preEngagementData'] = $preEngagementData; } /** * The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example. * * @param string $chatFriendlyName The Conversation's friendly name * @return $this Fluent Builder */ public function setChatFriendlyName(string $chatFriendlyName): self { $this->options['chatFriendlyName'] = $chatFriendlyName; return $this; } /** * The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example. * * @param string $customerFriendlyName The Conversation participant's friendly * name * @return $this Fluent Builder */ public function setCustomerFriendlyName(string $customerFriendlyName): self { $this->options['customerFriendlyName'] = $customerFriendlyName; return $this; } /** * The pre-engagement data. * * @param string $preEngagementData The pre-engagement data * @return $this Fluent Builder */ public function setPreEngagementData(string $preEngagementData): self { $this->options['preEngagementData'] = $preEngagementData; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $options = \http_build_query(Values::of($this->options), '', ' '); return '[Twilio.FlexApi.V2.CreateWebChannelsOptions ' . $options . ']'; } }
Copyright ©2021 || Defacer Indonesia