晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/rainic/www/oldTZh/wp-content/plugins/digits/Twilio/Rest/Taskrouter/V1/ |
Upload File : |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Taskrouter\V1;
use Twilio\Options;
use Twilio\Values;
abstract class WorkspaceOptions {
/**
* @param string $defaultActivitySid The ID of the Activity that will be used
* when new Workers are created in this
* Workspace.
* @param string $eventCallbackUrl The Workspace will publish events to this
* URL.
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @param string $friendlyName Human readable description of this workspace
* @param boolean $multiTaskEnabled Enable or Disable Multitasking by passing
* either true or False with the POST request.
* @param string $timeoutActivitySid The ID of the Activity that will be
* assigned to a Worker when a Task
* reservation times out without a response.
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
* @return UpdateWorkspaceOptions Options builder
*/
public static function update($defaultActivitySid = Values::NONE, $eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $friendlyName = Values::NONE, $multiTaskEnabled = Values::NONE, $timeoutActivitySid = Values::NONE, $prioritizeQueueOrder = Values::NONE) {
return new UpdateWorkspaceOptions($defaultActivitySid, $eventCallbackUrl, $eventsFilter, $friendlyName, $multiTaskEnabled, $timeoutActivitySid, $prioritizeQueueOrder);
}
/**
* @param string $friendlyName Filter by a workspace's friendly name.
* @return ReadWorkspaceOptions Options builder
*/
public static function read($friendlyName = Values::NONE) {
return new ReadWorkspaceOptions($friendlyName);
}
/**
* @param string $eventCallbackUrl If provided, the Workspace will publish
* events to this URL.
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @param boolean $multiTaskEnabled Multi tasking allows workers to handle
* multiple tasks simultaneously.
* @param string $template One of the available template names.
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
* @return CreateWorkspaceOptions Options builder
*/
public static function create($eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $multiTaskEnabled = Values::NONE, $template = Values::NONE, $prioritizeQueueOrder = Values::NONE) {
return new CreateWorkspaceOptions($eventCallbackUrl, $eventsFilter, $multiTaskEnabled, $template, $prioritizeQueueOrder);
}
}
class UpdateWorkspaceOptions extends Options {
/**
* @param string $defaultActivitySid The ID of the Activity that will be used
* when new Workers are created in this
* Workspace.
* @param string $eventCallbackUrl The Workspace will publish events to this
* URL.
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @param string $friendlyName Human readable description of this workspace
* @param boolean $multiTaskEnabled Enable or Disable Multitasking by passing
* either true or False with the POST request.
* @param string $timeoutActivitySid The ID of the Activity that will be
* assigned to a Worker when a Task
* reservation times out without a response.
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
*/
public function __construct($defaultActivitySid = Values::NONE, $eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $friendlyName = Values::NONE, $multiTaskEnabled = Values::NONE, $timeoutActivitySid = Values::NONE, $prioritizeQueueOrder = Values::NONE) {
$this->options['defaultActivitySid'] = $defaultActivitySid;
$this->options['eventCallbackUrl'] = $eventCallbackUrl;
$this->options['eventsFilter'] = $eventsFilter;
$this->options['friendlyName'] = $friendlyName;
$this->options['multiTaskEnabled'] = $multiTaskEnabled;
$this->options['timeoutActivitySid'] = $timeoutActivitySid;
$this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
}
/**
* The ID of the Activity that will be used when new Workers are created in this Workspace.
*
* @param string $defaultActivitySid The ID of the Activity that will be used
* when new Workers are created in this
* Workspace.
* @return $this Fluent Builder
*/
public function setDefaultActivitySid($defaultActivitySid) {
$this->options['defaultActivitySid'] = $defaultActivitySid;
return $this;
}
/**
* The Workspace will publish events to this URL. You can use this to gather data for reporting. See [Events][/docs/taskrouter/api/events] for more information.
*
* @param string $eventCallbackUrl The Workspace will publish events to this
* URL.
* @return $this Fluent Builder
*/
public function setEventCallbackUrl($eventCallbackUrl) {
$this->options['eventCallbackUrl'] = $eventCallbackUrl;
return $this;
}
/**
* Use this parameter to receive webhooks on EventCallbackUrl for specific events on a workspace. For example if 'EventsFilter=task.created,task.canceled,worker.activity.update', then TaskRouter will webhook to EventCallbackUrl only when a task is created, canceled or a worker activity is updated.
*
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @return $this Fluent Builder
*/
public function setEventsFilter($eventsFilter) {
$this->options['eventsFilter'] = $eventsFilter;
return $this;
}
/**
* Human readable description of this workspace (for example "Sales Call Center" or "Customer Support Team")
*
* @param string $friendlyName Human readable description of this workspace
* @return $this Fluent Builder
*/
public function setFriendlyName($friendlyName) {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* Enable or Disable Multitasking by passing either *true* or *False* with the POST request. Learn more by visiting [Multitasking][/docs/taskrouter/multitasking].
*
* @param boolean $multiTaskEnabled Enable or Disable Multitasking by passing
* either true or False with the POST request.
* @return $this Fluent Builder
*/
public function setMultiTaskEnabled($multiTaskEnabled) {
$this->options['multiTaskEnabled'] = $multiTaskEnabled;
return $this;
}
/**
* The ID of the Activity that will be assigned to a Worker when a Task reservation times out without a response.
*
* @param string $timeoutActivitySid The ID of the Activity that will be
* assigned to a Worker when a Task
* reservation times out without a response.
* @return $this Fluent Builder
*/
public function setTimeoutActivitySid($timeoutActivitySid) {
$this->options['timeoutActivitySid'] = $timeoutActivitySid;
return $this;
}
/**
* Use this parameter to configure whether to prioritize LIFO or FIFO when workers are receiving Tasks from combination of LIFO and FIFO TaskQueues. Default is FIFO. [Click here][/docs/taskrouter/queue-ordering-last-first-out-lifo] to learn more about LIFO and the use of the parameter.
*
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
* @return $this Fluent Builder
*/
public function setPrioritizeQueueOrder($prioritizeQueueOrder) {
$this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
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.Taskrouter.V1.UpdateWorkspaceOptions ' . implode(' ', $options) . ']';
}
}
class ReadWorkspaceOptions extends Options {
/**
* @param string $friendlyName Filter by a workspace's friendly name.
*/
public function __construct($friendlyName = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
}
/**
* Filter by a workspace's friendly name. This is a human readable description of this Workspace (for example "Customer Support" or "2014 Election Campaign")
*
* @param string $friendlyName Filter by a workspace's friendly name.
* @return $this Fluent Builder
*/
public function setFriendlyName($friendlyName) {
$this->options['friendlyName'] = $friendlyName;
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.Taskrouter.V1.ReadWorkspaceOptions ' . implode(' ', $options) . ']';
}
}
class CreateWorkspaceOptions extends Options {
/**
* @param string $eventCallbackUrl If provided, the Workspace will publish
* events to this URL.
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @param boolean $multiTaskEnabled Multi tasking allows workers to handle
* multiple tasks simultaneously.
* @param string $template One of the available template names.
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
*/
public function __construct($eventCallbackUrl = Values::NONE, $eventsFilter = Values::NONE, $multiTaskEnabled = Values::NONE, $template = Values::NONE, $prioritizeQueueOrder = Values::NONE) {
$this->options['eventCallbackUrl'] = $eventCallbackUrl;
$this->options['eventsFilter'] = $eventsFilter;
$this->options['multiTaskEnabled'] = $multiTaskEnabled;
$this->options['template'] = $template;
$this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
}
/**
* If provided, the Workspace will publish events to this URL. You can use this to gather data for reporting. See Workspace Events for more information.
*
* @param string $eventCallbackUrl If provided, the Workspace will publish
* events to this URL.
* @return $this Fluent Builder
*/
public function setEventCallbackUrl($eventCallbackUrl) {
$this->options['eventCallbackUrl'] = $eventCallbackUrl;
return $this;
}
/**
* Use this parameter to receive webhooks on EventCallbackUrl for specific events on a workspace. For example if 'EventsFilter=task.created,task.canceled,worker.activity.update', then TaskRouter will webhook to EventCallbackUrl only when a task is created, canceled or a worker activity is updated.
*
* @param string $eventsFilter Use this parameter to receive webhooks on
* EventCallbackUrl for specific events on a
* workspace.
* @return $this Fluent Builder
*/
public function setEventsFilter($eventsFilter) {
$this->options['eventsFilter'] = $eventsFilter;
return $this;
}
/**
* Multi tasking allows workers to handle multiple tasks simultaneously. When enabled (MultiTaskEnabled=true), each worker will be eligible to receive parallel reservations up to the per-channel maximums defined in the Workers section. Default is disabled (MultiTaskEnabled=false), where each worker will only receive a new reservation when the previous task is completed. Learn more by visiting [Multitasking][/docs/taskrouter/multitasking].
*
* @param boolean $multiTaskEnabled Multi tasking allows workers to handle
* multiple tasks simultaneously.
* @return $this Fluent Builder
*/
public function setMultiTaskEnabled($multiTaskEnabled) {
$this->options['multiTaskEnabled'] = $multiTaskEnabled;
return $this;
}
/**
* One of the available template names. Will pre-configure this Workspace with the Workflow and Activities specified in the template. "NONE" will create a Workspace with a set of default activities and nothing else. "FIFO" will configure TaskRouter with a set of default activities and a single task queue for first-in, first-out distribution, useful if you want to see a simple TaskRouter configuration when getting started. Defaults to "NONE".
*
* @param string $template One of the available template names.
* @return $this Fluent Builder
*/
public function setTemplate($template) {
$this->options['template'] = $template;
return $this;
}
/**
* Use this parameter to configure whether to prioritize LIFO or FIFO when workers are receiving Tasks from combination of LIFO and FIFO TaskQueues. Default is FIFO. [Click here][/docs/taskrouter/queue-ordering-last-first-out-lifo] to learn more about LIFO and the use of the parameter.
*
* @param string $prioritizeQueueOrder Use this parameter to configure whether
* to prioritize LIFO or FIFO when workers
* are receiving Tasks from combination of
* LIFO and FIFO TaskQueues.
* @return $this Fluent Builder
*/
public function setPrioritizeQueueOrder($prioritizeQueueOrder) {
$this->options['prioritizeQueueOrder'] = $prioritizeQueueOrder;
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.Taskrouter.V1.CreateWorkspaceOptions ' . implode(' ', $options) . ']';
}
}