晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/Notify/V1/ |
Upload File : |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Notify\V1;
use Twilio\Options;
use Twilio\Values;
/**
* PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
*/
abstract class ServiceOptions {
/**
* @param string $friendlyName Human-readable name for this service instance
* @param string $apnCredentialSid The SID of the Credential to be used for APN
* Bindings.
* @param string $gcmCredentialSid The SID of the Credential to be used for GCM
* Bindings.
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @param string $fcmCredentialSid The SID of the Credential to be used for FCM
* Bindings.
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @param boolean $logEnabled The log_enabled
* @param string $alexaSkillId The alexa_skill_id
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
* @return CreateServiceOptions Options builder
*/
public static function create($friendlyName = Values::NONE, $apnCredentialSid = Values::NONE, $gcmCredentialSid = Values::NONE, $messagingServiceSid = Values::NONE, $facebookMessengerPageId = Values::NONE, $defaultApnNotificationProtocolVersion = Values::NONE, $defaultGcmNotificationProtocolVersion = Values::NONE, $fcmCredentialSid = Values::NONE, $defaultFcmNotificationProtocolVersion = Values::NONE, $logEnabled = Values::NONE, $alexaSkillId = Values::NONE, $defaultAlexaNotificationProtocolVersion = Values::NONE) {
return new CreateServiceOptions($friendlyName, $apnCredentialSid, $gcmCredentialSid, $messagingServiceSid, $facebookMessengerPageId, $defaultApnNotificationProtocolVersion, $defaultGcmNotificationProtocolVersion, $fcmCredentialSid, $defaultFcmNotificationProtocolVersion, $logEnabled, $alexaSkillId, $defaultAlexaNotificationProtocolVersion);
}
/**
* @param string $friendlyName Filter services by FriendlyName
* @return ReadServiceOptions Options builder
*/
public static function read($friendlyName = Values::NONE) {
return new ReadServiceOptions($friendlyName);
}
/**
* @param string $friendlyName Human-readable name for this service instance
* @param string $apnCredentialSid The SID of the default Credential to be used
* for APN Bindings
* @param string $gcmCredentialSid The SID of the default Credential to be used
* for GCM Bindings
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @param string $fcmCredentialSid The SID of the default Credential to be used
* for FCM Bindings
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @param boolean $logEnabled The log_enabled
* @param string $alexaSkillId The alexa_skill_id
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
* @return UpdateServiceOptions Options builder
*/
public static function update($friendlyName = Values::NONE, $apnCredentialSid = Values::NONE, $gcmCredentialSid = Values::NONE, $messagingServiceSid = Values::NONE, $facebookMessengerPageId = Values::NONE, $defaultApnNotificationProtocolVersion = Values::NONE, $defaultGcmNotificationProtocolVersion = Values::NONE, $fcmCredentialSid = Values::NONE, $defaultFcmNotificationProtocolVersion = Values::NONE, $logEnabled = Values::NONE, $alexaSkillId = Values::NONE, $defaultAlexaNotificationProtocolVersion = Values::NONE) {
return new UpdateServiceOptions($friendlyName, $apnCredentialSid, $gcmCredentialSid, $messagingServiceSid, $facebookMessengerPageId, $defaultApnNotificationProtocolVersion, $defaultGcmNotificationProtocolVersion, $fcmCredentialSid, $defaultFcmNotificationProtocolVersion, $logEnabled, $alexaSkillId, $defaultAlexaNotificationProtocolVersion);
}
}
class CreateServiceOptions extends Options {
/**
* @param string $friendlyName Human-readable name for this service instance
* @param string $apnCredentialSid The SID of the Credential to be used for APN
* Bindings.
* @param string $gcmCredentialSid The SID of the Credential to be used for GCM
* Bindings.
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @param string $fcmCredentialSid The SID of the Credential to be used for FCM
* Bindings.
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @param boolean $logEnabled The log_enabled
* @param string $alexaSkillId The alexa_skill_id
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
*/
public function __construct($friendlyName = Values::NONE, $apnCredentialSid = Values::NONE, $gcmCredentialSid = Values::NONE, $messagingServiceSid = Values::NONE, $facebookMessengerPageId = Values::NONE, $defaultApnNotificationProtocolVersion = Values::NONE, $defaultGcmNotificationProtocolVersion = Values::NONE, $fcmCredentialSid = Values::NONE, $defaultFcmNotificationProtocolVersion = Values::NONE, $logEnabled = Values::NONE, $alexaSkillId = Values::NONE, $defaultAlexaNotificationProtocolVersion = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['apnCredentialSid'] = $apnCredentialSid;
$this->options['gcmCredentialSid'] = $gcmCredentialSid;
$this->options['messagingServiceSid'] = $messagingServiceSid;
$this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
$this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
$this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
$this->options['fcmCredentialSid'] = $fcmCredentialSid;
$this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
$this->options['logEnabled'] = $logEnabled;
$this->options['alexaSkillId'] = $alexaSkillId;
$this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
}
/**
* Human-readable name for this service instance
*
* @param string $friendlyName Human-readable name for this service instance
* @return $this Fluent Builder
*/
public function setFriendlyName($friendlyName) {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for APN Bindings.
*
* @param string $apnCredentialSid The SID of the Credential to be used for APN
* Bindings.
* @return $this Fluent Builder
*/
public function setApnCredentialSid($apnCredentialSid) {
$this->options['apnCredentialSid'] = $apnCredentialSid;
return $this;
}
/**
* The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for GCM Bindings.
*
* @param string $gcmCredentialSid The SID of the Credential to be used for GCM
* Bindings.
* @return $this Fluent Builder
*/
public function setGcmCredentialSid($gcmCredentialSid) {
$this->options['gcmCredentialSid'] = $gcmCredentialSid;
return $this;
}
/**
* The SID of the [Messaging Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
*
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @return $this Fluent Builder
*/
public function setMessagingServiceSid($messagingServiceSid) {
$this->options['messagingServiceSid'] = $messagingServiceSid;
return $this;
}
/**
* The Page ID to be used to send for Facebook Messenger Bindings. It has to match the Page ID you configured when you [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on your account.
*
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @return $this Fluent Builder
*/
public function setFacebookMessengerPageId($facebookMessengerPageId) {
$this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
return $this;
}
/**
* The version of the protocol to be used for sending APNS notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
*
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultApnNotificationProtocolVersion($defaultApnNotificationProtocolVersion) {
$this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
return $this;
}
/**
* The version of the protocol to be used for sending GCM notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
*
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultGcmNotificationProtocolVersion($defaultGcmNotificationProtocolVersion) {
$this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
return $this;
}
/**
* The SID of the [Credential](https://www.twilio.com/docs/notify/api/credentials) to be used for FCM Bindings.
*
* @param string $fcmCredentialSid The SID of the Credential to be used for FCM
* Bindings.
* @return $this Fluent Builder
*/
public function setFcmCredentialSid($fcmCredentialSid) {
$this->options['fcmCredentialSid'] = $fcmCredentialSid;
return $this;
}
/**
* The version of the protocol to be used for sending FCM notifications. Can be overriden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/bindings) resource.
*
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultFcmNotificationProtocolVersion($defaultFcmNotificationProtocolVersion) {
$this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
return $this;
}
/**
* The log_enabled
*
* @param boolean $logEnabled The log_enabled
* @return $this Fluent Builder
*/
public function setLogEnabled($logEnabled) {
$this->options['logEnabled'] = $logEnabled;
return $this;
}
/**
* The alexa_skill_id
*
* @param string $alexaSkillId The alexa_skill_id
* @return $this Fluent Builder
*/
public function setAlexaSkillId($alexaSkillId) {
$this->options['alexaSkillId'] = $alexaSkillId;
return $this;
}
/**
* The default_alexa_notification_protocol_version
*
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
* @return $this Fluent Builder
*/
public function setDefaultAlexaNotificationProtocolVersion($defaultAlexaNotificationProtocolVersion) {
$this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
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.Notify.V1.CreateServiceOptions ' . implode(' ', $options) . ']';
}
}
class ReadServiceOptions extends Options {
/**
* @param string $friendlyName Filter services by FriendlyName
*/
public function __construct($friendlyName = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
}
/**
* Filter services by FriendlyName
*
* @param string $friendlyName Filter services by FriendlyName
* @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.Notify.V1.ReadServiceOptions ' . implode(' ', $options) . ']';
}
}
class UpdateServiceOptions extends Options {
/**
* @param string $friendlyName Human-readable name for this service instance
* @param string $apnCredentialSid The SID of the default Credential to be used
* for APN Bindings
* @param string $gcmCredentialSid The SID of the default Credential to be used
* for GCM Bindings
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @param string $fcmCredentialSid The SID of the default Credential to be used
* for FCM Bindings
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @param boolean $logEnabled The log_enabled
* @param string $alexaSkillId The alexa_skill_id
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
*/
public function __construct($friendlyName = Values::NONE, $apnCredentialSid = Values::NONE, $gcmCredentialSid = Values::NONE, $messagingServiceSid = Values::NONE, $facebookMessengerPageId = Values::NONE, $defaultApnNotificationProtocolVersion = Values::NONE, $defaultGcmNotificationProtocolVersion = Values::NONE, $fcmCredentialSid = Values::NONE, $defaultFcmNotificationProtocolVersion = Values::NONE, $logEnabled = Values::NONE, $alexaSkillId = Values::NONE, $defaultAlexaNotificationProtocolVersion = Values::NONE) {
$this->options['friendlyName'] = $friendlyName;
$this->options['apnCredentialSid'] = $apnCredentialSid;
$this->options['gcmCredentialSid'] = $gcmCredentialSid;
$this->options['messagingServiceSid'] = $messagingServiceSid;
$this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
$this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
$this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
$this->options['fcmCredentialSid'] = $fcmCredentialSid;
$this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
$this->options['logEnabled'] = $logEnabled;
$this->options['alexaSkillId'] = $alexaSkillId;
$this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
}
/**
* Human-readable name for this service instance
*
* @param string $friendlyName Human-readable name for this service instance
* @return $this Fluent Builder
*/
public function setFriendlyName($friendlyName) {
$this->options['friendlyName'] = $friendlyName;
return $this;
}
/**
* The SID of the default Credential to be used for APN Bindings
*
* @param string $apnCredentialSid The SID of the default Credential to be used
* for APN Bindings
* @return $this Fluent Builder
*/
public function setApnCredentialSid($apnCredentialSid) {
$this->options['apnCredentialSid'] = $apnCredentialSid;
return $this;
}
/**
* The SID of the default Credential to be used for GCM Bindings
*
* @param string $gcmCredentialSid The SID of the default Credential to be used
* for GCM Bindings
* @return $this Fluent Builder
*/
public function setGcmCredentialSid($gcmCredentialSid) {
$this->options['gcmCredentialSid'] = $gcmCredentialSid;
return $this;
}
/**
* The SID of the [Messaging Service](https://www.twilio.com/docs/api/rest/sending-messages#messaging-services) to be used for SMS Bindings. In order to send SMS notifications this parameter has to be set.
*
* @param string $messagingServiceSid The SID of the Messaging Service to be
* used for SMS Bindings.
* @return $this Fluent Builder
*/
public function setMessagingServiceSid($messagingServiceSid) {
$this->options['messagingServiceSid'] = $messagingServiceSid;
return $this;
}
/**
* The Page ID to be used to send for Facebook Messenger Bindings. It has to match the Page ID you configured when you [enabled Facebook Messaging](https://www.twilio.com/console/sms/settings) on your account. Facebook Messenger integration is in beta. You need to be in the beta program to be able to enable Facebook Messaging for your account.
*
* @param string $facebookMessengerPageId The Page ID to be used to send for
* Facebook Messenger Bindings.
* @return $this Fluent Builder
*/
public function setFacebookMessengerPageId($facebookMessengerPageId) {
$this->options['facebookMessengerPageId'] = $facebookMessengerPageId;
return $this;
}
/**
* The version of the protocol to be used for sending APNS notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
*
* @param string $defaultApnNotificationProtocolVersion The version of the
* protocol to be used for
* sending APNS
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultApnNotificationProtocolVersion($defaultApnNotificationProtocolVersion) {
$this->options['defaultApnNotificationProtocolVersion'] = $defaultApnNotificationProtocolVersion;
return $this;
}
/**
* The version of the protocol to be used for sending GCM notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
*
* @param string $defaultGcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending GCM
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultGcmNotificationProtocolVersion($defaultGcmNotificationProtocolVersion) {
$this->options['defaultGcmNotificationProtocolVersion'] = $defaultGcmNotificationProtocolVersion;
return $this;
}
/**
* The SID of the default Credential to be used for FCM Bindings
*
* @param string $fcmCredentialSid The SID of the default Credential to be used
* for FCM Bindings
* @return $this Fluent Builder
*/
public function setFcmCredentialSid($fcmCredentialSid) {
$this->options['fcmCredentialSid'] = $fcmCredentialSid;
return $this;
}
/**
* The version of the protocol to be used for sending FCM notifications. Can be overriden on a Binding by Binding basis when creating a Binding resource.
*
* @param string $defaultFcmNotificationProtocolVersion The version of the
* protocol to be used for
* sending FCM
* notifications.
* @return $this Fluent Builder
*/
public function setDefaultFcmNotificationProtocolVersion($defaultFcmNotificationProtocolVersion) {
$this->options['defaultFcmNotificationProtocolVersion'] = $defaultFcmNotificationProtocolVersion;
return $this;
}
/**
* The log_enabled
*
* @param boolean $logEnabled The log_enabled
* @return $this Fluent Builder
*/
public function setLogEnabled($logEnabled) {
$this->options['logEnabled'] = $logEnabled;
return $this;
}
/**
* The alexa_skill_id
*
* @param string $alexaSkillId The alexa_skill_id
* @return $this Fluent Builder
*/
public function setAlexaSkillId($alexaSkillId) {
$this->options['alexaSkillId'] = $alexaSkillId;
return $this;
}
/**
* The default_alexa_notification_protocol_version
*
* @param string $defaultAlexaNotificationProtocolVersion The
* default_alexa_notification_protocol_version
* @return $this Fluent Builder
*/
public function setDefaultAlexaNotificationProtocolVersion($defaultAlexaNotificationProtocolVersion) {
$this->options['defaultAlexaNotificationProtocolVersion'] = $defaultAlexaNotificationProtocolVersion;
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.Notify.V1.UpdateServiceOptions ' . implode(' ', $options) . ']';
}
}