-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetatmoBaseClient.cs
More file actions
205 lines (179 loc) · 9.09 KB
/
NetatmoBaseClient.cs
File metadata and controls
205 lines (179 loc) · 9.09 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Serialization.Form;
using Microsoft.Kiota.Serialization.Json;
using Microsoft.Kiota.Serialization.Multipart;
using Microsoft.Kiota.Serialization.Text;
using NetatmoClient.Addwebhook;
using NetatmoClient.Createnewschedule;
using NetatmoClient.Devicelist;
using NetatmoClient.Dropwebhook;
using NetatmoClient.Getcamerapicture;
using NetatmoClient.Geteventsuntil;
using NetatmoClient.Gethomecoachsdata;
using NetatmoClient.Gethomedata;
using NetatmoClient.Getlasteventof;
using NetatmoClient.Getmeasure;
using NetatmoClient.Getnextevents;
using NetatmoClient.Getpublicdata;
using NetatmoClient.Getstationsdata;
using NetatmoClient.Getthermostatsdata;
using NetatmoClient.Getthermstate;
using NetatmoClient.Getuser;
using NetatmoClient.Partnerdevices;
using NetatmoClient.Setpersonsaway;
using NetatmoClient.Setpersonshome;
using NetatmoClient.Setthermpoint;
using NetatmoClient.Switchschedule;
using NetatmoClient.Syncschedule;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using System;
namespace NetatmoClient;
public partial class NetatmoClient
{
/// <summary>
/// The main entry point of the SDK, exposes the configuration and the fluent API.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
internal partial class NetatmoBaseClient : BaseRequestBuilder
{
/// <summary>The addwebhook property</summary>
public global::NetatmoClient.Addwebhook.AddwebhookRequestBuilder Addwebhook
{
get => new global::NetatmoClient.Addwebhook.AddwebhookRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The createnewschedule property</summary>
public global::NetatmoClient.Createnewschedule.CreatenewscheduleRequestBuilder Createnewschedule
{
get =>
new global::NetatmoClient.Createnewschedule.CreatenewscheduleRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The devicelist property</summary>
public global::NetatmoClient.Devicelist.DevicelistRequestBuilder Devicelist
{
get => new global::NetatmoClient.Devicelist.DevicelistRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The dropwebhook property</summary>
public global::NetatmoClient.Dropwebhook.DropwebhookRequestBuilder Dropwebhook
{
get => new global::NetatmoClient.Dropwebhook.DropwebhookRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getcamerapicture property</summary>
public global::NetatmoClient.Getcamerapicture.GetcamerapictureRequestBuilder Getcamerapicture
{
get => new global::NetatmoClient.Getcamerapicture.GetcamerapictureRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The geteventsuntil property</summary>
public global::NetatmoClient.Geteventsuntil.GeteventsuntilRequestBuilder Geteventsuntil
{
get => new global::NetatmoClient.Geteventsuntil.GeteventsuntilRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The gethomecoachsdata property</summary>
public global::NetatmoClient.Gethomecoachsdata.GethomecoachsdataRequestBuilder Gethomecoachsdata
{
get =>
new global::NetatmoClient.Gethomecoachsdata.GethomecoachsdataRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The gethomedata property</summary>
public global::NetatmoClient.Gethomedata.GethomedataRequestBuilder Gethomedata
{
get => new global::NetatmoClient.Gethomedata.GethomedataRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getlasteventof property</summary>
public global::NetatmoClient.Getlasteventof.GetlasteventofRequestBuilder Getlasteventof
{
get => new global::NetatmoClient.Getlasteventof.GetlasteventofRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getmeasure property</summary>
public global::NetatmoClient.Getmeasure.GetmeasureRequestBuilder Getmeasure
{
get => new global::NetatmoClient.Getmeasure.GetmeasureRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getnextevents property</summary>
public global::NetatmoClient.Getnextevents.GetnexteventsRequestBuilder Getnextevents
{
get => new global::NetatmoClient.Getnextevents.GetnexteventsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getpublicdata property</summary>
public global::NetatmoClient.Getpublicdata.GetpublicdataRequestBuilder Getpublicdata
{
get => new global::NetatmoClient.Getpublicdata.GetpublicdataRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getstationsdata property</summary>
public global::NetatmoClient.Getstationsdata.GetstationsdataRequestBuilder Getstationsdata
{
get => new global::NetatmoClient.Getstationsdata.GetstationsdataRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getthermostatsdata property</summary>
public global::NetatmoClient.Getthermostatsdata.GetthermostatsdataRequestBuilder Getthermostatsdata
{
get => new global::NetatmoClient.Getthermostatsdata.GetthermostatsdataRequestBuilder(PathParameters,
RequestAdapter);
}
/// <summary>The getthermstate property</summary>
public global::NetatmoClient.Getthermstate.GetthermstateRequestBuilder Getthermstate
{
get => new global::NetatmoClient.Getthermstate.GetthermstateRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The getuser property</summary>
public global::NetatmoClient.Getuser.GetuserRequestBuilder Getuser
{
get => new global::NetatmoClient.Getuser.GetuserRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The partnerdevices property</summary>
public global::NetatmoClient.Partnerdevices.PartnerdevicesRequestBuilder Partnerdevices
{
get => new global::NetatmoClient.Partnerdevices.PartnerdevicesRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The setpersonsaway property</summary>
public global::NetatmoClient.Setpersonsaway.SetpersonsawayRequestBuilder Setpersonsaway
{
get => new global::NetatmoClient.Setpersonsaway.SetpersonsawayRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The setpersonshome property</summary>
public global::NetatmoClient.Setpersonshome.SetpersonshomeRequestBuilder Setpersonshome
{
get => new global::NetatmoClient.Setpersonshome.SetpersonshomeRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The setthermpoint property</summary>
public global::NetatmoClient.Setthermpoint.SetthermpointRequestBuilder Setthermpoint
{
get => new global::NetatmoClient.Setthermpoint.SetthermpointRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The switchschedule property</summary>
public global::NetatmoClient.Switchschedule.SwitchscheduleRequestBuilder Switchschedule
{
get => new global::NetatmoClient.Switchschedule.SwitchscheduleRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>The syncschedule property</summary>
public global::NetatmoClient.Syncschedule.SyncscheduleRequestBuilder Syncschedule
{
get => new global::NetatmoClient.Syncschedule.SyncscheduleRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>
/// Instantiates a new <see cref="NetatmoClient.NetatmoBaseClient"/> and sets the default values.
/// </summary>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public NetatmoBaseClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}",
new Dictionary<string, object>())
{
ApiClientBuilder.RegisterDefaultSerializer<JsonSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<TextSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<FormSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultSerializer<MultipartSerializationWriterFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<JsonParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<TextParseNodeFactory>();
ApiClientBuilder.RegisterDefaultDeserializer<FormParseNodeFactory>();
if (string.IsNullOrEmpty(RequestAdapter.BaseUrl))
{
RequestAdapter.BaseUrl = "https://api.netatmo.com/api";
}
PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl);
}
}
}
#pragma warning restore CS0618