/var/www/hkosl.com/b2b2c/webadmin/libraies/twilio/sdk/Services/Twilio/Auth/ConversationsGrant.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php

class Services_Twilio_Auth_ConversationsGrant implements Services_Twilio_Auth_Grant
{
    private 
$configurationProfileSid;

    
/**
     * Returns the configuration profile sid
     *
     * @return string the configuration profile sid
     */
    
public function getConfigurationProfileSid()
    {
        return 
$this->configurationProfileSid;
    }

    
/**
     * @param string $configurationProfileSid the configuration profile sid
     * we want to enable for this grant
     *
     * @return Services_Twilio_Auth_ConversationsGrant updated grant
     */
    
public function setConfigurationProfileSid($configurationProfileSid)
    {
        
$this->configurationProfileSid $configurationProfileSid;
        return 
$this;
    }

    
/**
     * Returns the grant type
     *
     * @return string type of the grant
     */
    
public function getGrantKey()
    {
        return 
"rtc";
    }

    
/**
     * Returns the grant data
     *
     * @return array data of the grant
     */
    
public function getPayload()
    {
        
$payload = array();
        if (
$this->configurationProfileSid) {
            
$payload['configuration_profile_sid'] = $this->configurationProfileSid;
        }

        return 
$payload;
    }

}