winrt-Windows.System.Diagnostics.DevicePortal 2.0.1__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/PKG-INFO +8 -8
  2. winrt_windows_system_diagnostics_deviceportal-2.2.0/all-requirements.txt +7 -0
  3. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/py.Windows.System.Diagnostics.DevicePortal.cpp +238 -134
  4. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_system_diagnostics_deviceportal-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/requirements.txt +2 -2
  7. winrt_windows_system_diagnostics_deviceportal-2.2.0/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +65 -0
  8. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt/windows/system/diagnostics/deviceportal/__init__.py +1 -1
  9. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/PKG-INFO +8 -8
  10. winrt_windows_system_diagnostics_deviceportal-2.2.0/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +8 -0
  11. winrt_windows_system_diagnostics_deviceportal-2.0.1/all-requirements.txt +0 -7
  12. winrt_windows_system_diagnostics_deviceportal-2.0.1/pywinrt-version.txt +0 -1
  13. winrt_windows_system_diagnostics_deviceportal-2.0.1/winrt/_winrt_windows_system_diagnostics_deviceportal.pyi +0 -65
  14. winrt_windows_system_diagnostics_deviceportal-2.0.1/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/requires.txt +0 -8
  15. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/README.md +0 -0
  16. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/setup.cfg +0 -0
  17. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/setup.py +0 -0
  18. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt/windows/system/diagnostics/deviceportal/py.typed +0 -0
  19. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_system_diagnostics_deviceportal-2.0.1 → winrt_windows_system_diagnostics_deviceportal-2.2.0}/winrt_Windows.System.Diagnostics.DevicePortal.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.0.1; extra == "all"
21
- Requires-Dist: winrt-Windows.Web.Http[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==2.2.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.ApplicationModel.AppService[all]==2.2.0
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
6
+ winrt-Windows.Networking.Sockets[all]==2.2.0
7
+ winrt-Windows.Web.Http[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.System.Diagnostics.DevicePortal.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::Diagnostics::DevicePortal
7
6
  {
8
7
  // ----- DevicePortalConnection class --------------------
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetForAppServiceConnection", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetForAppServiceConnection", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
40
+ {
41
+ py::set_arg_count_version_error(1);
42
+ return nullptr;
43
+ }
44
+
39
45
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::AppService::AppServiceConnection>(args, 0);
40
46
 
41
47
  return py::convert(winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection::GetForAppServiceConnection(param0));
@@ -59,14 +65,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
59
65
 
60
66
  if (arg_count == 1)
61
67
  {
62
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 1))
63
- {
64
- py::set_arg_count_version_error(1);
65
- return nullptr;
66
- }
67
-
68
68
  try
69
69
  {
70
+ static std::optional<bool> is_overload_present{};
71
+
72
+ if (!is_overload_present.has_value())
73
+ {
74
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 1);
75
+ }
76
+
77
+ if (!is_overload_present.value())
78
+ {
79
+ py::set_arg_count_version_error(1);
80
+ return nullptr;
81
+ }
82
+
70
83
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
71
84
 
72
85
  return py::convert(self->obj.GetServerMessageWebSocketForRequest(param0));
@@ -79,14 +92,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
79
92
  }
80
93
  else if (arg_count == 3)
81
94
  {
82
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 3))
83
- {
84
- py::set_arg_count_version_error(3);
85
- return nullptr;
86
- }
87
-
88
95
  try
89
96
  {
97
+ static std::optional<bool> is_overload_present{};
98
+
99
+ if (!is_overload_present.has_value())
100
+ {
101
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 3);
102
+ }
103
+
104
+ if (!is_overload_present.value())
105
+ {
106
+ py::set_arg_count_version_error(3);
107
+ return nullptr;
108
+ }
109
+
90
110
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
91
111
  auto param1 = py::convert_to<winrt::Windows::Networking::Sockets::SocketMessageType>(args, 1);
92
112
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -101,14 +121,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
101
121
  }
102
122
  else if (arg_count == 6)
103
123
  {
104
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 6))
105
- {
106
- py::set_arg_count_version_error(6);
107
- return nullptr;
108
- }
109
-
110
124
  try
