winrt-Windows.Networking.PushNotifications 2.0.1__tar.gz → 2.1.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 (20) hide show
  1. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/PKG-INFO +7 -7
  2. winrt_windows_networking_pushnotifications-2.1.0/all-requirements.txt +7 -0
  3. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/py.Windows.Networking.PushNotifications.cpp +212 -232
  4. winrt_windows_networking_pushnotifications-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt/_winrt_windows_networking_pushnotifications.pyi +26 -27
  7. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt/windows/networking/pushnotifications/__init__.py +1 -1
  8. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/PKG-INFO +7 -7
  9. winrt_windows_networking_pushnotifications-2.1.0/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +8 -0
  10. winrt_windows_networking_pushnotifications-2.0.1/all-requirements.txt +0 -7
  11. winrt_windows_networking_pushnotifications-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_networking_pushnotifications-2.0.1/winrt_Windows.Networking.PushNotifications.egg-info/requires.txt +0 -8
  13. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/README.md +0 -0
  14. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/setup.py +0 -0
  17. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt/windows/networking/pushnotifications/py.typed +0 -0
  18. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_networking_pushnotifications-2.0.1 → winrt_windows_networking_pushnotifications-2.1.0}/winrt_Windows.Networking.PushNotifications.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.PushNotifications
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,13 +12,13 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==2.1.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.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.Foundation.Collections[all]==2.1.0
5
+ winrt-Windows.Storage.Streams[all]==2.1.0
6
+ winrt-Windows.System[all]==2.1.0
7
+ winrt-Windows.UI.Notifications[all]==2.1.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.1.0
2
2
 
3
3
  #include "py.Windows.Networking.PushNotifications.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Networking::PushNotifications
7
6
  {
8
7
  // ----- PushNotificationChannel class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
28
27
 
29
28
  if (arg_count == 0)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"Close", 0))
32
- {
33
- py::set_arg_count_version_error(0);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"Close", 0))
33
+ {
34
+ py::set_arg_count_version_error(0);
35
+ return nullptr;
36
+ }
37
+
39
38
  self->obj.Close();
40
39
  Py_RETURN_NONE;
41
40
  }
@@ -54,14 +53,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
54
53
 
55
54
  static PyObject* PushNotificationChannel_get_ExpirationTime(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel* self, void* /*unused*/) noexcept
56
55
  {
57
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"ExpirationTime"))
58
- {
59
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
60
- return nullptr;
61
- }
62
-
63
56
  try
64
57
  {
58
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"ExpirationTime"))
59
+ {
60
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
61
+ return nullptr;
62
+ }
63
+
65
64
  return py::convert(self->obj.ExpirationTime());
66
65
  }
67
66
  catch (...)
@@ -73,14 +72,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
73
72
 
74
73
  static PyObject* PushNotificationChannel_get_Uri(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel* self, void* /*unused*/) noexcept
75
74
  {
76
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"Uri"))
77
- {
78
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
79
- return nullptr;
80
- }
81
-
82
75
  try
83
76
  {
77
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"Uri"))
78
+ {
79
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
80
+ return nullptr;
81
+ }
82
+
84
83
  return py::convert(self->obj.Uri());
85
84
  }
86
85
  catch (...)
@@ -92,14 +91,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
92
91
 
93
92
  static PyObject* PushNotificationChannel_add_PushNotificationReceived(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel* self, PyObject* arg) noexcept
94
93
  {
95
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived"))
96
- {
97
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
98
- return nullptr;
99
- }
100
-
101
94
  try
102
95
  {
96
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived"))
97
+ {
98
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
99
+ return nullptr;
100
+ }
101
+
103
102
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Networking::PushNotifications::PushNotificationChannel, winrt::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs>>(arg);
104
103
 
105
104
  return py::convert(self->obj.PushNotificationReceived(param0));
@@ -113,14 +112,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
113
112
 
114
113
  static PyObject* PushNotificationChannel_remove_PushNotificationReceived(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel* self, PyObject* arg) noexcept
115
114
  {
116
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived"))
117
- {
118
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
119
- return nullptr;
120
- }
121
-
122
115
  try
123
116
  {
117
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannel", L"PushNotificationReceived"))
118
+ {
119
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
120
+ return nullptr;
121
+ }
122
+
124
123
  auto param0 = py::convert_to<winrt::event_token>(arg);
125
124
 
126
125
  self->obj.PushNotificationReceived(param0);
@@ -172,23 +171,20 @@ namespace py::cpp::Windows::Networking::PushNotifications
172
171
  { }
173
172
  };
174
173
 
175
- static PyType_Slot _type_slots_PushNotificationChannel[] =
176
- {
174
+ static PyType_Slot _type_slots_PushNotificationChannel[] = {
177
175
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannel) },
178
176
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannel) },
179
177
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannel) },
180
178
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannel) },
181
- { },
179
+ { }
182
180
  };
