Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.php
Строк: 132
<?php

/**
 * This code was generated by
 *  / _    _  _|   _  _
 * | (_)/(_)(_|/| |(/_  v1.0.0
 * /       /
 */

namespace TwilioRestVideoV1Room;

use 
TwilioOptions;
use 
TwilioValues;

abstract class 
RoomRecordingOptions {
    
/**
     * @param string $status Read only the recordings with this status
     * @param string $sourceSid Read only the recordings that have this source_sid
     * @param DateTime $dateCreatedAfter Read only Recordings that started on or
     *                                    after this ISO 8601 datetime with time
     *                                    zone
     * @param DateTime $dateCreatedBefore Read only Recordings that started before
     *                                     this ISO 8601 date-time with time zone
     * @return ReadRoomRecordingOptions Options builder
     */
    
public static function read(string $status Values::NONEstring $sourceSid Values::NONEDateTime $dateCreatedAfter Values::NONEDateTime $dateCreatedBefore Values::NONE): ReadRoomRecordingOptions {
        return new 
ReadRoomRecordingOptions($status$sourceSid$dateCreatedAfter$dateCreatedBefore);
    }
}

class 
ReadRoomRecordingOptions extends Options {
    
/**
     * @param string $status Read only the recordings with this status
     * @param string $sourceSid Read only the recordings that have this source_sid
     * @param DateTime $dateCreatedAfter Read only Recordings that started on or
     *                                    after this ISO 8601 datetime with time
     *                                    zone
     * @param DateTime $dateCreatedBefore Read only Recordings that started before
     *                                     this ISO 8601 date-time with time zone
     */
    
public function __construct(string $status Values::NONEstring $sourceSid Values::NONEDateTime $dateCreatedAfter Values::NONEDateTime $dateCreatedBefore Values::NONE) {
        
$this->options['status'] = $status;
        
$this->options['sourceSid'] = $sourceSid;
        
$this->options['dateCreatedAfter'] = $dateCreatedAfter;
        
$this->options['dateCreatedBefore'] = $dateCreatedBefore;
    }

    
/**
     * Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`.
     *
     * @param string $status Read only the recordings with this status
     * @return $this Fluent Builder
     */
    
public function setStatus(string $status): self {
        
$this->options['status'] = $status;
        return 
$this;
    }

    
/**
     * Read only the recordings that have this `source_sid`.
     *
     * @param string $sourceSid Read only the recordings that have this source_sid
     * @return $this Fluent Builder
     */
    
public function setSourceSid(string $sourceSid): self {
        
$this->options['sourceSid'] = $sourceSid;
        return 
$this;
    }

    
/**
     * Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
     *
     * @param DateTime $dateCreatedAfter Read only Recordings that started on or
     *                                    after this ISO 8601 datetime with time
     *                                    zone
     * @return $this Fluent Builder
     */
    
public function setDateCreatedAfter(DateTime $dateCreatedAfter): self {
        
$this->options['dateCreatedAfter'] = $dateCreatedAfter;
        return 
$this;
    }

    
/**
     * Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
     *
     * @param DateTime $dateCreatedBefore Read only Recordings that started before
     *                                     this ISO 8601 date-time with time zone
     * @return $this Fluent Builder
     */
    
public function setDateCreatedBefore(DateTime $dateCreatedBefore): self {
        
$this->options['dateCreatedBefore'] = $dateCreatedBefore;
        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.Video.V1.ReadRoomRecordingOptions ' $options ']';
    }
}
Онлайн: 1
Реклама