111
125
  {
126
+ static std::optional<bool> is_overload_present{};
127
+
128
+ if (!is_overload_present.has_value())
129
+ {
130
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerMessageWebSocketForRequest", 6);
131
+ }
132
+
133
+ if (!is_overload_present.value())
134
+ {
135
+ py::set_arg_count_version_error(6);
136
+ return nullptr;
137
+ }
138
+
112
139
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
113
140
  auto param1 = py::convert_to<winrt::Windows::Networking::Sockets::SocketMessageType>(args, 1);
114
141
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -137,14 +164,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
137
164
 
138
165
  if (arg_count == 1)
139
166
  {
140
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 1))
141
- {
142
- py::set_arg_count_version_error(1);
143
- return nullptr;
144
- }
145
-
146
167
  try
147
168
  {
169
+ static std::optional<bool> is_overload_present{};
170
+
171
+ if (!is_overload_present.has_value())
172
+ {
173
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 1);
174
+ }
175
+
176
+ if (!is_overload_present.value())
177
+ {
178
+ py::set_arg_count_version_error(1);
179
+ return nullptr;
180
+ }
181
+
148
182
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
149
183
 
150
184
  return py::convert(self->obj.GetServerStreamWebSocketForRequest(param0));
@@ -157,14 +191,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
157
191
  }
158
192
  else if (arg_count == 4)
159
193
  {
160
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 4))
161
- {
162
- py::set_arg_count_version_error(4);
163
- return nullptr;
164
- }
165
-
166
194
  try
167
195
  {
196
+ static std::optional<bool> is_overload_present{};
197
+
198
+ if (!is_overload_present.has_value())
199
+ {
200
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"GetServerStreamWebSocketForRequest", 4);
201
+ }
202
+
203
+ if (!is_overload_present.value())
204
+ {
205
+ py::set_arg_count_version_error(4);
206
+ return nullptr;
207
+ }
208
+
168
209
  auto param0 = py::convert_to<winrt::Windows::Web::Http::HttpRequestMessage>(args, 0);
169
210
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
170
211
  auto param2 = py::convert_to<uint32_t>(args, 2);
@@ -187,14 +228,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
187
228
 
188
229
  static PyObject* DevicePortalConnection_add_Closed(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
189
230
  {
190
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
191
- {
192
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
193
- return nullptr;
194
- }
195
-
196
231
  try
197
232
  {
233
+ static std::optional<bool> is_event_present{};
234
+
235
+ if (!is_event_present.has_value())
236
+ {
237
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed");
238
+ }
239
+
240
+ if (!is_event_present.value())
241
+ {
242
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
243
+ return nullptr;
244
+ }
245
+
198
246
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs>>(arg);
199
247
 
200
248
  return py::convert(self->obj.Closed(param0));
@@ -208,14 +256,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
208
256
 
209
257
  static PyObject* DevicePortalConnection_remove_Closed(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
210
258
  {
211
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed"))
212
- {
213
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
214
- return nullptr;
215
- }
216
-
217
259
  try
218
260
  {
261
+ static std::optional<bool> is_event_present{};
262
+
263
+ if (!is_event_present.has_value())
264
+ {
265
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"Closed");
266
+ }
267
+
268
+ if (!is_event_present.value())
269
+ {
270
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
271
+ return nullptr;
272
+ }
273
+
219
274
  auto param0 = py::convert_to<winrt::event_token>(arg);
220
275
 
221
276
  self->obj.Closed(param0);
@@ -230,14 +285,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
230
285
 
231
286
  static PyObject* DevicePortalConnection_add_RequestReceived(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
232
287
  {
233
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
234
- {
235
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
236
- return nullptr;
237
- }
238
-
239
288
  try
240
289
  {
290
+ static std::optional<bool> is_event_present{};
291
+
292
+ if (!is_event_present.has_value())
293
+ {
294
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived");
295
+ }
296
+
297
+ if (!is_event_present.value())
298
+ {
299
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
300
+ return nullptr;
301
+ }
302
+
241
303
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection, winrt::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs>>(arg);
242
304
 
243
305
  return py::convert(self->obj.RequestReceived(param0));
@@ -251,14 +313,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
251
313
 
252
314
  static PyObject* DevicePortalConnection_remove_RequestReceived(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection* self, PyObject* arg) noexcept
253
315
  {
254
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived"))
255
- {
256
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
257
- return nullptr;
258
- }
259
-
260
316
  try
261
317
  {
318
+ static std::optional<bool> is_event_present{};
319
+
320
+ if (!is_event_present.has_value())
321
+ {
322
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnection", L"RequestReceived");
323
+ }
324
+
325
+ if (!is_event_present.value())
326
+ {
327
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
328
+ return nullptr;
329
+ }
330
+
262
331
  auto param0 = py::convert_to<winrt::event_token>(arg);
263
332
 
264
333
  self->obj.RequestReceived(param0);
@@ -311,23 +380,20 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
311
380
  { }
312
381
  };
313
382
 
314
- static PyType_Slot _type_slots_DevicePortalConnection[] =
315
- {
383
+ static PyType_Slot _type_slots_DevicePortalConnection[] = {
316
384
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnection) },
317
385
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnection) },
318
386
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnection) },
319
387
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnection) },
320
- { },
388
+ { }
321
389
  };
322
390
 
323
- static PyType_Spec type_spec_DevicePortalConnection =
324
- {
391
+ static PyType_Spec type_spec_DevicePortalConnection = {
325
392
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnection",
326
393
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnection),
327
394
  0,
328
395
  Py_TPFLAGS_DEFAULT,
329
- _type_slots_DevicePortalConnection
330
- };
396
+ _type_slots_DevicePortalConnection};
331
397
 
332
398
  static PyGetSetDef getset_DevicePortalConnection_Static[] = {
333
399
  { }
@@ -374,14 +440,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
374
440
 
375
441
  static PyObject* DevicePortalConnectionClosedEventArgs_get_Reason(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs* self, void* /*unused*/) noexcept
376
442
  {
377
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs", L"Reason"))
378
- {
379
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
380
- return nullptr;
381
- }
382
-
383
443
  try
384
444
  {
445
+ static std::optional<bool> is_property_present{};
446
+
447
+ if (!is_property_present.has_value())
448
+ {
449
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionClosedEventArgs", L"Reason");
450
+ }
451
+
452
+ if (!is_property_present.value())
453
+ {
454
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
455
+ return nullptr;
456
+ }
457
+
385
458
  return py::convert(self->obj.Reason());
386
459
  }
387
460
  catch (...)
@@ -426,23 +499,20 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
426
499
  { }
427
500
  };
428
501
 
429
- static PyType_Slot _type_slots_DevicePortalConnectionClosedEventArgs[] =
430
- {
502
+ static PyType_Slot _type_slots_DevicePortalConnectionClosedEventArgs[] = {
431
503
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionClosedEventArgs) },
432
504
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionClosedEventArgs) },
433
505
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionClosedEventArgs) },
434
506
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionClosedEventArgs) },
435
- { },
507
+ { }
436
508
  };