183
181
 
184
- static PyType_Spec type_spec_PushNotificationChannel =
185
- {
182
+ static PyType_Spec type_spec_PushNotificationChannel = {
186
183
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannel",
187
184
  sizeof(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannel),
188
185
  0,
189
186
  Py_TPFLAGS_DEFAULT,
190
- _type_slots_PushNotificationChannel
191
- };
187
+ _type_slots_PushNotificationChannel};
192
188
 
193
189
  // ----- PushNotificationChannelManager class --------------------
194
190
 
@@ -205,14 +201,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
205
201
 
206
202
  if (arg_count == 0)
207
203
  {
208
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 0))
209
- {
210
- py::set_arg_count_version_error(0);
211
- return nullptr;
212
- }
213
-
214
204
  try
215
205
  {
206
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 0))
207
+ {
208
+ py::set_arg_count_version_error(0);
209
+ return nullptr;
210
+ }
211
+
216
212
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync());
217
213
  }
218
214
  catch (...)
@@ -223,14 +219,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
223
219
  }
224
220
  else if (arg_count == 1)
225
221
  {
226
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 1))
227
- {
228
- py::set_arg_count_version_error(1);
229
- return nullptr;
230
- }
231
-
232
222
  try
233
223
  {
224
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForApplicationAsync", 1))
225
+ {
226
+ py::set_arg_count_version_error(1);
227
+ return nullptr;
228
+ }
229
+
234
230
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
235
231
 
236
232
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForApplicationAsync(param0));
@@ -254,14 +250,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
254
250
 
255
251
  if (arg_count == 1)
256
252
  {
257
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForSecondaryTileAsync", 1))
258
- {
259
- py::set_arg_count_version_error(1);
260
- return nullptr;
261
- }
262
-
263
253
  try
264
254
  {
255
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"CreatePushNotificationChannelForSecondaryTileAsync", 1))
256
+ {
257
+ py::set_arg_count_version_error(1);
258
+ return nullptr;
259
+ }
260
+
265
261
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
266
262
 
267
263
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::CreatePushNotificationChannelForSecondaryTileAsync(param0));
@@ -285,14 +281,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
285
281
 
286
282
  if (arg_count == 0)
287
283
  {
288
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetDefault", 0))
289
- {
290
- py::set_arg_count_version_error(0);
291
- return nullptr;
292
- }
293
-
294
284
  try
295
285
  {
286
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetDefault", 0))
287
+ {
288
+ py::set_arg_count_version_error(0);
289
+ return nullptr;
290
+ }
291
+
296
292
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetDefault());
297
293
  }
298
294
  catch (...)
@@ -314,14 +310,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
314
310
 
315
311
  if (arg_count == 1)
316
312
  {
317
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetForUser", 1))
318
- {
319
- py::set_arg_count_version_error(1);
320
- return nullptr;
321
- }
322
-
323
313
  try
324
314
  {
315
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"GetForUser", 1))
316
+ {
317
+ py::set_arg_count_version_error(1);
318
+ return nullptr;
319
+ }
320
+
325
321
  auto param0 = py::convert_to<winrt::Windows::System::User>(args, 0);
326
322
 
327
323
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::GetForUser(param0));
@@ -341,14 +337,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
341
337
 
342
338
  static PyObject* PushNotificationChannelManager_add_ChannelsRevoked(PyObject* /*unused*/, PyObject* arg) noexcept
