1
- /*
2
- * MessageMediaWebhooks.PCL
3
- *
4
- * This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5
- */
1
+
6
2
using System ;
7
3
using System . IO ;
8
4
using System . Collections . Generic ;
17
13
18
14
namespace MessageMedia . Webhooks . Models
19
15
{
20
- public class CreateRequest : BaseModel
16
+ public class CreateRequest : BaseModel
21
17
{
22
18
// These fields hold the values for the public properties.
23
19
private string url ;
@@ -31,13 +27,13 @@ public class CreateRequest : BaseModel
31
27
/// target for the webhook. http and https are authorized
32
28
/// </summary>
33
29
[ JsonProperty ( "url" ) ]
34
- public string Url
35
- {
36
- get
30
+ public string Url
31
+ {
32
+ get
37
33
{
38
- return this . url ;
39
- }
40
- set
34
+ return this . url ;
35
+ }
36
+ set
41
37
{
42
38
this . url = value ;
43
39
onPropertyChanged ( "Url" ) ;
@@ -48,13 +44,13 @@ public string Url
48
44
/// authorized webhook methods : GET, POST, PUT, DELETE, PATCH
49
45
/// </summary>
50
46
[ JsonProperty ( "method" ) ]
51
- public string Method
52
- {
53
- get
47
+ public string Method
48
+ {
49
+ get
54
50
{
55
- return this . method ;
56
- }
57
- set
51
+ return this . method ;
52
+ }
53
+ set
58
54
{
59
55
this . method = value ;
60
56
onPropertyChanged ( "Method" ) ;
@@ -65,13 +61,13 @@ public string Method
65
61
/// JSON, FORM_ENCODED, XML
66
62
/// </summary>
67
63
[ JsonProperty ( "encoding" ) ]
68
- public string Encoding
69
- {
70
- get
64
+ public string Encoding
65
+ {
66
+ get
71
67
{
72
- return this . encoding ;
73
- }
74
- set
68
+ return this . encoding ;
69
+ }
70
+ set
75
71
{
76
72
this . encoding = value ;
77
73
onPropertyChanged ( "Encoding" ) ;
@@ -82,13 +78,13 @@ public string Encoding
82
78
/// list of events we want to suscribe to. see docs
83
79
/// </summary>
84
80
[ JsonProperty ( "events" ) ]
85
- public List < string > Events
86
- {
87
- get
81
+ public List < string > Events
82
+ {
83
+ get
88
84
{
89
- return this . events ;
90
- }
91
- set
85
+ return this . events ;
86
+ }
87
+ set
92
88
{
93
89
this . events = value ;
94
90
onPropertyChanged ( "Events" ) ;
@@ -99,13 +95,13 @@ public List<string> Events
99
95
/// expected template. see doc for possibilities
100
96
/// </summary>
101
97
[ JsonProperty ( "template" ) ]
102
- public string Template
103
- {
104
- get
98
+ public string Template
99
+ {
100
+ get
105
101
{
106
- return this . template ;
107
- }
108
- set
102
+ return this . template ;
103
+ }
104
+ set
109
105
{
110
106
this . template = value ;
111
107
onPropertyChanged ( "Template" ) ;
@@ -116,17 +112,17 @@ public string Template
116
112
/// customized headers.no content Type header because we set it in the encoding attribute. an example below
117
113
/// </summary>
118
114
[ JsonProperty ( "headers" ) ]
119
- public Models . Headers Headers
120
- {
121
- get
115
+ public Models . Headers Headers
116
+ {
117
+ get
122
118
{
123
- return this . headers ;
124
- }
125
- set
119
+ return this . headers ;
120
+ }
121
+ set
126
122
{
127
123
this . headers = value ;
128
124
onPropertyChanged ( "Headers" ) ;
129
125
}
130
126
}
131
127
}
132
- }
128
+ }
0 commit comments