437
509
 
438
- static PyType_Spec type_spec_DevicePortalConnectionClosedEventArgs =
439
- {
510
+ static PyType_Spec type_spec_DevicePortalConnectionClosedEventArgs = {
440
511
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionClosedEventArgs",
441
512
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionClosedEventArgs),
442
513
  0,
443
514
  Py_TPFLAGS_DEFAULT,
444
- _type_slots_DevicePortalConnectionClosedEventArgs
445
- };
515
+ _type_slots_DevicePortalConnectionClosedEventArgs};
446
516
 
447
517
  // ----- DevicePortalConnectionRequestReceivedEventArgs class --------------------
448
518
 
@@ -467,14 +537,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
467
537
 
468
538
  if (arg_count == 0)
469
539
  {
470
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"GetDeferral", 0))
471
- {
472
- py::set_arg_count_version_error(0);
473
- return nullptr;
474
- }
475
-
476
540
  try
477
541
  {
542
+ static std::optional<bool> is_overload_present{};
543
+
544
+ if (!is_overload_present.has_value())
545
+ {
546
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"GetDeferral", 0);
547
+ }
548
+
549
+ if (!is_overload_present.value())
550
+ {
551
+ py::set_arg_count_version_error(0);
552
+ return nullptr;
553
+ }
554
+
478
555
  return py::convert(self->obj.GetDeferral());
479
556
  }
480
557
  catch (...)
@@ -492,14 +569,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
492
569
 
493
570
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_RequestMessage(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
494
571
  {
495
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"RequestMessage"))
496
- {
497
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
498
- return nullptr;
499
- }
500
-
501
572
  try
502
573
  {
574
+ static std::optional<bool> is_property_present{};
575
+
576
+ if (!is_property_present.has_value())
577
+ {
578
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"RequestMessage");
579
+ }
580
+
581
+ if (!is_property_present.value())
582
+ {
583
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
584
+ return nullptr;
585
+ }
586
+
503
587
  return py::convert(self->obj.RequestMessage());
504
588
  }
505
589
  catch (...)
@@ -511,14 +595,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
511
595
 
512
596
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_ResponseMessage(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
513
597
  {
514
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"ResponseMessage"))
515
- {
516
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
517
- return nullptr;
518
- }
519
-
520
598
  try