343
339
  {
344
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked"))
345
- {
346
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
347
- return nullptr;
348
- }
349
-
350
340
  try
351
341
  {
342
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked"))
343
+ {
344
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
345
+ return nullptr;
346
+ }
347
+
352
348
  auto param0 = py::convert_to<winrt::Windows::Foundation::EventHandler<winrt::Windows::Networking::PushNotifications::PushNotificationChannelsRevokedEventArgs>>(arg);
353
349
 
354
350
  return py::convert(winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0));
@@ -362,14 +358,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
362
358
 
363
359
  static PyObject* PushNotificationChannelManager_remove_ChannelsRevoked(PyObject* /*unused*/, PyObject* arg) noexcept
364
360
  {
365
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked"))
366
- {
367
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
368
- return nullptr;
369
- }
370
-
371
361
  try
372
362
  {
363
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManager", L"ChannelsRevoked"))
364
+ {
365
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
366
+ return nullptr;
367
+ }
368
+
373
369
  auto param0 = py::convert_to<winrt::event_token>(arg);
374
370
 
375
371
  winrt::Windows::Networking::PushNotifications::PushNotificationChannelManager::ChannelsRevoked(param0);
@@ -383,8 +379,6 @@ namespace py::cpp::Windows::Networking::PushNotifications
383
379
  }
384
380
 
385
381
  static PyMethodDef _methods_PushNotificationChannelManager[] = {
386
- { "add_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_add_ChannelsRevoked), METH_O | METH_STATIC, nullptr },
387
- { "remove_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_remove_ChannelsRevoked), METH_O | METH_STATIC, nullptr },
388
382
  { }
389
383
  };
390
384
 
@@ -392,22 +386,19 @@ namespace py::cpp::Windows::Networking::PushNotifications
392
386
  { }
393
387
  };
394
388
 
395
- static PyType_Slot _type_slots_PushNotificationChannelManager[] =
396
- {
389
+ static PyType_Slot _type_slots_PushNotificationChannelManager[] = {
397
390
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelManager) },
398
391
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelManager) },
399
392
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelManager) },
400
- { },
393
+ { }
401
394
  };
402
395
 
403
- static PyType_Spec type_spec_PushNotificationChannelManager =
404
- {
396
+ static PyType_Spec type_spec_PushNotificationChannelManager = {
405
397
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelManager",
406
398
  0,
407
399
  0,
408
400
  Py_TPFLAGS_DEFAULT,
409
- _type_slots_PushNotificationChannelManager
410
- };
401
+ _type_slots_PushNotificationChannelManager};
411
402
 
412
403
  static PyGetSetDef getset_PushNotificationChannelManager_Static[] = {
413
404
  { }
@@ -418,6 +409,8 @@ namespace py::cpp::Windows::Networking::PushNotifications
418
409
  { "create_push_notification_channel_for_secondary_tile_async", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_CreatePushNotificationChannelForSecondaryTileAsync), METH_VARARGS, nullptr },
419
410
  { "get_default", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_GetDefault), METH_VARARGS, nullptr },
420
411
  { "get_for_user", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_GetForUser), METH_VARARGS, nullptr },
412
+ { "add_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_add_ChannelsRevoked), METH_O, nullptr },
413
+ { "remove_channels_revoked", reinterpret_cast<PyCFunction>(PushNotificationChannelManager_remove_ChannelsRevoked), METH_O, nullptr },
421
414
  { }
422
415
  };
423
416
 
@@ -461,14 +454,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
461
454
 
462
455
  if (arg_count == 0)
463
456
  {
464
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 0))
465
- {
466
- py::set_arg_count_version_error(0);
467
- return nullptr;
468
- }
469
-
470
457
  try
471
458
  {
459
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 0))
460
+ {
461
+ py::set_arg_count_version_error(0);
462
+ return nullptr;
463
+ }
464
+
472
465
  return py::convert(self->obj.CreatePushNotificationChannelForApplicationAsync());
473
466
  }
474
467
  catch (...)
@@ -479,14 +472,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
479
472
  }
480
473
  else if (arg_count == 1)
481
474
  {
482
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 1))
483
- {
484
- py::set_arg_count_version_error(1);
485
- return nullptr;
486
- }
487
-
488
475
  try
