mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
2311 lines
104 KiB
C++
2311 lines
104 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT
|
|
// v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Microsoft_Windows_Widgets_Feeds_Providers_H
|
|
#define WINRT_Microsoft_Windows_Widgets_Feeds_Providers_H
|
|
#include "winrt/base.h"
|
|
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"),
|
|
"Mismatched C++/WinRT headers.");
|
|
#define CPPWINRT_VERSION "2.0.250303.1"
|
|
#include "winrt/Microsoft.Windows.Widgets.h"
|
|
#include "winrt/impl/Microsoft.Windows.Widgets.Feeds.Providers.2.h"
|
|
#include "winrt/impl/Microsoft.Windows.Widgets.Notifications.2.h"
|
|
#include "winrt/impl/Windows.Foundation.2.h"
|
|
#include "winrt/impl/Windows.Foundation.Collections.2.h"
|
|
#include "winrt/impl/Windows.Storage.Streams.2.h"
|
|
namespace winrt::impl {
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_ICustomQueryParametersRequestedArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(
|
|
abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_ICustomQueryParametersUpdateOptions<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(
|
|
abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_ICustomQueryParametersUpdateOptions<
|
|
D>::CustomQueryParameters() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(
|
|
abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CustomQueryParameters(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>**)this;
|
|
check_hresult(_winrt_abi_type->get_CustomQueryParameters(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_ICustomQueryParametersUpdateOptionsFactory<
|
|
D>::CreateInstance(param::hstring const& feedProviderDefinitionId,
|
|
param::hstring const& customQueryParameters) const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&customQueryParameters),
|
|
&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory>**)this;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&customQueryParameters),
|
|
&value));
|
|
}
|
|
return winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersUpdateOptions{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedAnalyticsInfoReportedArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedAnalyticsInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedAnalyticsInfoReportedArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedAnalyticsInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedAnalyticsInfoReportedArgs<
|
|
D>::AnalyticsJson() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedAnalyticsInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_AnalyticsJson(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_AnalyticsJson(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedAnnouncementInvokedTarget<
|
|
D>::
|
|
OnAnnouncementInvoked(winrt::Microsoft::Windows::Widgets::Notifications::
|
|
FeedAnnouncementInvokedArgs const& args) const {
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedAnnouncementInvokedTarget,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnAnnouncementInvoked(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget>**)this;
|
|
check_hresult(_winrt_abi_type->OnAnnouncementInvoked(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedDisabledArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedDisabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedDisabledArgs,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedDisabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedDisabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedDisabledArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedDisabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedDisabledArgs,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedDisabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedDisabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedEnabledArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedEnabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedEnabledArgs,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedEnabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedEnabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedEnabledArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedEnabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedEnabledArgs,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedEnabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedEnabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedErrorInfoReportedArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedErrorInfoReportedArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedErrorInfoReportedArgs<
|
|
D>::ErrorJson() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedErrorInfoReportedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ErrorJson(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_ErrorJson(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManager<
|
|
D>::GetEnabledFeedProviders() const {
|
|
uint32_t result_impl_size{};
|
|
void** result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManager>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->GetEnabledFeedProviders(&result_impl_size, &result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->GetEnabledFeedProviders(&result_impl_size, &result));
|
|
}
|
|
return com_array<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedProviderInfo>{
|
|
result, result_impl_size, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManager<D>::
|
|
SetCustomQueryParameters(
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersUpdateOptions const& options) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManager>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->SetCustomQueryParameters(*(void**)(&options)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->SetCustomQueryParameters(*(void**)(&options)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManager2<
|
|
D>::SendMessageToContent(param::hstring const& feedProviderDefinitionId,
|
|
param::hstring const& feedDefinitionId,
|
|
param::hstring const& message) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManager2>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager2,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->SendMessageToContent(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&message)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager2>**)this;
|
|
check_hresult(_winrt_abi_type->SendMessageToContent(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&message)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManager2<
|
|
D>::TryShowAnnouncement(param::hstring const& feedProviderDefinitionId,
|
|
param::hstring const& feedDefinitionId,
|
|
winrt::Microsoft::Windows::Widgets::Notifications::
|
|
FeedAnnouncement const& announcement) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManager2>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager2,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->TryShowAnnouncement(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&announcement)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager2>**)this;
|
|
check_hresult(_winrt_abi_type->TryShowAnnouncement(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&announcement)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManager3<D>::
|
|
TryRemoveAnnouncementById(param::hstring const& feedProviderDefinitionId,
|
|
param::hstring const& feedDefinitionId,
|
|
param::hstring const& announcementId) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManager3>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager3,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager3>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->TryRemoveAnnouncementById(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&announcementId)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManager3>**)this;
|
|
check_hresult(_winrt_abi_type->TryRemoveAnnouncementById(
|
|
*(void**)(&feedProviderDefinitionId), *(void**)(&feedDefinitionId),
|
|
*(void**)(&announcementId)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedManagerStatics<
|
|
D>::GetDefault() const {
|
|
void* result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManagerStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedManagerStatics,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManagerStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->GetDefault(&result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManagerStatics>**)this;
|
|
check_hresult(_winrt_abi_type->GetDefault(&result));
|
|
}
|
|
return winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedManager{
|
|
result, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedMessageReceivedArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedMessageReceivedArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedMessageReceivedArgs<
|
|
D>::Message() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedMessageReceivedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Message(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_Message(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProvider<D>::
|
|
OnFeedProviderEnabled(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedProviderEnabledArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnFeedProviderEnabled(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)this;
|
|
check_hresult(_winrt_abi_type->OnFeedProviderEnabled(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProvider<
|
|
D>::OnFeedProviderDisabled(winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::FeedProviderDisabledArgs const&
|
|
args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnFeedProviderDisabled(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)this;
|
|
check_hresult(_winrt_abi_type->OnFeedProviderDisabled(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProvider<
|
|
D>::OnFeedEnabled(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedEnabledArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnFeedEnabled(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)this;
|
|
check_hresult(_winrt_abi_type->OnFeedEnabled(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProvider<
|
|
D>::OnFeedDisabled(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedDisabledArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnFeedDisabled(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)this;
|
|
check_hresult(_winrt_abi_type->OnFeedDisabled(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProvider<D>::
|
|
OnCustomQueryParametersRequested(
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersRequestedArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->OnCustomQueryParametersRequested(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProvider>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->OnCustomQueryParametersRequested(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderAnalytics<
|
|
D>::
|
|
OnAnalyticsInfoReported(
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedAnalyticsInfoReportedArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderAnalytics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderAnalytics,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderAnalytics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnAnalyticsInfoReported(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderAnalytics>**)this;
|
|
check_hresult(_winrt_abi_type->OnAnalyticsInfoReported(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderDisabledArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderDisabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderDisabledArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderDisabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderDisabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderEnabledArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderEnabledArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderEnabledArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderEnabledArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderEnabledArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderErrors<D>::
|
|
OnErrorInfoReported(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedErrorInfoReportedArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderErrors>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderErrors,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderErrors>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnErrorInfoReported(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderErrors>**)this;
|
|
check_hresult(_winrt_abi_type->OnErrorInfoReported(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderInfo<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderInfo>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderInfo,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderInfo>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderInfo>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderInfo<
|
|
D>::EnabledFeedDefinitionIds() const {
|
|
uint32_t value_impl_size{};
|
|
void** value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderInfo>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderInfo,
|
|
D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderInfo>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_EnabledFeedDefinitionIds(
|
|
&value_impl_size, &value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderInfo>**)this;
|
|
check_hresult(_winrt_abi_type->get_EnabledFeedDefinitionIds(
|
|
&value_impl_size, &value));
|
|
}
|
|
return com_array<hstring>{value, value_impl_size, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedProviderMessage<
|
|
D>::OnMessageReceived(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedMessageReceivedArgs const& args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderMessage>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedProviderMessage,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderMessage>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnMessageReceived(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderMessage>**)this;
|
|
check_hresult(_winrt_abi_type->OnMessageReceived(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceProvider<
|
|
D>::OnResourceRequested(winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::FeedResourceRequestedArgs const&
|
|
args) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceProvider>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceProvider,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceProvider>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->OnResourceRequested(*(void**)(&args)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceProvider>**)this;
|
|
check_hresult(_winrt_abi_type->OnResourceRequested(*(void**)(&args)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Uri() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Uri(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->get_Uri(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Method() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Method(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->get_Method(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Method(param::hstring const& value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Method(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->put_Method(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Content() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Content(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->get_Content(&value));
|
|
}
|
|
return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<D>::
|
|
Content(
|
|
winrt::Windows::Storage::Streams::IRandomAccessStreamReference const&
|
|
value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Content(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->put_Content(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Headers() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Headers(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->get_Headers(&value));
|
|
}
|
|
return winrt::Windows::Foundation::Collections::StringMap{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequest<
|
|
D>::Headers(winrt::Windows::Foundation::Collections::StringMap const& value)
|
|
const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequest,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Headers(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest>**)this;
|
|
check_hresult(_winrt_abi_type->put_Headers(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::FeedProviderDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedProviderDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::FeedDefinitionId() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_FeedDefinitionId(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::Request() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Request(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_Request(&value));
|
|
}
|
|
return winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceRequest{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::Response() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Response(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_Response(&value));
|
|
}
|
|
return winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::Response(winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse const& value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Response(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->put_Response(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceRequestedArgs<
|
|
D>::GetDeferral() const {
|
|
void* result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceRequestedArgs,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->GetDeferral(&result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>**)this;
|
|
check_hresult(_winrt_abi_type->GetDeferral(&result));
|
|
}
|
|
return winrt::Windows::Foundation::Deferral{result, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponse<
|
|
D>::Content() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Content(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)this;
|
|
check_hresult(_winrt_abi_type->get_Content(&value));
|
|
}
|
|
return winrt::Windows::Storage::Streams::IRandomAccessStreamReference{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponse<
|
|
D>::Headers() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Headers(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)this;
|
|
check_hresult(_winrt_abi_type->get_Headers(&value));
|
|
}
|
|
return winrt::Windows::Foundation::Collections::IIterable<
|
|
winrt::Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>>{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponse<
|
|
D>::Headers(param::async_iterable<winrt::Windows::Foundation::Collections::
|
|
IKeyValuePair<hstring,
|
|
hstring>> const& value)
|
|
const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Headers(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)this;
|
|
check_hresult(_winrt_abi_type->put_Headers(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponse<
|
|
D>::ReasonPhrase() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ReasonPhrase(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)this;
|
|
check_hresult(_winrt_abi_type->get_ReasonPhrase(&value));
|
|
}
|
|
return hstring{value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponse<
|
|
D>::StatusCode() const {
|
|
int32_t value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponse,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StatusCode(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse>**)this;
|
|
check_hresult(_winrt_abi_type->get_StatusCode(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_Windows_Widgets_Feeds_Providers_IFeedResourceResponseFactory<
|
|
D>::CreateInstance(winrt::Windows::Storage::Streams::
|
|
IRandomAccessStreamReference const& content,
|
|
param::hstring const& reasonPhrase,
|
|
int32_t statusCode) const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponseFactory>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::Windows::Widgets::Feeds::
|
|
Providers::IFeedResourceResponseFactory,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponseFactory>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&content), *(void**)(&reasonPhrase), statusCode, &value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponseFactory>**)this;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&content), *(void**)(&reasonPhrase), statusCode, &value));
|
|
}
|
|
return winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse{value, take_ownership_from_abi};
|
|
}
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_CustomQueryParameters(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().CustomQueryParameters());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory> {
|
|
int32_t __stdcall CreateInstance(void* feedProviderDefinitionId,
|
|
void* customQueryParameters,
|
|
void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersUpdateOptions>(
|
|
this->shim().CreateInstance(
|
|
*reinterpret_cast<hstring const*>(&feedProviderDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&customQueryParameters)));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_AnalyticsJson(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().AnalyticsJson());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget> {
|
|
int32_t __stdcall OnAnnouncementInvoked(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnAnnouncementInvoked(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Notifications::
|
|
FeedAnnouncementInvokedArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedDisabledArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedDisabledArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedEnabledArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedEnabledArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ErrorJson(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().ErrorJson());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager> {
|
|
int32_t __stdcall GetEnabledFeedProviders(uint32_t* __resultSize,
|
|
void*** result) noexcept final try {
|
|
clear_abi(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
std::tie(*__resultSize, *result) =
|
|
detach_abi(this->shim().GetEnabledFeedProviders());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall SetCustomQueryParameters(void* options) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().SetCustomQueryParameters(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersUpdateOptions const*>(
|
|
&options));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager2>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager2> {
|
|
int32_t __stdcall SendMessageToContent(void* feedProviderDefinitionId,
|
|
void* feedDefinitionId,
|
|
void* message) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().SendMessageToContent(
|
|
*reinterpret_cast<hstring const*>(&feedProviderDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&feedDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&message));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall TryShowAnnouncement(void* feedProviderDefinitionId,
|
|
void* feedDefinitionId,
|
|
void* announcement) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().TryShowAnnouncement(
|
|
*reinterpret_cast<hstring const*>(&feedProviderDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&feedDefinitionId),
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Notifications::
|
|
FeedAnnouncement const*>(&announcement));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager3>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager3> {
|
|
int32_t __stdcall TryRemoveAnnouncementById(
|
|
void* feedProviderDefinitionId, void* feedDefinitionId,
|
|
void* announcementId) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().TryRemoveAnnouncementById(
|
|
*reinterpret_cast<hstring const*>(&feedProviderDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&feedDefinitionId),
|
|
*reinterpret_cast<hstring const*>(&announcementId));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManagerStatics>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedManagerStatics> {
|
|
int32_t __stdcall GetDefault(void** result) noexcept final try {
|
|
clear_abi(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedManager>(
|
|
this->shim().GetDefault());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Message(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Message());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider> {
|
|
int32_t __stdcall OnFeedProviderEnabled(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnFeedProviderEnabled(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedProviderEnabledArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall OnFeedProviderDisabled(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnFeedProviderDisabled(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedProviderDisabledArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall OnFeedEnabled(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnFeedEnabled(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedEnabledArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall OnFeedDisabled(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnFeedDisabled(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedDisabledArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall OnCustomQueryParametersRequested(void* args) noexcept final
|
|
try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnCustomQueryParametersRequested(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersRequestedArgs const*>(
|
|
&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderAnalytics>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderAnalytics> {
|
|
int32_t __stdcall OnAnalyticsInfoReported(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnAnalyticsInfoReported(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedAnalyticsInfoReportedArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderDisabledArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderDisabledArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderEnabledArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderEnabledArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderErrors>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderErrors> {
|
|
int32_t __stdcall OnErrorInfoReported(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnErrorInfoReported(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedErrorInfoReportedArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderInfo>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderInfo> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_EnabledFeedDefinitionIds(uint32_t* __valueSize,
|
|
void*** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
std::tie(*__valueSize, *value) =
|
|
detach_abi(this->shim().EnabledFeedDefinitionIds());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderMessage>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderMessage> {
|
|
int32_t __stdcall OnMessageReceived(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnMessageReceived(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedMessageReceivedArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceProvider>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceProvider> {
|
|
int32_t __stdcall OnResourceRequested(void* args) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OnResourceRequested(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceRequestedArgs const*>(&args));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceRequest>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequest> {
|
|
int32_t __stdcall get_Uri(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Uri());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Method(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Method());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Method(void* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Method(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Content(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<
|
|
winrt::Windows::Storage::Streams::IRandomAccessStreamReference>(
|
|
this->shim().Content());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Content(void* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Content(
|
|
*reinterpret_cast<winrt::Windows::Storage::Streams::
|
|
IRandomAccessStreamReference const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Headers(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::Collections::StringMap>(
|
|
this->shim().Headers());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Headers(void* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Headers(
|
|
*reinterpret_cast<
|
|
winrt::Windows::Foundation::Collections::StringMap const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs> {
|
|
int32_t __stdcall get_FeedProviderDefinitionId(void** value) noexcept final
|
|
try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedProviderDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_FeedDefinitionId(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().FeedDefinitionId());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Request(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceRequest>(this->shim().Request());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Response(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse>(this->shim().Response());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Response(void* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Response(
|
|
*reinterpret_cast<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall GetDeferral(void** result) noexcept final try {
|
|
clear_abi(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<winrt::Windows::Foundation::Deferral>(
|
|
this->shim().GetDeferral());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceResponse>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponse> {
|
|
int32_t __stdcall get_Content(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<
|
|
winrt::Windows::Storage::Streams::IRandomAccessStreamReference>(
|
|
this->shim().Content());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_Headers(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::Collections::IIterable<
|
|
winrt::Windows::Foundation::Collections::IKeyValuePair<hstring,
|
|
hstring>>>(
|
|
this->shim().Headers());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Headers(void* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Headers(
|
|
*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<
|
|
winrt::Windows::Foundation::Collections::IKeyValuePair<
|
|
hstring, hstring>> const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ReasonPhrase(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().ReasonPhrase());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_StatusCode(int32_t* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<int32_t>(this->shim().StatusCode());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponseFactory>
|
|
: produce_base<D, winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponseFactory> {
|
|
int32_t __stdcall CreateInstance(void* content, void* reasonPhrase,
|
|
int32_t statusCode,
|
|
void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceResponse>(this->shim().CreateInstance(
|
|
*reinterpret_cast<winrt::Windows::Storage::Streams::
|
|
IRandomAccessStreamReference const*>(&content),
|
|
*reinterpret_cast<hstring const*>(&reasonPhrase), statusCode));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
} // namespace winrt::impl
|
|
WINRT_EXPORT namespace winrt::Microsoft::Windows::Widgets::Feeds::Providers {
|
|
inline CustomQueryParametersUpdateOptions::CustomQueryParametersUpdateOptions(
|
|
param::hstring const& feedProviderDefinitionId,
|
|
param::hstring const& customQueryParameters)
|
|
: CustomQueryParametersUpdateOptions(
|
|
impl::call_factory<CustomQueryParametersUpdateOptions,
|
|
ICustomQueryParametersUpdateOptionsFactory>(
|
|
[&](ICustomQueryParametersUpdateOptionsFactory const& f) {
|
|
return f.CreateInstance(feedProviderDefinitionId,
|
|
customQueryParameters);
|
|
})) {}
|
|
inline auto FeedManager::GetDefault() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedManager (*)(
|
|
IFeedManagerStatics const&),
|
|
FeedManager, IFeedManagerStatics>(
|
|
[](IFeedManagerStatics const& f) { return f.GetDefault(); });
|
|
}
|
|
inline FeedResourceResponse::FeedResourceResponse(
|
|
winrt::Windows::Storage::Streams::IRandomAccessStreamReference const&
|
|
content,
|
|
param::hstring const& reasonPhrase, int32_t statusCode)
|
|
: FeedResourceResponse(impl::call_factory<FeedResourceResponse,
|
|
IFeedResourceResponseFactory>(
|
|
[&](IFeedResourceResponseFactory const& f) {
|
|
return f.CreateInstance(content, reasonPhrase, statusCode);
|
|
})) {}
|
|
}
|
|
namespace std {
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersRequestedArgs> : winrt::impl::hash_base {
|
|
};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptions> : winrt::impl::hash_base {
|
|
};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
ICustomQueryParametersUpdateOptionsFactory>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnalyticsInfoReportedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedAnnouncementInvokedTarget> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedDisabledArgs>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedEnabledArgs>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedErrorInfoReportedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager2>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManager3>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedManagerStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedMessageReceivedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProvider>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderAnalytics> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderDisabledArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedProviderEnabledArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderErrors>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderInfo>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedProviderMessage>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceProvider>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceRequest>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceRequestedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::IFeedResourceResponse>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
IFeedResourceResponseFactory> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersRequestedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
CustomQueryParametersUpdateOptions> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedAnalyticsInfoReportedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedDisabledArgs>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedEnabledArgs>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedErrorInfoReportedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedManager>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedMessageReceivedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedProviderDisabledArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedProviderEnabledArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedProviderInfo>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedResourceRequest>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::Windows::Widgets::Feeds::Providers::
|
|
FeedResourceRequestedArgs> : winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::Windows::Widgets::Feeds::Providers::FeedResourceResponse>
|
|
: winrt::impl::hash_base {};
|
|
#endif
|
|
#ifdef __cpp_lib_format
|
|
#endif
|
|
} // namespace std
|
|
#endif
|