521
599
  {
600
+ static std::optional<bool> is_property_present{};
601
+
602
+ if (!is_property_present.has_value())
603
+ {
604
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"ResponseMessage");
605
+ }
606
+
607
+ if (!is_property_present.value())
608
+ {
609
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
610
+ return nullptr;
611
+ }
612
+
522
613
  return py::convert(self->obj.ResponseMessage());
523
614
  }
524
615
  catch (...)
@@ -530,14 +621,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
530
621
 
531
622
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_IsWebSocketUpgradeRequest(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
532
623
  {
533
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"IsWebSocketUpgradeRequest"))
534
- {
535
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
536
- return nullptr;
537
- }
538
-
539
624
  try
540
625
  {
626
+ static std::optional<bool> is_property_present{};
627
+
628
+ if (!is_property_present.has_value())
629
+ {
630
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"IsWebSocketUpgradeRequest");
631
+ }
632
+
633
+ if (!is_property_present.value())
634
+ {
635
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
636
+ return nullptr;
637
+ }
638
+
541
639
  return py::convert(self->obj.IsWebSocketUpgradeRequest());
542
640
  }
543
641
  catch (...)
@@ -549,14 +647,21 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
549
647
 
550
648
  static PyObject* DevicePortalConnectionRequestReceivedEventArgs_get_WebSocketProtocolsRequested(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs* self, void* /*unused*/) noexcept
551
649
  {
552
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"WebSocketProtocolsRequested"))
553
- {
554
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
555
- return nullptr;
556
- }
557
-
558
650
  try
559
651
  {
652
+ static std::optional<bool> is_property_present{};
653
+
654
+ if (!is_property_present.has_value())
655
+ {
656
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.DevicePortal.DevicePortalConnectionRequestReceivedEventArgs", L"WebSocketProtocolsRequested");
657
+ }
658
+
659
+ if (!is_property_present.value())
660
+ {
661
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
662
+ return nullptr;
663
+ }
664
+
560
665
  return py::convert(self->obj.WebSocketProtocolsRequested());
561
666
  }
562
667
  catch (...)
@@ -605,39 +710,35 @@ namespace py::cpp::Windows::System::Diagnostics::DevicePortal
605
710
  { }
606
711
  };
607
712
 
608
- static PyType_Slot _type_slots_DevicePortalConnectionRequestReceivedEventArgs[] =
609
- {
713
+ static PyType_Slot _type_slots_DevicePortalConnectionRequestReceivedEventArgs[] = {
610
714
  { Py_tp_new, reinterpret_cast<void*>(_new_DevicePortalConnectionRequestReceivedEventArgs) },
611
715
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DevicePortalConnectionRequestReceivedEventArgs) },
612
716
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DevicePortalConnectionRequestReceivedEventArgs) },
613
717
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DevicePortalConnectionRequestReceivedEventArgs) },
614
- { },
718
+ { }
615
719
  };
616
720
 
617
- static PyType_Spec type_spec_DevicePortalConnectionRequestReceivedEventArgs =
618
- {
721
+ static PyType_Spec type_spec_DevicePortalConnectionRequestReceivedEventArgs = {
619
722
  "winrt._winrt_windows_system_diagnostics_deviceportal.DevicePortalConnectionRequestReceivedEventArgs",
620
723
  sizeof(py::wrapper::Windows::System::Diagnostics::DevicePortal::DevicePortalConnectionRequestReceivedEventArgs),
621
724
  0,
622
725
  Py_TPFLAGS_DEFAULT,
623
- _type_slots_DevicePortalConnectionRequestReceivedEventArgs
624
- };
726
+ _type_slots_DevicePortalConnectionRequestReceivedEventArgs};
625
727
 
626
728
  // ----- Windows.System.Diagnostics.DevicePortal Initialization --------------------
627
- PyDoc_STRVAR(module_doc, "Windows::System::Diagnostics::DevicePortal");
628
729
 
730
+ PyDoc_STRVAR(module_doc, "Windows.System.Diagnostics.DevicePortal");
629
731
 
630
- static PyModuleDef module_def
631
- = {PyModuleDef_HEAD_INIT,
632
- "_winrt_windows_system_diagnostics_deviceportal",
633
- module_doc,
634
- 0,
635
- nullptr,
636
- nullptr,
637
- nullptr,
638
- nullptr,
639
- nullptr};
640
-
732
+ static PyModuleDef module_def = {
733
+ PyModuleDef_HEAD_INIT,
734
+ "_winrt_windows_system_diagnostics_deviceportal",
735
+ module_doc,
736
+ 0,
737
+ nullptr,
738
+ nullptr,
739
+ nullptr,
740
+ nullptr,
741
+ nullptr};
641
742
  } // py::cpp::Windows::System::Diagnostics::DevicePortal