489
476
  {
477
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForApplicationAsync", 1))
478
+ {
479
+ py::set_arg_count_version_error(1);
480
+ return nullptr;
481
+ }
482
+
490
483
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
491
484
 
492
485
  return py::convert(self->obj.CreatePushNotificationChannelForApplicationAsync(param0));
@@ -510,14 +503,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
510
503
 
511
504
  if (arg_count == 1)
512
505
  {
513
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForSecondaryTileAsync", 1))
514
- {
515
- py::set_arg_count_version_error(1);
516
- return nullptr;
517
- }
518
-
519
506
  try
520
507
  {
508
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreatePushNotificationChannelForSecondaryTileAsync", 1))
509
+ {
510
+ py::set_arg_count_version_error(1);
511
+ return nullptr;
512
+ }
513
+
521
514
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
522
515
 
523
516
  return py::convert(self->obj.CreatePushNotificationChannelForSecondaryTileAsync(param0));
@@ -541,14 +534,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
541
534
 
542
535
  if (arg_count == 2)
543
536
  {
544
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 2))
545
- {
546
- py::set_arg_count_version_error(2);
547
- return nullptr;
548
- }
549
-
550
537
  try
551
538
  {
539
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 2))
540
+ {
541
+ py::set_arg_count_version_error(2);
542
+ return nullptr;
543
+ }
544
+
552
545
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
553
546
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
554
547
 
@@ -562,14 +555,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
562
555
  }
563
556
  else if (arg_count == 3)
564
557
  {
565
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 3))
566
- {
567
- py::set_arg_count_version_error(3);
568
- return nullptr;
569
- }
570
-
571
558
  try
572
559
  {
560
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync", 3))
561
+ {
562
+ py::set_arg_count_version_error(3);
563
+ return nullptr;
564
+ }
565
+
573
566
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
574
567
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
575
568
  auto param2 = py::convert_to<winrt::hstring>(args, 2);
@@ -591,14 +584,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
591
584
 
592
585
  static PyObject* PushNotificationChannelManagerForUser_get_User(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser* self, void* /*unused*/) noexcept
593
586
  {
594
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"User"))
595
- {
596
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
597
- return nullptr;
598
- }
599
-
600
587
  try
601
588
  {
589
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationChannelManagerForUser", L"User"))
590
+ {
591
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
592
+ return nullptr;
593
+ }
594
+
602
595
  return py::convert(self->obj.User());
603
596
  }
604
597
  catch (...)
@@ -646,23 +639,20 @@ namespace py::cpp::Windows::Networking::PushNotifications
646
639
  { }
647
640
  };
648
641
 
649
- static PyType_Slot _type_slots_PushNotificationChannelManagerForUser[] =
650
- {
642
+ static PyType_Slot _type_slots_PushNotificationChannelManagerForUser[] = {
651
643
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelManagerForUser) },
652
644
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannelManagerForUser) },
653
645
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelManagerForUser) },
654
646
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelManagerForUser) },
655
- { },
647
+ { }
656
648
  };
657
649
 
658
- static PyType_Spec type_spec_PushNotificationChannelManagerForUser =
659
- {
650
+ static PyType_Spec type_spec_PushNotificationChannelManagerForUser = {
660
651
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelManagerForUser",
661
652
  sizeof(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelManagerForUser),
662
653
  0,
663
654
  Py_TPFLAGS_DEFAULT,
664
- _type_slots_PushNotificationChannelManagerForUser
665
- };
655
+ _type_slots_PushNotificationChannelManagerForUser};
666
656
 
667
657
  // ----- PushNotificationChannelsRevokedEventArgs class --------------------
668
658
 
@@ -715,23 +705,20 @@ namespace py::cpp::Windows::Networking::PushNotifications
715
705
  { }
716
706
  };
717
707
 
718
- static PyType_Slot _type_slots_PushNotificationChannelsRevokedEventArgs[] =
719
- {
708
+ static PyType_Slot _type_slots_PushNotificationChannelsRevokedEventArgs[] = {
720
709
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationChannelsRevokedEventArgs) },
721
710
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationChannelsRevokedEventArgs) },
722
711
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationChannelsRevokedEventArgs) },
723
712
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationChannelsRevokedEventArgs) },
724
- { },
713
+ { }
725
714
  };
726
715
 
727
- static PyType_Spec type_spec_PushNotificationChannelsRevokedEventArgs =
728
- {
716
+ static PyType_Spec type_spec_PushNotificationChannelsRevokedEventArgs = {
729
717
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationChannelsRevokedEventArgs",
730
718
  sizeof(py::wrapper::Windows::Networking::PushNotifications::PushNotificationChannelsRevokedEventArgs),
731
719
  0,
732
720
  Py_TPFLAGS_DEFAULT,
733
- _type_slots_PushNotificationChannelsRevokedEventArgs
734
- };
721
+ _type_slots_PushNotificationChannelsRevokedEventArgs};
735
722
 
736
723
  // ----- PushNotificationReceivedEventArgs class --------------------
