PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
Conversations
/
V1
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Conversations\V1; use Twilio\Options; use Twilio\Values; abstract class ConfigurationOptions { /** * @param string $defaultChatServiceSid The SID of the default Conversation * Service that every new conversation * will be associated with. * @param string $defaultMessagingServiceSid The SID of the default Messaging * Service that every new * conversation will be associated * with. * @param string $defaultInactiveTimer Default ISO8601 duration when * conversation will be switched to * `inactive` state. * @param string $defaultClosedTimer Default ISO8601 duration when conversation * will be switched to `closed` state. * @return UpdateConfigurationOptions Options builder */ public static function update(string $defaultChatServiceSid = Values::NONE, string $defaultMessagingServiceSid = Values::NONE, string $defaultInactiveTimer = Values::NONE, string $defaultClosedTimer = Values::NONE): UpdateConfigurationOptions { return new UpdateConfigurationOptions($defaultChatServiceSid, $defaultMessagingServiceSid, $defaultInactiveTimer, $defaultClosedTimer); } } class UpdateConfigurationOptions extends Options { /** * @param string $defaultChatServiceSid The SID of the default Conversation * Service that every new conversation * will be associated with. * @param string $defaultMessagingServiceSid The SID of the default Messaging * Service that every new * conversation will be associated * with. * @param string $defaultInactiveTimer Default ISO8601 duration when * conversation will be switched to * `inactive` state. * @param string $defaultClosedTimer Default ISO8601 duration when conversation * will be switched to `closed` state. */ public function __construct(string $defaultChatServiceSid = Values::NONE, string $defaultMessagingServiceSid = Values::NONE, string $defaultInactiveTimer = Values::NONE, string $defaultClosedTimer = Values::NONE) { $this->options['defaultChatServiceSid'] = $defaultChatServiceSid; $this->options['defaultMessagingServiceSid'] = $defaultMessagingServiceSid; $this->options['defaultInactiveTimer'] = $defaultInactiveTimer; $this->options['defaultClosedTimer'] = $defaultClosedTimer; } /** * The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. * * @param string $defaultChatServiceSid The SID of the default Conversation * Service that every new conversation * will be associated with. * @return $this Fluent Builder */ public function setDefaultChatServiceSid(string $defaultChatServiceSid): self { $this->options['defaultChatServiceSid'] = $defaultChatServiceSid; return $this; } /** * The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. * * @param string $defaultMessagingServiceSid The SID of the default Messaging * Service that every new * conversation will be associated * with. * @return $this Fluent Builder */ public function setDefaultMessagingServiceSid(string $defaultMessagingServiceSid): self { $this->options['defaultMessagingServiceSid'] = $defaultMessagingServiceSid; return $this; } /** * Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * * @param string $defaultInactiveTimer Default ISO8601 duration when * conversation will be switched to * `inactive` state. * @return $this Fluent Builder */ public function setDefaultInactiveTimer(string $defaultInactiveTimer): self { $this->options['defaultInactiveTimer'] = $defaultInactiveTimer; return $this; } /** * Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. * * @param string $defaultClosedTimer Default ISO8601 duration when conversation * will be switched to `closed` state. * @return $this Fluent Builder */ public function setDefaultClosedTimer(string $defaultClosedTimer): self { $this->options['defaultClosedTimer'] = $defaultClosedTimer; 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.Conversations.V1.UpdateConfigurationOptions ' . $options . ']'; } }
[-] CredentialOptions.php
[edit]
[-] ConfigurationList.php
[edit]
[-] ParticipantConversationPage.php
[edit]
[-] ConversationList.php
[edit]
[-] ServicePage.php
[edit]
[+]
..
[-] ConfigurationContext.php
[edit]
[-] CredentialContext.php
[edit]
[-] ServiceList.php
[edit]
[-] RoleList.php
[edit]
[+]
Configuration
[-] ConversationInstance.php
[edit]
[-] UserPage.php
[edit]
[+]
Conversation
[-] ConfigurationInstance.php
[edit]
[-] RoleInstance.php
[edit]
[-] ParticipantConversationList.php
[edit]
[-] CredentialInstance.php
[edit]
[-] ConversationContext.php
[edit]
[-] CredentialPage.php
[edit]
[-] ParticipantConversationInstance.php
[edit]
[-] UserList.php
[edit]
[-] UserInstance.php
[edit]
[-] ConfigurationPage.php
[edit]
[-] ConfigurationOptions.php
[edit]
[-] ConversationPage.php
[edit]
[-] ParticipantConversationOptions.php
[edit]
[-] RolePage.php
[edit]
[-] ServiceInstance.php
[edit]
[+]
User
[-] UserOptions.php
[edit]
[-] RoleContext.php
[edit]
[+]
Service
[-] CredentialList.php
[edit]
[-] ConversationOptions.php
[edit]
[-] UserContext.php
[edit]
[-] ServiceContext.php
[edit]