642
743
 
643
744
  PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexcept
@@ -675,17 +776,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_deviceportal(void) noexc
675
776
  return nullptr;
676
777
  }
677
778
 
678
- if (py::register_python_type(module.get(), &type_spec_DevicePortalConnection, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DevicePortalConnection_Static.get())) == -1)
779
+ py::pytype_handle DevicePortalConnection_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnection, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_DevicePortalConnection_Static.get()))};
780
+ if (!DevicePortalConnection_type)
679
781
  {
680
782
  return nullptr;
681
783
  }
682
784
 
683
- if (py::register_python_type(module.get(), &type_spec_DevicePortalConnectionClosedEventArgs, object_bases.get(), nullptr) == -1)
785
+ py::pytype_handle DevicePortalConnectionClosedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionClosedEventArgs, object_bases.get(), nullptr)};
786
+ if (!DevicePortalConnectionClosedEventArgs_type)
684
787
  {
685
788
  return nullptr;
686
789
  }
687
790
 
688
- if (py::register_python_type(module.get(), &type_spec_DevicePortalConnectionRequestReceivedEventArgs, object_bases.get(), nullptr) == -1)
791
+ py::pytype_handle DevicePortalConnectionRequestReceivedEventArgs_type{py::register_python_type(module.get(), &type_spec_DevicePortalConnectionRequestReceivedEventArgs, object_bases.get(), nullptr)};
792
+ if (!DevicePortalConnectionRequestReceivedEventArgs_type)
689
793
  {
690
794
  return nullptr;
691
795
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.2.0
@@ -0,0 +1,65 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.applicationmodel.appservice as windows_applicationmodel_appservice
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.networking.sockets as windows_networking_sockets
16
+ import winrt.windows.web.http as windows_web_http
17
+
18
+ from winrt.windows.system.diagnostics.deviceportal import DevicePortalConnectionClosedReason
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class DevicePortalConnection_Static(type):
24
+ def get_for_app_service_connection(cls, app_service_connection: typing.Optional[windows_applicationmodel_appservice.AppServiceConnection], /) -> typing.Optional[DevicePortalConnection]: ...
25
+
26
+ @typing.final
27
+ class DevicePortalConnection(winrt.system.Object, metaclass=DevicePortalConnection_Static):
28
+ @staticmethod
29
+ def _from(obj: winrt.system.Object, /) -> DevicePortalConnection: ...
30
+ @typing.overload
31
+ def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
32
+ @typing.overload
33
+ def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], message_type: windows_networking_sockets.SocketMessageType, protocol: str, /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
34
+ @typing.overload
35
+ def get_server_message_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], message_type: windows_networking_sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, max_message_size: winrt.system.UInt32, receive_mode: windows_networking_sockets.MessageWebSocketReceiveMode, /) -> typing.Optional[windows_networking_sockets.ServerMessageWebSocket]: ...
36
+ @typing.overload
37
+ def get_server_stream_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], /) -> typing.Optional[windows_networking_sockets.ServerStreamWebSocket]: ...
38
+ @typing.overload
39
+ def get_server_stream_web_socket_for_request(self, request: typing.Optional[windows_web_http.HttpRequestMessage], protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, no_delay: bool, /) -> typing.Optional[windows_networking_sockets.ServerStreamWebSocket]: ...
40
+ def add_closed(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
41
+ def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
42
+ def add_request_received(self, handler: windows_foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
43
+ def remove_request_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
44
+
45
+ @typing.final
46
+ class DevicePortalConnectionClosedEventArgs(winrt.system.Object):
47
+ @staticmethod
48
+ def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionClosedEventArgs: ...
49
+ @_property
50
+ def reason(self) -> DevicePortalConnectionClosedReason: ...
51
+
52
+ @typing.final
53
+ class DevicePortalConnectionRequestReceivedEventArgs(winrt.system.Object):
54
+ @staticmethod
55
+ def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionRequestReceivedEventArgs: ...
56
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
57
+ @_property
58
+ def request_message(self) -> typing.Optional[windows_web_http.HttpRequestMessage]: ...
59
+ @_property
60
+ def response_message(self) -> typing.Optional[windows_web_http.HttpResponseMessage]: ...
61
+ @_property
62
+ def is_web_socket_upgrade_request(self) -> bool: ...
63
+ @_property
64
+ def web_socket_protocols_requested(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
65
+
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Diagnostics.DevicePortal
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,15 +10,15 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.0.1; extra == "all"
21
- Requires-Dist: winrt-Windows.Web.Http[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.AppService[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Networking.Sockets[all]==2.2.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Web.Http[all]==2.2.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.AppService[all]==2.2.0
5
+ winrt-Windows.Foundation[all]==2.2.0
6
+ winrt-Windows.Foundation.Collections[all]==2.2.0
7
+ winrt-Windows.Networking.Sockets[all]==2.2.0
8
+ winrt-Windows.Web.Http[all]==2.2.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.ApplicationModel.AppService[all]==2.0.1
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
6
- winrt-Windows.Networking.Sockets[all]==2.0.1
7
- winrt-Windows.Web.Http[all]==2.0.1
@@ -1,65 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.applicationmodel.appservice
13
- import winrt.windows.foundation
14
- import winrt.windows.foundation.collections
15
- import winrt.windows.networking.sockets
16
- import winrt.windows.web.http
17
-
18
- from winrt.windows.system.diagnostics.deviceportal import DevicePortalConnectionClosedReason
19
-
20
- Self = typing.TypeVar('Self')
21
-
22
- @typing.final
23
- class DevicePortalConnection_Static(type):
24
- def get_for_app_service_connection(cls, app_service_connection: typing.Optional[winrt.windows.applicationmodel.appservice.AppServiceConnection], /) -> typing.Optional[DevicePortalConnection]: ...
25
-
26
- @typing.final
27
- class DevicePortalConnection(winrt.system.Object, metaclass=DevicePortalConnection_Static):
28
- @staticmethod
29
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnection: ...
30
- @typing.overload
31
- def get_server_message_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
32
- @typing.overload
33
- def get_server_message_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], message_type: winrt.windows.networking.sockets.SocketMessageType, protocol: str, /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
34
- @typing.overload
35
- def get_server_message_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], message_type: winrt.windows.networking.sockets.SocketMessageType, protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, max_message_size: winrt.system.UInt32, receive_mode: winrt.windows.networking.sockets.MessageWebSocketReceiveMode, /) -> typing.Optional[winrt.windows.networking.sockets.ServerMessageWebSocket]: ...
36
- @typing.overload
37
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], /) -> typing.Optional[winrt.windows.networking.sockets.ServerStreamWebSocket]: ...
38
- @typing.overload
39
- def get_server_stream_web_socket_for_request(self, request: typing.Optional[winrt.windows.web.http.HttpRequestMessage], protocol: str, outbound_buffer_size_in_bytes: winrt.system.UInt32, no_delay: bool, /) -> typing.Optional[winrt.windows.networking.sockets.ServerStreamWebSocket]: ...
40
- def add_closed(self, handler: winrt.windows.foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionClosedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
41
- def remove_closed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
42
- def add_request_received(self, handler: winrt.windows.foundation.TypedEventHandler[DevicePortalConnection, DevicePortalConnectionRequestReceivedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
43
- def remove_request_received(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
44
-
45
- @typing.final
46
- class DevicePortalConnectionClosedEventArgs(winrt.system.Object):
47
- @staticmethod
48
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionClosedEventArgs: ...
49
- @_property
50
- def reason(self) -> DevicePortalConnectionClosedReason: ...
51
-
52
- @typing.final
53
- class DevicePortalConnectionRequestReceivedEventArgs(winrt.system.Object):
54
- @staticmethod
55
- def _from(obj: winrt.system.Object, /) -> DevicePortalConnectionRequestReceivedEventArgs: ...
56
- def get_deferral(self) -> typing.Optional[winrt.windows.foundation.Deferral]: ...
57
- @_property
58
- def request_message(self) -> typing.Optional[winrt.windows.web.http.HttpRequestMessage]: ...
59
- @_property
60
- def response_message(self) -> typing.Optional[winrt.windows.web.http.HttpResponseMessage]: ...
61
- @_property
62
- def is_web_socket_upgrade_request(self) -> bool: ...
63
- @_property
64
- def web_socket_protocols_requested(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
65
-
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.AppService[all]==2.0.1
5
- winrt-Windows.Foundation[all]==2.0.1
6
- winrt-Windows.Foundation.Collections[all]==2.0.1
7
- winrt-Windows.Networking.Sockets[all]==2.0.1
8
- winrt-Windows.Web.Http[all]==2.0.1