737
724
 
@@ -752,14 +739,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
752
739
 
753
740
  static PyObject* PushNotificationReceivedEventArgs_get_Cancel(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
754
741
  {
755
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel"))
756
- {
757
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
758
- return nullptr;
759
- }
760
-
761
742
  try
762
743
  {
744
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel"))
745
+ {
746
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
747
+ return nullptr;
748
+ }
749
+
763
750
  return py::convert(self->obj.Cancel());
764
751
  }
765
752
  catch (...)
@@ -771,12 +758,6 @@ namespace py::cpp::Windows::Networking::PushNotifications
771
758
 
772
759
  static int PushNotificationReceivedEventArgs_put_Cancel(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, PyObject* arg, void* /*unused*/) noexcept
773
760
  {
774
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel"))
775
- {
776
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
777
- return -1;
778
- }
779
-
780
761
  if (arg == nullptr)
781
762
  {
782
763
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -785,6 +766,12 @@ namespace py::cpp::Windows::Networking::PushNotifications
785
766
 
786
767
  try
787
768
  {
769
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"Cancel"))
770
+ {
771
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
772
+ return -1;
773
+ }
774
+
788
775
  auto param0 = py::convert_to<bool>(arg);
789
776
 
790
777
  self->obj.Cancel(param0);
@@ -799,14 +786,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
799
786
 
800
787
  static PyObject* PushNotificationReceivedEventArgs_get_BadgeNotification(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
801
788
  {
802
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"BadgeNotification"))
803
- {
804
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
805
- return nullptr;
806
- }
807
-
808
789
  try
809
790
  {
791
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"BadgeNotification"))
792
+ {
793
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
794
+ return nullptr;
795
+ }
796
+
810
797
  return py::convert(self->obj.BadgeNotification());
811
798
  }
812
799
  catch (...)
@@ -818,14 +805,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
818
805
 
819
806
  static PyObject* PushNotificationReceivedEventArgs_get_NotificationType(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
820
807
  {
821
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"NotificationType"))
822
- {
823
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
824
- return nullptr;
825
- }
826
-
827
808
  try
828
809
  {
810
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"NotificationType"))
811
+ {
812
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
813
+ return nullptr;
814
+ }
815
+
829
816
  return py::convert(self->obj.NotificationType());
830
817
  }
831
818
  catch (...)
@@ -837,14 +824,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
837
824
 
838
825
  static PyObject* PushNotificationReceivedEventArgs_get_RawNotification(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
839
826
  {
840
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"RawNotification"))
841
- {
842
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
843
- return nullptr;
844
- }
845
-
846
827
  try
847
828
  {
829
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"RawNotification"))
830
+ {
831
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
832
+ return nullptr;
833
+ }
834
+
848
835
  return py::convert(self->obj.RawNotification());
849
836
  }
850
837
  catch (...)
@@ -856,14 +843,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
856
843
 
857
844
  static PyObject* PushNotificationReceivedEventArgs_get_TileNotification(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
858
845
  {
859
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"TileNotification"))
860
- {
861
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
862
- return nullptr;
863
- }
864
-
865
846
  try
866
847
  {
848
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"TileNotification"))
849
+ {
850
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
851
+ return nullptr;
852
+ }
853
+
867
854
  return py::convert(self->obj.TileNotification());
868
855
  }
869
856
  catch (...)
@@ -875,14 +862,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
875
862
 
876
863
  static PyObject* PushNotificationReceivedEventArgs_get_ToastNotification(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs* self, void* /*unused*/) noexcept
877
864
  {
878
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"ToastNotification"))
879
- {
880
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
881
- return nullptr;
882
- }
883
-
884
865
  try
885
866
  {
867
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.PushNotificationReceivedEventArgs", L"ToastNotification"))
868
+ {
869
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
870
+ return nullptr;
871
+ }
872
+
886
873
  return py::convert(self->obj.ToastNotification());
887
874
  }
888
875
  catch (...)
@@ -932,23 +919,20 @@ namespace py::cpp::Windows::Networking::PushNotifications
932
919
  { }
933
920
  };
934
921
 
935
- static PyType_Slot _type_slots_PushNotificationReceivedEventArgs[] =
936
- {
922
+ static PyType_Slot _type_slots_PushNotificationReceivedEventArgs[] = {
937
923
  { Py_tp_new, reinterpret_cast<void*>(_new_PushNotificationReceivedEventArgs) },
938
924
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PushNotificationReceivedEventArgs) },
939
925
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PushNotificationReceivedEventArgs) },
940
926
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PushNotificationReceivedEventArgs) },
941
- { },
927
+ { }
942
928
  };
