winrt-Windows.ApplicationModel.SocialInfo 2.1.0__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.
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/PKG-INFO +7 -7
- winrt_windows_applicationmodel_socialinfo-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/py.Windows.ApplicationModel.SocialInfo.cpp +497 -71
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_socialinfo-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt/_winrt_windows_applicationmodel_socialinfo.pyi +1 -1
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt/windows/applicationmodel/socialinfo/__init__.py +1 -1
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt_Windows.ApplicationModel.SocialInfo.egg-info/PKG-INFO +7 -7
- winrt_windows_applicationmodel_socialinfo-2.2.0/winrt_Windows.ApplicationModel.SocialInfo.egg-info/requires.txt +7 -0
- winrt_windows_applicationmodel_socialinfo-2.1.0/all-requirements.txt +0 -6
- winrt_windows_applicationmodel_socialinfo-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_socialinfo-2.1.0/winrt_Windows.ApplicationModel.SocialInfo.egg-info/requires.txt +0 -7
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt/windows/applicationmodel/socialinfo/py.typed +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt_Windows.ApplicationModel.SocialInfo.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt_Windows.ApplicationModel.SocialInfo.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_socialinfo-2.1.0 → winrt_windows_applicationmodel_socialinfo-2.2.0}/winrt_Windows.ApplicationModel.SocialInfo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.SocialInfo
|
|
3
|
-
Version: 2.
|
|
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,14 +10,14 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.SocialInfo.h"
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
19
19
|
{
|
|
20
20
|
try
|
|
21
21
|
{
|
|
22
|
-
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedChildItem instance{
|
|
22
|
+
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedChildItem instance{};
|
|
23
23
|
return py::wrap(instance, type);
|
|
24
24
|
}
|
|
25
25
|
catch (...)
|
|
@@ -47,7 +47,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
47
47
|
{
|
|
48
48
|
try
|
|
49
49
|
{
|
|
50
|
-
|
|
50
|
+
static std::optional<bool> is_property_present{};
|
|
51
|
+
|
|
52
|
+
if (!is_property_present.has_value())
|
|
53
|
+
{
|
|
54
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"Timestamp");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!is_property_present.value())
|
|
51
58
|
{
|
|
52
59
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
53
60
|
return nullptr;
|
|
@@ -72,7 +79,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
72
79
|
|
|
73
80
|
try
|
|
74
81
|
{
|
|
75
|
-
|
|
82
|
+
static std::optional<bool> is_property_present{};
|
|
83
|
+
|
|
84
|
+
if (!is_property_present.has_value())
|
|
85
|
+
{
|
|
86
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"Timestamp");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!is_property_present.value())
|
|
76
90
|
{
|
|
77
91
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
92
|
return -1;
|
|
@@ -94,7 +108,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
94
108
|
{
|
|
95
109
|
try
|
|
96
110
|
{
|
|
97
|
-
|
|
111
|
+
static std::optional<bool> is_property_present{};
|
|
112
|
+
|
|
113
|
+
if (!is_property_present.has_value())
|
|
114
|
+
{
|
|
115
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"TargetUri");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!is_property_present.value())
|
|
98
119
|
{
|
|
99
120
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
100
121
|
return nullptr;
|
|
@@ -119,7 +140,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
119
140
|
|
|
120
141
|
try
|
|
121
142
|
{
|
|
122
|
-
|
|
143
|
+
static std::optional<bool> is_property_present{};
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.has_value())
|
|
146
|
+
{
|
|
147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"TargetUri");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (!is_property_present.value())
|
|
123
151
|
{
|
|
124
152
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
153
|
return -1;
|
|
@@ -141,7 +169,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
141
169
|
{
|
|
142
170
|
try
|
|
143
171
|
{
|
|
144
|
-
|
|
172
|
+
static std::optional<bool> is_property_present{};
|
|
173
|
+
|
|
174
|
+
if (!is_property_present.has_value())
|
|
175
|
+
{
|
|
176
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"SharedItem");
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!is_property_present.value())
|
|
145
180
|
{
|
|
146
181
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
147
182
|
return nullptr;
|
|
@@ -166,7 +201,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
166
201
|
|
|
167
202
|
try
|
|
168
203
|
{
|
|
169
|
-
|
|
204
|
+
static std::optional<bool> is_property_present{};
|
|
205
|
+
|
|
206
|
+
if (!is_property_present.has_value())
|
|
207
|
+
{
|
|
208
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"SharedItem");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (!is_property_present.value())
|
|
170
212
|
{
|
|
171
213
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
214
|
return -1;
|
|
@@ -188,7 +230,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
188
230
|
{
|
|
189
231
|
try
|
|
190
232
|
{
|
|
191
|
-
|
|
233
|
+
static std::optional<bool> is_property_present{};
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.has_value())
|
|
236
|
+
{
|
|
237
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"Author");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!is_property_present.value())
|
|
192
241
|
{
|
|
193
242
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
243
|
return nullptr;
|
|
@@ -207,7 +256,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
207
256
|
{
|
|
208
257
|
try
|
|
209
258
|
{
|
|
210
|
-
|
|
259
|
+
static std::optional<bool> is_property_present{};
|
|
260
|
+
|
|
261
|
+
if (!is_property_present.has_value())
|
|
262
|
+
{
|
|
263
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"PrimaryContent");
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!is_property_present.value())
|
|
211
267
|
{
|
|
212
268
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
213
269
|
return nullptr;
|
|
@@ -226,7 +282,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
226
282
|
{
|
|
227
283
|
try
|
|
228
284
|
{
|
|
229
|
-
|
|
285
|
+
static std::optional<bool> is_property_present{};
|
|
286
|
+
|
|
287
|
+
if (!is_property_present.has_value())
|
|
288
|
+
{
|
|
289
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"SecondaryContent");
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (!is_property_present.value())
|
|
230
293
|
{
|
|
231
294
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
232
295
|
return nullptr;
|
|
@@ -245,7 +308,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
245
308
|
{
|
|
246
309
|
try
|
|
247
310
|
{
|
|
248
|
-
|
|
311
|
+
static std::optional<bool> is_property_present{};
|
|
312
|
+
|
|
313
|
+
if (!is_property_present.has_value())
|
|
314
|
+
{
|
|
315
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedChildItem", L"Thumbnails");
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (!is_property_present.value())
|
|
249
319
|
{
|
|
250
320
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
251
321
|
return nullptr;
|
|
@@ -337,7 +407,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
337
407
|
{
|
|
338
408
|
try
|
|
339
409
|
{
|
|
340
|
-
|
|
410
|
+
static std::optional<bool> is_property_present{};
|
|
411
|
+
|
|
412
|
+
if (!is_property_present.has_value())
|
|
413
|
+
{
|
|
414
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"Title");
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (!is_property_present.value())
|
|
341
418
|
{
|
|
342
419
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
343
420
|
return nullptr;
|
|
@@ -362,7 +439,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
362
439
|
|
|
363
440
|
try
|
|
364
441
|
{
|
|
365
|
-
|
|
442
|
+
static std::optional<bool> is_property_present{};
|
|
443
|
+
|
|
444
|
+
if (!is_property_present.has_value())
|
|
445
|
+
{
|
|
446
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"Title");
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (!is_property_present.value())
|
|
366
450
|
{
|
|
367
451
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
368
452
|
return -1;
|
|
@@ -384,7 +468,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
384
468
|
{
|
|
385
469
|
try
|
|
386
470
|
{
|
|
387
|
-
|
|
471
|
+
static std::optional<bool> is_property_present{};
|
|
472
|
+
|
|
473
|
+
if (!is_property_present.has_value())
|
|
474
|
+
{
|
|
475
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"TargetUri");
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
if (!is_property_present.value())
|
|
388
479
|
{
|
|
389
480
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
390
481
|
return nullptr;
|
|
@@ -409,7 +500,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
409
500
|
|
|
410
501
|
try
|
|
411
502
|
{
|
|
412
|
-
|
|
503
|
+
static std::optional<bool> is_property_present{};
|
|
504
|
+
|
|
505
|
+
if (!is_property_present.has_value())
|
|
506
|
+
{
|
|
507
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"TargetUri");
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (!is_property_present.value())
|
|
413
511
|
{
|
|
414
512
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
415
513
|
return -1;
|
|
@@ -431,7 +529,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
431
529
|
{
|
|
432
530
|
try
|
|
433
531
|
{
|
|
434
|
-
|
|
532
|
+
static std::optional<bool> is_property_present{};
|
|
533
|
+
|
|
534
|
+
if (!is_property_present.has_value())
|
|
535
|
+
{
|
|
536
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"Message");
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
if (!is_property_present.value())
|
|
435
540
|
{
|
|
436
541
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
437
542
|
return nullptr;
|
|
@@ -456,7 +561,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
456
561
|
|
|
457
562
|
try
|
|
458
563
|
{
|
|
459
|
-
|
|
564
|
+
static std::optional<bool> is_property_present{};
|
|
565
|
+
|
|
566
|
+
if (!is_property_present.has_value())
|
|
567
|
+
{
|
|
568
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedContent", L"Message");
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (!is_property_present.value())
|
|
460
572
|
{
|
|
461
573
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
462
574
|
return -1;
|
|
@@ -541,7 +653,7 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
541
653
|
{
|
|
542
654
|
try
|
|
543
655
|
{
|
|
544
|
-
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedItem instance{
|
|
656
|
+
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedItem instance{};
|
|
545
657
|
return py::wrap(instance, type);
|
|
546
658
|
}
|
|
547
659
|
catch (...)
|
|
@@ -569,7 +681,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
569
681
|
{
|
|
570
682
|
try
|
|
571
683
|
{
|
|
572
|
-
|
|
684
|
+
static std::optional<bool> is_property_present{};
|
|
685
|
+
|
|
686
|
+
if (!is_property_present.has_value())
|
|
687
|
+
{
|
|
688
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Timestamp");
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (!is_property_present.value())
|
|
573
692
|
{
|
|
574
693
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
575
694
|
return nullptr;
|
|
@@ -594,7 +713,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
594
713
|
|
|
595
714
|
try
|
|
596
715
|
{
|
|
597
|
-
|
|
716
|
+
static std::optional<bool> is_property_present{};
|
|
717
|
+
|
|
718
|
+
if (!is_property_present.has_value())
|
|
719
|
+
{
|
|
720
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Timestamp");
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
if (!is_property_present.value())
|
|
598
724
|
{
|
|
599
725
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
600
726
|
return -1;
|
|
@@ -616,7 +742,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
616
742
|
{
|
|
617
743
|
try
|
|
618
744
|
{
|
|
619
|
-
|
|
745
|
+
static std::optional<bool> is_property_present{};
|
|
746
|
+
|
|
747
|
+
if (!is_property_present.has_value())
|
|
748
|
+
{
|
|
749
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"TargetUri");
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
if (!is_property_present.value())
|
|
620
753
|
{
|
|
621
754
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
622
755
|
return nullptr;
|
|
@@ -641,7 +774,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
641
774
|
|
|
642
775
|
try
|
|
643
776
|
{
|
|
644
|
-
|
|
777
|
+
static std::optional<bool> is_property_present{};
|
|
778
|
+
|
|
779
|
+
if (!is_property_present.has_value())
|
|
780
|
+
{
|
|
781
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"TargetUri");
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (!is_property_present.value())
|
|
645
785
|
{
|
|
646
786
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
647
787
|
return -1;
|
|
@@ -663,7 +803,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
663
803
|
{
|
|
664
804
|
try
|
|
665
805
|
{
|
|
666
|
-
|
|
806
|
+
static std::optional<bool> is_property_present{};
|
|
807
|
+
|
|
808
|
+
if (!is_property_present.has_value())
|
|
809
|
+
{
|
|
810
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Style");
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
if (!is_property_present.value())
|
|
667
814
|
{
|
|
668
815
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
669
816
|
return nullptr;
|
|
@@ -688,7 +835,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
688
835
|
|
|
689
836
|
try
|
|
690
837
|
{
|
|
691
|
-
|
|
838
|
+
static std::optional<bool> is_property_present{};
|
|
839
|
+
|
|
840
|
+
if (!is_property_present.has_value())
|
|
841
|
+
{
|
|
842
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Style");
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
if (!is_property_present.value())
|
|
692
846
|
{
|
|
693
847
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
694
848
|
return -1;
|
|
@@ -710,7 +864,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
710
864
|
{
|
|
711
865
|
try
|
|
712
866
|
{
|
|
713
|
-
|
|
867
|
+
static std::optional<bool> is_property_present{};
|
|
868
|
+
|
|
869
|
+
if (!is_property_present.has_value())
|
|
870
|
+
{
|
|
871
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"SharedItem");
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
if (!is_property_present.value())
|
|
714
875
|
{
|
|
715
876
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
716
877
|
return nullptr;
|
|
@@ -735,7 +896,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
735
896
|
|
|
736
897
|
try
|
|
737
898
|
{
|
|
738
|
-
|
|
899
|
+
static std::optional<bool> is_property_present{};
|
|
900
|
+
|
|
901
|
+
if (!is_property_present.has_value())
|
|
902
|
+
{
|
|
903
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"SharedItem");
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
if (!is_property_present.value())
|
|
739
907
|
{
|
|
740
908
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
741
909
|
return -1;
|
|
@@ -757,7 +925,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
757
925
|
{
|
|
758
926
|
try
|
|
759
927
|
{
|
|
760
|
-
|
|
928
|
+
static std::optional<bool> is_property_present{};
|
|
929
|
+
|
|
930
|
+
if (!is_property_present.has_value())
|
|
931
|
+
{
|
|
932
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"RemoteId");
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
if (!is_property_present.value())
|
|
761
936
|
{
|
|
762
937
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
763
938
|
return nullptr;
|
|
@@ -782,7 +957,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
782
957
|
|
|
783
958
|
try
|
|
784
959
|
{
|
|
785
|
-
|
|
960
|
+
static std::optional<bool> is_property_present{};
|
|
961
|
+
|
|
962
|
+
if (!is_property_present.has_value())
|
|
963
|
+
{
|
|
964
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"RemoteId");
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
if (!is_property_present.value())
|
|
786
968
|
{
|
|
787
969
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
788
970
|
return -1;
|
|
@@ -804,7 +986,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
804
986
|
{
|
|
805
987
|
try
|
|
806
988
|
{
|
|
807
|
-
|
|
989
|
+
static std::optional<bool> is_property_present{};
|
|
990
|
+
|
|
991
|
+
if (!is_property_present.has_value())
|
|
992
|
+
{
|
|
993
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"ChildItem");
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
if (!is_property_present.value())
|
|
808
997
|
{
|
|
809
998
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
810
999
|
return nullptr;
|
|
@@ -829,7 +1018,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
829
1018
|
|
|
830
1019
|
try
|
|
831
1020
|
{
|
|
832
|
-
|
|
1021
|
+
static std::optional<bool> is_property_present{};
|
|
1022
|
+
|
|
1023
|
+
if (!is_property_present.has_value())
|
|
1024
|
+
{
|
|
1025
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"ChildItem");
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
if (!is_property_present.value())
|
|
833
1029
|
{
|
|
834
1030
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
835
1031
|
return -1;
|
|
@@ -851,7 +1047,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
851
1047
|
{
|
|
852
1048
|
try
|
|
853
1049
|
{
|
|
854
|
-
|
|
1050
|
+
static std::optional<bool> is_property_present{};
|
|
1051
|
+
|
|
1052
|
+
if (!is_property_present.has_value())
|
|
1053
|
+
{
|
|
1054
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"BadgeStyle");
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (!is_property_present.value())
|
|
855
1058
|
{
|
|
856
1059
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
857
1060
|
return nullptr;
|
|
@@ -876,7 +1079,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
876
1079
|
|
|
877
1080
|
try
|
|
878
1081
|
{
|
|
879
|
-
|
|
1082
|
+
static std::optional<bool> is_property_present{};
|
|
1083
|
+
|
|
1084
|
+
if (!is_property_present.has_value())
|
|
1085
|
+
{
|
|
1086
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"BadgeStyle");
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
if (!is_property_present.value())
|
|
880
1090
|
{
|
|
881
1091
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
882
1092
|
return -1;
|
|
@@ -898,7 +1108,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
898
1108
|
{
|
|
899
1109
|
try
|
|
900
1110
|
{
|
|
901
|
-
|
|
1111
|
+
static std::optional<bool> is_property_present{};
|
|
1112
|
+
|
|
1113
|
+
if (!is_property_present.has_value())
|
|
1114
|
+
{
|
|
1115
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"BadgeCountValue");
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
if (!is_property_present.value())
|
|
902
1119
|
{
|
|
903
1120
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
904
1121
|
return nullptr;
|
|
@@ -923,7 +1140,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
923
1140
|
|
|
924
1141
|
try
|
|
925
1142
|
{
|
|
926
|
-
|
|
1143
|
+
static std::optional<bool> is_property_present{};
|
|
1144
|
+
|
|
1145
|
+
if (!is_property_present.has_value())
|
|
1146
|
+
{
|
|
1147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"BadgeCountValue");
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
if (!is_property_present.value())
|
|
927
1151
|
{
|
|
928
1152
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
929
1153
|
return -1;
|
|
@@ -945,7 +1169,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
945
1169
|
{
|
|
946
1170
|
try
|
|
947
1171
|
{
|
|
948
|
-
|
|
1172
|
+
static std::optional<bool> is_property_present{};
|
|
1173
|
+
|
|
1174
|
+
if (!is_property_present.has_value())
|
|
1175
|
+
{
|
|
1176
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Author");
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
if (!is_property_present.value())
|
|
949
1180
|
{
|
|
950
1181
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
951
1182
|
return nullptr;
|
|
@@ -964,7 +1195,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
964
1195
|
{
|
|
965
1196
|
try
|
|
966
1197
|
{
|
|
967
|
-
|
|
1198
|
+
static std::optional<bool> is_property_present{};
|
|
1199
|
+
|
|
1200
|
+
if (!is_property_present.has_value())
|
|
1201
|
+
{
|
|
1202
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"Thumbnails");
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
if (!is_property_present.value())
|
|
968
1206
|
{
|
|
969
1207
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
970
1208
|
return nullptr;
|
|
@@ -983,7 +1221,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
983
1221
|
{
|
|
984
1222
|
try
|
|
985
1223
|
{
|
|
986
|
-
|
|
1224
|
+
static std::optional<bool> is_property_present{};
|
|
1225
|
+
|
|
1226
|
+
if (!is_property_present.has_value())
|
|
1227
|
+
{
|
|
1228
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"PrimaryContent");
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (!is_property_present.value())
|
|
987
1232
|
{
|
|
988
1233
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
989
1234
|
return nullptr;
|
|
@@ -1002,7 +1247,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1002
1247
|
{
|
|
1003
1248
|
try
|
|
1004
1249
|
{
|
|
1005
|
-
|
|
1250
|
+
static std::optional<bool> is_property_present{};
|
|
1251
|
+
|
|
1252
|
+
if (!is_property_present.has_value())
|
|
1253
|
+
{
|
|
1254
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedItem", L"SecondaryContent");
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
if (!is_property_present.value())
|
|
1006
1258
|
{
|
|
1007
1259
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1008
1260
|
return nullptr;
|
|
@@ -1093,7 +1345,7 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1093
1345
|
{
|
|
1094
1346
|
try
|
|
1095
1347
|
{
|
|
1096
|
-
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem instance{
|
|
1348
|
+
winrt::Windows::ApplicationModel::SocialInfo::SocialFeedSharedItem instance{};
|
|
1097
1349
|
return py::wrap(instance, type);
|
|
1098
1350
|
}
|
|
1099
1351
|
catch (...)
|
|
@@ -1121,7 +1373,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1121
1373
|
{
|
|
1122
1374
|
try
|
|
1123
1375
|
{
|
|
1124
|
-
|
|
1376
|
+
static std::optional<bool> is_property_present{};
|
|
1377
|
+
|
|
1378
|
+
if (!is_property_present.has_value())
|
|
1379
|
+
{
|
|
1380
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"Timestamp");
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
if (!is_property_present.value())
|
|
1125
1384
|
{
|
|
1126
1385
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1127
1386
|
return nullptr;
|
|
@@ -1146,7 +1405,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1146
1405
|
|
|
1147
1406
|
try
|
|
1148
1407
|
{
|
|
1149
|
-
|
|
1408
|
+
static std::optional<bool> is_property_present{};
|
|
1409
|
+
|
|
1410
|
+
if (!is_property_present.has_value())
|
|
1411
|
+
{
|
|
1412
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"Timestamp");
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
if (!is_property_present.value())
|
|
1150
1416
|
{
|
|
1151
1417
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1152
1418
|
return -1;
|
|
@@ -1168,7 +1434,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1168
1434
|
{
|
|
1169
1435
|
try
|
|
1170
1436
|
{
|
|
1171
|
-
|
|
1437
|
+
static std::optional<bool> is_property_present{};
|
|
1438
|
+
|
|
1439
|
+
if (!is_property_present.has_value())
|
|
1440
|
+
{
|
|
1441
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"Thumbnail");
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
if (!is_property_present.value())
|
|
1172
1445
|
{
|
|
1173
1446
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1174
1447
|
return nullptr;
|
|
@@ -1193,7 +1466,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1193
1466
|
|
|
1194
1467
|
try
|
|
1195
1468
|
{
|
|
1196
|
-
|
|
1469
|
+
static std::optional<bool> is_property_present{};
|
|
1470
|
+
|
|
1471
|
+
if (!is_property_present.has_value())
|
|
1472
|
+
{
|
|
1473
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"Thumbnail");
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
if (!is_property_present.value())
|
|
1197
1477
|
{
|
|
1198
1478
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1199
1479
|
return -1;
|
|
@@ -1215,7 +1495,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1215
1495
|
{
|
|
1216
1496
|
try
|
|
1217
1497
|
{
|
|
1218
|
-
|
|
1498
|
+
static std::optional<bool> is_property_present{};
|
|
1499
|
+
|
|
1500
|
+
if (!is_property_present.has_value())
|
|
1501
|
+
{
|
|
1502
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"TargetUri");
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
if (!is_property_present.value())
|
|
1219
1506
|
{
|
|
1220
1507
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1221
1508
|
return nullptr;
|
|
@@ -1240,7 +1527,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1240
1527
|
|
|
1241
1528
|
try
|
|
1242
1529
|
{
|
|
1243
|
-
|
|
1530
|
+
static std::optional<bool> is_property_present{};
|
|
1531
|
+
|
|
1532
|
+
if (!is_property_present.has_value())
|
|
1533
|
+
{
|
|
1534
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"TargetUri");
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
if (!is_property_present.value())
|
|
1244
1538
|
{
|
|
1245
1539
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1246
1540
|
return -1;
|
|
@@ -1262,7 +1556,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1262
1556
|
{
|
|
1263
1557
|
try
|
|
1264
1558
|
{
|
|
1265
|
-
|
|
1559
|
+
static std::optional<bool> is_property_present{};
|
|
1560
|
+
|
|
1561
|
+
if (!is_property_present.has_value())
|
|
1562
|
+
{
|
|
1563
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"OriginalSource");
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
if (!is_property_present.value())
|
|
1266
1567
|
{
|
|
1267
1568
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1268
1569
|
return nullptr;
|
|
@@ -1287,7 +1588,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1287
1588
|
|
|
1288
1589
|
try
|
|
1289
1590
|
{
|
|
1290
|
-
|
|
1591
|
+
static std::optional<bool> is_property_present{};
|
|
1592
|
+
|
|
1593
|
+
if (!is_property_present.has_value())
|
|
1594
|
+
{
|
|
1595
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"OriginalSource");
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
if (!is_property_present.value())
|
|
1291
1599
|
{
|
|
1292
1600
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1293
1601
|
return -1;
|
|
@@ -1309,7 +1617,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1309
1617
|
{
|
|
1310
1618
|
try
|
|
1311
1619
|
{
|
|
1312
|
-
|
|
1620
|
+
static std::optional<bool> is_property_present{};
|
|
1621
|
+
|
|
1622
|
+
if (!is_property_present.has_value())
|
|
1623
|
+
{
|
|
1624
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialFeedSharedItem", L"Content");
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
if (!is_property_present.value())
|
|
1313
1628
|
{
|
|
1314
1629
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1315
1630
|
return nullptr;
|
|
@@ -1393,7 +1708,7 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1393
1708
|
{
|
|
1394
1709
|
try
|
|
1395
1710
|
{
|
|
1396
|
-
winrt::Windows::ApplicationModel::SocialInfo::SocialItemThumbnail instance{
|
|
1711
|
+
winrt::Windows::ApplicationModel::SocialInfo::SocialItemThumbnail instance{};
|
|
1397
1712
|
return py::wrap(instance, type);
|
|
1398
1713
|
}
|
|
1399
1714
|
catch (...)
|
|
@@ -1425,7 +1740,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1425
1740
|
{
|
|
1426
1741
|
try
|
|
1427
1742
|
{
|
|
1428
|
-
|
|
1743
|
+
static std::optional<bool> is_overload_present{};
|
|
1744
|
+
|
|
1745
|
+
if (!is_overload_present.has_value())
|
|
1746
|
+
{
|
|
1747
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"SetImageAsync", 1);
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
if (!is_overload_present.value())
|
|
1429
1751
|
{
|
|
1430
1752
|
py::set_arg_count_version_error(1);
|
|
1431
1753
|
return nullptr;
|
|
@@ -1452,7 +1774,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1452
1774
|
{
|
|
1453
1775
|
try
|
|
1454
1776
|
{
|
|
1455
|
-
|
|
1777
|
+
static std::optional<bool> is_property_present{};
|
|
1778
|
+
|
|
1779
|
+
if (!is_property_present.has_value())
|
|
1780
|
+
{
|
|
1781
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"TargetUri");
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
if (!is_property_present.value())
|
|
1456
1785
|
{
|
|
1457
1786
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1458
1787
|
return nullptr;
|
|
@@ -1477,7 +1806,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1477
1806
|
|
|
1478
1807
|
try
|
|
1479
1808
|
{
|
|
1480
|
-
|
|
1809
|
+
static std::optional<bool> is_property_present{};
|
|
1810
|
+
|
|
1811
|
+
if (!is_property_present.has_value())
|
|
1812
|
+
{
|
|
1813
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"TargetUri");
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
if (!is_property_present.value())
|
|
1481
1817
|
{
|
|
1482
1818
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1483
1819
|
return -1;
|
|
@@ -1499,7 +1835,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1499
1835
|
{
|
|
1500
1836
|
try
|
|
1501
1837
|
{
|
|
1502
|
-
|
|
1838
|
+
static std::optional<bool> is_property_present{};
|
|
1839
|
+
|
|
1840
|
+
if (!is_property_present.has_value())
|
|
1841
|
+
{
|
|
1842
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"ImageUri");
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
if (!is_property_present.value())
|
|
1503
1846
|
{
|
|
1504
1847
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1505
1848
|
return nullptr;
|
|
@@ -1524,7 +1867,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1524
1867
|
|
|
1525
1868
|
try
|
|
1526
1869
|
{
|
|
1527
|
-
|
|
1870
|
+
static std::optional<bool> is_property_present{};
|
|
1871
|
+
|
|
1872
|
+
if (!is_property_present.has_value())
|
|
1873
|
+
{
|
|
1874
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"ImageUri");
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
if (!is_property_present.value())
|
|
1528
1878
|
{
|
|
1529
1879
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1530
1880
|
return -1;
|
|
@@ -1546,7 +1896,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1546
1896
|
{
|
|
1547
1897
|
try
|
|
1548
1898
|
{
|
|
1549
|
-
|
|
1899
|
+
static std::optional<bool> is_property_present{};
|
|
1900
|
+
|
|
1901
|
+
if (!is_property_present.has_value())
|
|
1902
|
+
{
|
|
1903
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"BitmapSize");
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
if (!is_property_present.value())
|
|
1550
1907
|
{
|
|
1551
1908
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1552
1909
|
return nullptr;
|
|
@@ -1571,7 +1928,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1571
1928
|
|
|
1572
1929
|
try
|
|
1573
1930
|
{
|
|
1574
|
-
|
|
1931
|
+
static std::optional<bool> is_property_present{};
|
|
1932
|
+
|
|
1933
|
+
if (!is_property_present.has_value())
|
|
1934
|
+
{
|
|
1935
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialItemThumbnail", L"BitmapSize");
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
if (!is_property_present.value())
|
|
1575
1939
|
{
|
|
1576
1940
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1577
1941
|
return -1;
|
|
@@ -1663,7 +2027,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1663
2027
|
{
|
|
1664
2028
|
try
|
|
1665
2029
|
{
|
|
1666
|
-
|
|
2030
|
+
static std::optional<bool> is_property_present{};
|
|
2031
|
+
|
|
2032
|
+
if (!is_property_present.has_value())
|
|
2033
|
+
{
|
|
2034
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"UserName");
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
if (!is_property_present.value())
|
|
1667
2038
|
{
|
|
1668
2039
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1669
2040
|
return nullptr;
|
|
@@ -1688,7 +2059,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1688
2059
|
|
|
1689
2060
|
try
|
|
1690
2061
|
{
|
|
1691
|
-
|
|
2062
|
+
static std::optional<bool> is_property_present{};
|
|
2063
|
+
|
|
2064
|
+
if (!is_property_present.has_value())
|
|
2065
|
+
{
|
|
2066
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"UserName");
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
if (!is_property_present.value())
|
|
1692
2070
|
{
|
|
1693
2071
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1694
2072
|
return -1;
|
|
@@ -1710,7 +2088,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1710
2088
|
{
|
|
1711
2089
|
try
|
|
1712
2090
|
{
|
|
1713
|
-
|
|
2091
|
+
static std::optional<bool> is_property_present{};
|
|
2092
|
+
|
|
2093
|
+
if (!is_property_present.has_value())
|
|
2094
|
+
{
|
|
2095
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"TargetUri");
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
if (!is_property_present.value())
|
|
1714
2099
|
{
|
|
1715
2100
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1716
2101
|
return nullptr;
|
|
@@ -1735,7 +2120,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1735
2120
|
|
|
1736
2121
|
try
|
|
1737
2122
|
{
|
|
1738
|
-
|
|
2123
|
+
static std::optional<bool> is_property_present{};
|
|
2124
|
+
|
|
2125
|
+
if (!is_property_present.has_value())
|
|
2126
|
+
{
|
|
2127
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"TargetUri");
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
if (!is_property_present.value())
|
|
1739
2131
|
{
|
|
1740
2132
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1741
2133
|
return -1;
|
|
@@ -1757,7 +2149,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1757
2149
|
{
|
|
1758
2150
|
try
|
|
1759
2151
|
{
|
|
1760
|
-
|
|
2152
|
+
static std::optional<bool> is_property_present{};
|
|
2153
|
+
|
|
2154
|
+
if (!is_property_present.has_value())
|
|
2155
|
+
{
|
|
2156
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"RemoteId");
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
if (!is_property_present.value())
|
|
1761
2160
|
{
|
|
1762
2161
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1763
2162
|
return nullptr;
|
|
@@ -1782,7 +2181,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1782
2181
|
|
|
1783
2182
|
try
|
|
1784
2183
|
{
|
|
1785
|
-
|
|
2184
|
+
static std::optional<bool> is_property_present{};
|
|
2185
|
+
|
|
2186
|
+
if (!is_property_present.has_value())
|
|
2187
|
+
{
|
|
2188
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"RemoteId");
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
if (!is_property_present.value())
|
|
1786
2192
|
{
|
|
1787
2193
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1788
2194
|
return -1;
|
|
@@ -1804,7 +2210,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1804
2210
|
{
|
|
1805
2211
|
try
|
|
1806
2212
|
{
|
|
1807
|
-
|
|
2213
|
+
static std::optional<bool> is_property_present{};
|
|
2214
|
+
|
|
2215
|
+
if (!is_property_present.has_value())
|
|
2216
|
+
{
|
|
2217
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"DisplayName");
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
if (!is_property_present.value())
|
|
1808
2221
|
{
|
|
1809
2222
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1810
2223
|
return nullptr;
|
|
@@ -1829,7 +2242,14 @@ namespace py::cpp::Windows::ApplicationModel::SocialInfo
|
|
|
1829
2242
|
|
|
1830
2243
|
try
|
|
1831
2244
|
{
|
|
1832
|
-
|
|
2245
|
+
static std::optional<bool> is_property_present{};
|
|
2246
|
+
|
|
2247
|
+
if (!is_property_present.has_value())
|
|
2248
|
+
{
|
|
2249
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.SocialInfo.SocialUserInfo", L"DisplayName");
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
if (!is_property_present.value())
|
|
1833
2253
|
{
|
|
1834
2254
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1835
2255
|
return -1;
|
|
@@ -1945,32 +2365,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_socialinfo(void) noexcept
|
|
|
1945
2365
|
return nullptr;
|
|
1946
2366
|
}
|
|
1947
2367
|
|
|
1948
|
-
|
|
2368
|
+
py::pytype_handle SocialFeedChildItem_type{py::register_python_type(module.get(), &type_spec_SocialFeedChildItem, object_bases.get(), nullptr)};
|
|
2369
|
+
if (!SocialFeedChildItem_type)
|
|
1949
2370
|
{
|
|
1950
2371
|
return nullptr;
|
|
1951
2372
|
}
|
|
1952
2373
|
|
|
1953
|
-
|
|
2374
|
+
py::pytype_handle SocialFeedContent_type{py::register_python_type(module.get(), &type_spec_SocialFeedContent, object_bases.get(), nullptr)};
|
|
2375
|
+
if (!SocialFeedContent_type)
|
|
1954
2376
|
{
|
|
1955
2377
|
return nullptr;
|
|
1956
2378
|
}
|
|
1957
2379
|
|
|
1958
|
-
|
|
2380
|
+
py::pytype_handle SocialFeedItem_type{py::register_python_type(module.get(), &type_spec_SocialFeedItem, object_bases.get(), nullptr)};
|
|
2381
|
+
if (!SocialFeedItem_type)
|
|
1959
2382
|
{
|
|
1960
2383
|
return nullptr;
|
|
1961
2384
|
}
|
|
1962
2385
|
|
|
1963
|
-
|
|
2386
|
+
py::pytype_handle SocialFeedSharedItem_type{py::register_python_type(module.get(), &type_spec_SocialFeedSharedItem, object_bases.get(), nullptr)};
|
|
2387
|
+
if (!SocialFeedSharedItem_type)
|
|
1964
2388
|
{
|
|
1965
2389
|
return nullptr;
|
|
1966
2390
|
}
|
|
1967
2391
|
|
|
1968
|
-
|
|
2392
|
+
py::pytype_handle SocialItemThumbnail_type{py::register_python_type(module.get(), &type_spec_SocialItemThumbnail, object_bases.get(), nullptr)};
|
|
2393
|
+
if (!SocialItemThumbnail_type)
|
|
1969
2394
|
{
|
|
1970
2395
|
return nullptr;
|
|
1971
2396
|
}
|
|
1972
2397
|
|
|
1973
|
-
|
|
2398
|
+
py::pytype_handle SocialUserInfo_type{py::register_python_type(module.get(), &type_spec_SocialUserInfo, object_bases.get(), nullptr)};
|
|
2399
|
+
if (!SocialUserInfo_type)
|
|
1974
2400
|
{
|
|
1975
2401
|
return nullptr;
|
|
1976
2402
|
}
|
|
@@ -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.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.SocialInfo
|
|
3
|
-
Version: 2.
|
|
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,14 +10,14 @@ 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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Graphics.Imaging[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|