Skip to content

Commit c356bb4

Browse files
committed
[Librarian] Regenerated @ 7a7839b47231760a343c1db31f805001d48237b2
1 parent b16594a commit c356bb4

18 files changed

+2848
-19
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
twilio-csharp Changelog
22
=======================
33

4+
[2017-10-27] Version 5.8.1
5+
---------------------------
6+
**Chat**
7+
- Add Binding resource
8+
- Add UserBinding resource
9+
10+
411
[2017-10-20] Version 5.8.0
512
---------------------------
613
**TwiML**
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/// This code was generated by
2+
/// \ / _ _ _| _ _
3+
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
4+
/// / /
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using System.Linq;
9+
using Twilio.Base;
10+
using Twilio.Converters;
11+
12+
namespace Twilio.Rest.Chat.V2.Service
13+
{
14+
15+
/// <summary>
16+
/// ReadBindingOptions
17+
/// </summary>
18+
public class ReadBindingOptions : ReadOptions<BindingResource>
19+
{
20+
/// <summary>
21+
/// The service_sid
22+
/// </summary>
23+
public string PathServiceSid { get; }
24+
/// <summary>
25+
/// The binding_type
26+
/// </summary>
27+
public List<BindingResource.BindingTypeEnum> BindingType { get; set; }
28+
/// <summary>
29+
/// The identity
30+
/// </summary>
31+
public List<string> Identity { get; set; }
32+
33+
/// <summary>
34+
/// Construct a new ReadBindingOptions
35+
/// </summary>
36+
/// <param name="pathServiceSid"> The service_sid </param>
37+
public ReadBindingOptions(string pathServiceSid)
38+
{
39+
PathServiceSid = pathServiceSid;
40+
BindingType = new List<BindingResource.BindingTypeEnum>();
41+
Identity = new List<string>();
42+
}
43+
44+
/// <summary>
45+
/// Generate the necessary parameters
46+
/// </summary>
47+
public override List<KeyValuePair<string, string>> GetParams()
48+
{
49+
var p = new List<KeyValuePair<string, string>>();
50+
if (BindingType != null)
51+
{
52+
p.AddRange(BindingType.Select(prop => new KeyValuePair<string, string>("BindingType", prop.ToString())));
53+
}
54+
55+
if (Identity != null)
56+
{
57+
p.AddRange(Identity.Select(prop => new KeyValuePair<string, string>("Identity", prop)));
58+
}
59+
60+
if (PageSize != null)
61+
{
62+
p.Add(new KeyValuePair<string, string>("PageSize", PageSize.ToString()));
63+
}
64+
65+
return p;
66+
}
67+
}
68+
69+
/// <summary>
70+
/// FetchBindingOptions
71+
/// </summary>
72+
public class FetchBindingOptions : IOptions<BindingResource>
73+
{
74+
/// <summary>
75+
/// The service_sid
76+
/// </summary>
77+
public string PathServiceSid { get; }
78+
/// <summary>
79+
/// The sid
80+
/// </summary>
81+
public string PathSid { get; }
82+
83+
/// <summary>
84+
/// Construct a new FetchBindingOptions
85+
/// </summary>
86+
/// <param name="pathServiceSid"> The service_sid </param>
87+
/// <param name="pathSid"> The sid </param>
88+
public FetchBindingOptions(string pathServiceSid, string pathSid)
89+
{
90+
PathServiceSid = pathServiceSid;
91+
PathSid = pathSid;
92+
}
93+
94+
/// <summary>
95+
/// Generate the necessary parameters
96+
/// </summary>
97+
public List<KeyValuePair<string, string>> GetParams()
98+
{
99+
var p = new List<KeyValuePair<string, string>>();
100+
return p;
101+
}
102+
}
103+
104+
/// <summary>
105+
/// DeleteBindingOptions
106+
/// </summary>
107+
public class DeleteBindingOptions : IOptions<BindingResource>
108+
{
109+
/// <summary>
110+
/// The service_sid
111+
/// </summary>
112+
public string PathServiceSid { get; }
113+
/// <summary>
114+
/// The sid
115+
/// </summary>
116+
public string PathSid { get; }
117+
118+
/// <summary>
119+
/// Construct a new DeleteBindingOptions
120+
/// </summary>
121+
/// <param name="pathServiceSid"> The service_sid </param>
122+
/// <param name="pathSid"> The sid </param>
123+
public DeleteBindingOptions(string pathServiceSid, string pathSid)
124+
{
125+
PathServiceSid = pathServiceSid;
126+
PathSid = pathSid;
127+
}
128+
129+
/// <summary>
130+
/// Generate the necessary parameters
131+
/// </summary>
132+
public List<KeyValuePair<string, string>> GetParams()
133+
{
134+
var p = new List<KeyValuePair<string, string>>();
135+
return p;
136+
}
137+
}
138+
139+
}

0 commit comments

Comments
 (0)