943
929
 
944
- static PyType_Spec type_spec_PushNotificationReceivedEventArgs =
945
- {
930
+ static PyType_Spec type_spec_PushNotificationReceivedEventArgs = {
946
931
  "winrt._winrt_windows_networking_pushnotifications.PushNotificationReceivedEventArgs",
947
932
  sizeof(py::wrapper::Windows::Networking::PushNotifications::PushNotificationReceivedEventArgs),
948
933
  0,
949
934
  Py_TPFLAGS_DEFAULT,
950
- _type_slots_PushNotificationReceivedEventArgs
951
- };
935
+ _type_slots_PushNotificationReceivedEventArgs};
952
936
 
953
937
  // ----- RawNotification class --------------------
954
938
 
@@ -969,14 +953,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
969
953
 
970
954
  static PyObject* RawNotification_get_Content(py::wrapper::Windows::Networking::PushNotifications::RawNotification* self, void* /*unused*/) noexcept
971
955
  {
972
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Content"))
973
- {
974
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
975
- return nullptr;
976
- }
977
-
978
956
  try
979
957
  {
958
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Content"))
959
+ {
960
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
961
+ return nullptr;
962
+ }
963
+
980
964
  return py::convert(self->obj.Content());
981
965
  }
982
966
  catch (...)
@@ -988,14 +972,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
988
972
 
989
973
  static PyObject* RawNotification_get_ChannelId(py::wrapper::Windows::Networking::PushNotifications::RawNotification* self, void* /*unused*/) noexcept
990
974
  {
991
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ChannelId"))
992
- {
993
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
994
- return nullptr;
995
- }
996
-
997
975
  try
998
976
  {
977
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ChannelId"))
978
+ {
979
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
980
+ return nullptr;
981
+ }
982
+
999
983
  return py::convert(self->obj.ChannelId());
1000
984
  }
1001
985
  catch (...)
@@ -1007,14 +991,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
1007
991
 
1008
992
  static PyObject* RawNotification_get_Headers(py::wrapper::Windows::Networking::PushNotifications::RawNotification* self, void* /*unused*/) noexcept
1009
993
  {
1010
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Headers"))
1011
- {
1012
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1013
- return nullptr;
1014
- }
1015
-
1016
994
  try
1017
995
  {
996
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"Headers"))
997
+ {
998
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
999
+ return nullptr;
1000
+ }
1001
+
1018
1002
  return py::convert(self->obj.Headers());
1019
1003
  }
1020
1004
  catch (...)
@@ -1026,14 +1010,14 @@ namespace py::cpp::Windows::Networking::PushNotifications
1026
1010
 
1027
1011
  static PyObject* RawNotification_get_ContentBytes(py::wrapper::Windows::Networking::PushNotifications::RawNotification* self, void* /*unused*/) noexcept
1028
1012
  {
1029
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ContentBytes"))
1030
- {
1031
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1032
- return nullptr;
1033
- }
1034
-
1035
1013
  try
1036
1014
  {
1015
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.PushNotifications.RawNotification", L"ContentBytes"))
1016
+ {
1017
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1018
+ return nullptr;
1019
+ }
1020
+
1037
1021
  return py::convert(self->obj.ContentBytes());
1038
1022
  }
1039
1023
  catch (...)
@@ -1081,39 +1065,35 @@ namespace py::cpp::Windows::Networking::PushNotifications
1081
1065
  { }
1082
1066
  };
1083
1067
 
1084
- static PyType_Slot _type_slots_RawNotification[] =
1085
- {
1068
+ static PyType_Slot _type_slots_RawNotification[] = {
1086
1069
  { Py_tp_new, reinterpret_cast<void*>(_new_RawNotification) },
1087
1070
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RawNotification) },
1088
1071
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RawNotification) },
1089
1072
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RawNotification) },
1090
- { },
1073
+ { }
1091
1074
  };
1092
1075
 
