FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-rest-api/messagebird/call_data.py at master · messagebird/python-rest-api · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
messagebird
/
python-rest-api
Public
Notifications
You must be signed in to change notification settings
Fork
64
Star
73
Code
Issues
12
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-rest-api
/
messagebird
/
call_data.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (47 loc) · 1.56 KB
Breadcrumbs
python-rest-api
/
messagebird
/
call_data.py
Copy path
File metadata and controls
59 lines (47 loc) · 1.56 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
55
56
57
58
59
from
messagebird
.
base
import
Base
from
messagebird
.
webhook
import
Webhook
class
CallData
(
Base
):
def
__init__
(
self
):
self
.
id
=
None
self
.
status
=
None
self
.
source
=
None
self
.
destination
=
None
self
.
_createdAt
=
None
self
.
_updatedAt
=
None
self
.
_endedAt
=
None
self
.
_webhook
=
None
@
property
def
updatedAt
(
self
):
return
self
.
_updatedAt
@
updatedAt
.
setter
def
updatedAt
(
self
,
value
):
self
.
_updatedAt
=
self
.
value_to_time
(
value
,
'%Y-%m-%dT%H:%M:%SZ'
)
@
property
def
createdAt
(
self
):
return
self
.
_createdAt
@
createdAt
.
setter
def
createdAt
(
self
,
value
):
self
.
_createdAt
=
self
.
value_to_time
(
value
,
'%Y-%m-%dT%H:%M:%SZ'
)
@
property
def
endedAt
(
self
):
return
self
.
_endedAt
@
endedAt
.
setter
def
endedAt
(
self
,
value
):
self
.
_endedAt
=
self
.
value_to_time
(
value
,
'%Y-%m-%dT%H:%M:%SZ'
)
@
property
def
webhook
(
self
):
return
self
.
_webhook
@
webhook
.
setter
def
webhook
(
self
,
value
):
self
.
_webhook
=
Webhook
.
load
(
value
)
def
__str__
(
self
):
return
"
\n
"
.
join
([
'id : %s'
%
self
.
id
,
'status : %s'
%
self
.
status
,
'source : %s'
%
self
.
source
,
'destination : %s'
%
self
.
destination
,
'webhook : %s'
%
self
.
webhook
,
'updatedAt : %s'
%
self
.
updatedAt
,
'createdAt : %s'
%
self
.
createdAt
,
'endedAt : %s'
%
self
.
endedAt
,
])
Back
|
FazBrowse Home
|
New Git URL