options['uniqueName'] = $uniqueName; $this->options['status'] = $status; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * The Status of this Session. One of `in-progress`, `closed`, `failed`, `unknown` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Proxy.V1.ReadSessionOptions ' . implode(' ', $options) . ']'; } } class CreateSessionOptions extends Options { /** * @param string $uniqueName A unique, developer assigned name of this Session. * @param \DateTime $dateExpiry The date this Session was expiry * @param integer $ttl TTL for a Session, in seconds. * @param string $mode The Mode of this Session * @param string $status The Status of this Session * @param array $participants A list of phone numbers to add to this Session. */ public function __construct($uniqueName = Values::NONE, $dateExpiry = Values::NONE, $ttl = Values::NONE, $mode = Values::NONE, $status = Values::NONE, $participants = Values::NONE) { $this->options['uniqueName'] = $uniqueName; $this->options['dateExpiry'] = $dateExpiry; $this->options['ttl'] = $ttl; $this->options['mode'] = $mode; $this->options['status'] = $status; $this->options['participants'] = $participants; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * The date that this Session was expiry, given in ISO 8601 format. * * @param \DateTime $dateExpiry The date this Session was expiry * @return $this Fluent Builder */ public function setDateExpiry($dateExpiry) { $this->options['dateExpiry'] = $dateExpiry; return $this; } /** * The Time to Live for a Session, in seconds. * * @param integer $ttl TTL for a Session, in seconds. * @return $this Fluent Builder */ public function setTtl($ttl) { $this->options['ttl'] = $ttl; return $this; } /** * The Mode of this Session. One of `message-only`, `voice-only` or `voice-and-message`. * * @param string $mode The Mode of this Session * @return $this Fluent Builder */ public function setMode($mode) { $this->options['mode'] = $mode; return $this; } /** * The Status of this Session. One of `in-progress`, `closed`, `failed`, `unknown` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * A list of phone numbers to add to this Session. * * @param array $participants A list of phone numbers to add to this Session. * @return $this Fluent Builder */ public function setParticipants($participants) { $this->options['participants'] = $participants; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Proxy.V1.CreateSessionOptions ' . implode(' ', $options) . ']'; } } class UpdateSessionOptions extends Options { /** * @param string $uniqueName A unique, developer assigned name of this Session. * @param \DateTime $dateExpiry The date this Session was expiry * @param integer $ttl TTL for a Session, in seconds. * @param string $mode The Mode of this Session * @param string $status The Status of this Session * @param array $participants A list of phone numbers to add to this Session. */ public function __construct($uniqueName = Values::NONE, $dateExpiry = Values::NONE, $ttl = Values::NONE, $mode = Values::NONE, $status = Values::NONE, $participants = Values::NONE) { $this->options['uniqueName'] = $uniqueName; $this->options['dateExpiry'] = $dateExpiry; $this->options['ttl'] = $ttl; $this->options['mode'] = $mode; $this->options['status'] = $status; $this->options['participants'] = $participants; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * The date that this Session was expiry, given in ISO 8601 format. * * @param \DateTime $dateExpiry The date this Session was expiry * @return $this Fluent Builder */ public function setDateExpiry($dateExpiry) { $this->options['dateExpiry'] = $dateExpiry; return $this; } /** * The Time to Live for a Session, in seconds. * * @param integer $ttl TTL for a Session, in seconds. * @return $this Fluent Builder */ public function setTtl($ttl) { $this->options['ttl'] = $ttl; return $this; } /** * The Mode of this Session. One of `message-only`, `voice-only` or `voice-and-message`. * * @param string $mode The Mode of this Session * @return $this Fluent Builder */ public function setMode($mode) { $this->options['mode'] = $mode; return $this; } /** * The Status of this Session. One of `in-progress`, `closed`, `failed`, `unknown` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * A list of phone numbers to add to this Session. * * @param array $participants A list of phone numbers to add to this Session. * @return $this Fluent Builder */ public function setParticipants($participants) { $this->options['participants'] = $participants; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Proxy.V1.UpdateSessionOptions ' . implode(' ', $options) . ']'; } }