1093
- static PyType_Spec type_spec_RawNotification =
1094
- {
1076
+ static PyType_Spec type_spec_RawNotification = {
1095
1077
  "winrt._winrt_windows_networking_pushnotifications.RawNotification",
1096
1078
  sizeof(py::wrapper::Windows::Networking::PushNotifications::RawNotification),
1097
1079
  0,
1098
1080
  Py_TPFLAGS_DEFAULT,
1099
- _type_slots_RawNotification
1100
- };
1081
+ _type_slots_RawNotification};
1101
1082
 
1102
1083
  // ----- Windows.Networking.PushNotifications Initialization --------------------
1103
- PyDoc_STRVAR(module_doc, "Windows::Networking::PushNotifications");
1104
-
1105
1084
 
1106
- static PyModuleDef module_def
1107
- = {PyModuleDef_HEAD_INIT,
1108
- "_winrt_windows_networking_pushnotifications",
1109
- module_doc,
1110
- 0,
1111
- nullptr,
1112
- nullptr,
1113
- nullptr,
1114
- nullptr,
1115
- nullptr};
1085
+ PyDoc_STRVAR(module_doc, "Windows.Networking.PushNotifications");
1116
1086
 
1087
+ static PyModuleDef module_def = {
1088
+ PyModuleDef_HEAD_INIT,
1089
+ "_winrt_windows_networking_pushnotifications",
1090
+ module_doc,
1091
+ 0,
1092
+ nullptr,
1093
+ nullptr,
1094
+ nullptr,
1095
+ nullptr,
1096
+ nullptr};
1117
1097
  } // py::cpp::Windows::Networking::PushNotifications
1118
1098
 
1119
1099
  PyMODINIT_FUNC PyInit__winrt_windows_networking_pushnotifications(void) noexcept
@@ -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.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -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.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,11 +9,11 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.foundation.collections
14
- import winrt.windows.storage.streams
15
- import winrt.windows.system
16
- import winrt.windows.ui.notifications
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.storage.streams as windows_storage_streams
15
+ import winrt.windows.system as windows_system
16
+ import winrt.windows.ui.notifications as windows_ui_notifications
17
17
 
18
18
  from winrt.windows.networking.pushnotifications import PushNotificationType
19
19
 
@@ -24,8 +24,8 @@ class PushNotificationChannel(winrt.system.Object):
24
24
  @staticmethod
25
25
  def _from(obj: winrt.system.Object, /) -> PushNotificationChannel: ...
26
26
  def close(self) -> None: ...
27
- def add_push_notification_received(self, handler: winrt.windows.foundation.TypedEventHandler[PushNotificationChannel, PushNotificationReceivedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
28
- def remove_push_notification_received(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
27
+ def add_push_notification_received(self, handler: windows_foundation.TypedEventHandler[PushNotificationChannel, PushNotificationReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
28
+ def remove_push_notification_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
29
29
  @_property
30
30
  def expiration_time(self) -> datetime.datetime: ...
31
31
  @_property
@@ -34,35 +34,34 @@ class PushNotificationChannel(winrt.system.Object):
34
34
  @typing.final
35
35
  class PushNotificationChannelManager_Static(type):
36
36
  @typing.overload
37
- def create_push_notification_channel_for_application_async(cls) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
37
+ def create_push_notification_channel_for_application_async(cls) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
38
38
  @typing.overload
39
- def create_push_notification_channel_for_application_async(cls, application_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
40
- def create_push_notification_channel_for_secondary_tile_async(cls, tile_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
39
+ def create_push_notification_channel_for_application_async(cls, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
40
+ def create_push_notification_channel_for_secondary_tile_async(cls, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
41
41
  def get_default(cls) -> typing.Optional[PushNotificationChannelManagerForUser]: ...
42
- def get_for_user(cls, user: typing.Optional[winrt.windows.system.User], /) -> typing.Optional[PushNotificationChannelManagerForUser]: ...
43
- def add_channels_revoked(cls, handler: winrt.windows.foundation.EventHandler[PushNotificationChannelsRevokedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
44
- def remove_channels_revoked(cls, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
42
+ def get_for_user(cls, user: typing.Optional[windows_system.User], /) -> typing.Optional[PushNotificationChannelManagerForUser]: ...
43
+ def add_channels_revoked(cls, handler: windows_foundation.EventHandler[PushNotificationChannelsRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
44
+ def remove_channels_revoked(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
45
45
 
46
46
  @typing.final
47
47
  class PushNotificationChannelManager(winrt.system.Object, metaclass=PushNotificationChannelManager_Static):
48
- @staticmethod
49
- def _from(obj: winrt.system.Object, /) -> PushNotificationChannelManager: ...
48
+ pass
50
49
 
51
50
  @typing.final
52
51
  class PushNotificationChannelManagerForUser(winrt.system.Object):
53
52
  @staticmethod
54
53
  def _from(obj: winrt.system.Object, /) -> PushNotificationChannelManagerForUser: ...
55
54
  @typing.overload
56
- def create_push_notification_channel_for_application_async(self) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
55
+ def create_push_notification_channel_for_application_async(self) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
57
56
  @typing.overload
58
- def create_push_notification_channel_for_application_async(self, application_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
59
- def create_push_notification_channel_for_secondary_tile_async(self, tile_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
57
+ def create_push_notification_channel_for_application_async(self, application_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
58
+ def create_push_notification_channel_for_secondary_tile_async(self, tile_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
60
59
  @typing.overload
61
- def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[winrt.windows.storage.streams.IBuffer], channel_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
60
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[windows_storage_streams.IBuffer], channel_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
62
61
  @typing.overload
63
- def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[winrt.windows.storage.streams.IBuffer], channel_id: str, app_id: str, /) -> winrt.windows.foundation.IAsyncOperation[PushNotificationChannel]: ...
62
+ def create_raw_push_notification_channel_with_alternate_key_for_application_async(self, app_server_key: typing.Optional[windows_storage_streams.IBuffer], channel_id: str, app_id: str, /) -> windows_foundation.IAsyncOperation[PushNotificationChannel]: ...
64
63
  @_property
65
- def user(self) -> typing.Optional[winrt.windows.system.User]: ...
64
+ def user(self) -> typing.Optional[windows_system.User]: ...
66
65
 
67
66
  @typing.final
68
67
  class PushNotificationChannelsRevokedEventArgs(winrt.system.Object):
@@ -78,15 +77,15 @@ class PushNotificationReceivedEventArgs(winrt.system.Object):
78
77
  @cancel.setter
79
78
  def cancel(self, value: bool) -> None: ...
80
79
  @_property
81
- def badge_notification(self) -> typing.Optional[winrt.windows.ui.notifications.BadgeNotification]: ...
80
+ def badge_notification(self) -> typing.Optional[windows_ui_notifications.BadgeNotification]: ...
82
81
  @_property
83
82
  def notification_type(self) -> PushNotificationType: ...
84
83
  @_property
85
84
  def raw_notification(self) -> typing.Optional[RawNotification]: ...
86
85
  @_property
87
- def tile_notification(self) -> typing.Optional[winrt.windows.ui.notifications.TileNotification]: ...
86
+ def tile_notification(self) -> typing.Optional[windows_ui_notifications.TileNotification]: ...
88
87
  @_property
89
- def toast_notification(self) -> typing.Optional[winrt.windows.ui.notifications.ToastNotification]: ...
88
+ def toast_notification(self) -> typing.Optional[windows_ui_notifications.ToastNotification]: ...
90
89
 
91
90
  @typing.final
92
91
  class RawNotification(winrt.system.Object):
@@ -97,7 +96,7 @@ class RawNotification(winrt.system.Object):
97
96
  @_property
98
97
  def channel_id(self) -> str: ...
99
98
  @_property
100
- def headers(self) -> typing.Optional[winrt.windows.foundation.collections.IMapView[str, str]]: ...
99
+ def headers(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
101
100
  @_property
102
- def content_bytes(self) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
101
+ def content_bytes(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
103
102
 
@@ -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.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking.PushNotifications
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,13 +12,13 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
21
- Requires-Dist: winrt-Windows.UI.Notifications[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.UI.Notifications[all]==2.1.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.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Foundation.Collections[all]==2.1.0
6
+ winrt-Windows.Storage.Streams[all]==2.1.0
7
+ winrt-Windows.System[all]==2.1.0
8
+ winrt-Windows.UI.Notifications[all]==2.1.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.Foundation[all]==2.0.1
4
- winrt-Windows.Foundation.Collections[all]==2.0.1
5
- winrt-Windows.Storage.Streams[all]==2.0.1
6
- winrt-Windows.System[all]==2.0.1
7
- winrt-Windows.UI.Notifications[all]==2.0.1
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
6
- winrt-Windows.Storage.Streams[all]==2.0.1
7
- winrt-Windows.System[all]==2.0.1
8
- winrt-Windows.UI.Notifications[all]==2.0.1