Files
archived-WinDurango/vcpkg_installed/vcpkg/pkgs/cppwinrt_x64-windows/include/winrt/Windows.ApplicationModel.Calls.h
2026-01-27 19:20:15 -03:00

8801 lines
527 KiB
C++

// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
#pragma once
#ifndef WINRT_Windows_ApplicationModel_Calls_H
#define WINRT_Windows_ApplicationModel_Calls_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/Windows.ApplicationModel.h"
#include "winrt/impl/Windows.ApplicationModel.Contacts.2.h"
#include "winrt/impl/Windows.Devices.Enumeration.2.h"
#include "winrt/impl/Windows.Foundation.2.h"
#include "winrt/impl/Windows.Foundation.Collections.2.h"
#include "winrt/impl/Windows.System.2.h"
#include "winrt/impl/Windows.UI.2.h"
#include "winrt/impl/Windows.ApplicationModel.Calls.2.h"
namespace winrt::impl
{
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::Context() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Context(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Context(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::Context(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ContactName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ContactName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ContactNumber() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ContactNumber(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ServiceName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::ServiceName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptions<D>::AssociatedDeviceIds() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
return winrt::Windows::Foundation::Collections::IVector<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAcceptedVoipPhoneCallOptionsFactory<D>::CreateInstance(param::iterable<hstring> const& associatedDeviceIds) const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory, 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::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory>**)this;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
return winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::Context() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Context(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Context(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::Context(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ContactName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ContactName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ContactNumber() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ContactNumber(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ServiceName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::ServiceName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptions<D>::AssociatedDeviceIds() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
return winrt::Windows::Foundation::Collections::IVector<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IAppInitiatedVoipPhoneCallOptionsFactory<D>::CreateInstance(param::iterable<hstring> const& associatedDeviceIds) const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory, 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::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory>**)this;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
return winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ICallAnswerEventArgs<D>::AcceptedMedia() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs, 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::Windows::ApplicationModel::Calls::ICallAnswerEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AcceptedMedia(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs>**)this;
check_hresult(_winrt_abi_type->get_AcceptedMedia(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ICallAnswerEventArgs2<D>::SourceDeviceId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2, 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::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SourceDeviceId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2>**)this;
check_hresult(_winrt_abi_type->get_SourceDeviceId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ICallRejectEventArgs<D>::RejectReason() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs, 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::Windows::ApplicationModel::Calls::ICallRejectEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RejectReason(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs>**)this;
check_hresult(_winrt_abi_type->get_RejectReason(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ICallStateChangeEventArgs<D>::State() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallState value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs, 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::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_State(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs>**)this;
check_hresult(_winrt_abi_type->get_State(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Context() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Context(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Context(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Context(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactNumber() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactNumber(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactNumber(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactNumber(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactImage() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactImage(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactImage(&value));
}
return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactImage(winrt::Windows::Foundation::Uri const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactImage(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactImage(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ServiceName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ServiceName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::BrandingImage() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_BrandingImage(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_BrandingImage(&value));
}
return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::BrandingImage(winrt::Windows::Foundation::Uri const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_BrandingImage(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_BrandingImage(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::CallDetails() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallDetails(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_CallDetails(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::CallDetails(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_CallDetails(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_CallDetails(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Ringtone() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Ringtone(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Ringtone(&value));
}
return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Ringtone(winrt::Windows::Foundation::Uri const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Ringtone(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Ringtone(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::RingTimeout() const
{
winrt::Windows::Foundation::TimeSpan value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RingTimeout(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_RingTimeout(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::RingTimeout(winrt::Windows::Foundation::TimeSpan const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_RingTimeout(impl::bind_in(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_RingTimeout(impl::bind_in(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactRemoteId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactRemoteId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactRemoteId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::ContactRemoteId(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactRemoteId(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactRemoteId(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptions<D>::AssociatedDeviceIds() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
return winrt::Windows::Foundation::Collections::IVector<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IIncomingVoipPhoneCallOptionsFactory<D>::CreateInstance(param::iterable<hstring> const& associatedDeviceIds) const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory, 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::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory>**)this;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
return winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndCallDeferral<D>::Complete() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral, 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::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Complete());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral>**)this;
check_hresult(_winrt_abi_type->Complete());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndRequestedEventArgs<D>::GetDeferral() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs, 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::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeferral(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>**)this;
check_hresult(_winrt_abi_type->GetDeferral(&value));
}
return winrt::Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallEndRequestedEventArgs<D>::Deadline() const
{
winrt::Windows::Foundation::DateTime value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs, 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::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Deadline(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>**)this;
check_hresult(_winrt_abi_type->get_Deadline(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::Dismiss() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Dismiss());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
check_hresult(_winrt_abi_type->Dismiss());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::EndRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::ApplicationModel::Calls::LockScreenCallEndRequestedEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_EndRequested(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
check_hresult(_winrt_abi_type->add_EndRequested(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::EndRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::ApplicationModel::Calls::LockScreenCallEndRequestedEventArgs> const& handler) const
{
return impl::make_event_revoker<D, EndRequested_revoker>(this, EndRequested(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::EndRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
_winrt_abi_type->remove_EndRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
_winrt_abi_type->remove_EndRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::Closed(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::Closed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, Closed_revoker>(this, Closed(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::Closed(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
_winrt_abi_type->remove_Closed(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
_winrt_abi_type->remove_Closed(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::CallTitle() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallTitle(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
check_hresult(_winrt_abi_type->get_CallTitle(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_ILockScreenCallUI<D>::CallTitle(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI, 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::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_CallTitle(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>**)this;
check_hresult(_winrt_abi_type->put_CallTitle(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IMuteChangeEventArgs<D>::Muted() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs, 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::Windows::ApplicationModel::Calls::IMuteChangeEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Muted(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs>**)this;
check_hresult(_winrt_abi_type->get_Muted(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::Context() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Context(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Context(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::Context(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Context(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::ContactName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::ContactName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::ServiceName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_ServiceName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::ServiceName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_ServiceName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::Media(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptions<D>::AssociatedDeviceIds() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>**)this;
check_hresult(_winrt_abi_type->get_AssociatedDeviceIds(&value));
}
return winrt::Windows::Foundation::Collections::IVector<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IOutgoingVoipPhoneCallOptionsFactory<D>::CreateInstance(param::iterable<hstring> const& associatedDeviceIds) const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory, 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::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory>**)this;
check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&associatedDeviceIds), &value));
}
return winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::StatusChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_StatusChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_StatusChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::StatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, StatusChanged_revoker>(this, StatusChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::StatusChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_StatusChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
_winrt_abi_type->remove_StatusChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AudioDeviceChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_AudioDeviceChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_AudioDeviceChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AudioDeviceChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, AudioDeviceChanged_revoker>(this, AudioDeviceChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AudioDeviceChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_AudioDeviceChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
_winrt_abi_type->remove_AudioDeviceChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::IsMutedChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_IsMutedChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_IsMutedChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::IsMutedChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, IsMutedChanged_revoker>(this, IsMutedChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::IsMutedChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_IsMutedChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
_winrt_abi_type->remove_IsMutedChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::CallId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_CallId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::IsMuted() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsMuted(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_IsMuted(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::Status() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallStatus value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AudioDevice() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AudioDevice(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_AudioDevice(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::GetPhoneCallInfo() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetPhoneCallInfo(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->GetPhoneCallInfo(&result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallInfo{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::GetPhoneCallInfoAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetPhoneCallInfoAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->GetPhoneCallInfoAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallInfo>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::End() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->End(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->End(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::EndAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->EndAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->EndAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::SendDtmfKey(winrt::Windows::ApplicationModel::Calls::DtmfKey const& key, winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const& dtmfToneAudioPlayback) const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SendDtmfKey(static_cast<int32_t>(key), static_cast<int32_t>(dtmfToneAudioPlayback), reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->SendDtmfKey(static_cast<int32_t>(key), static_cast<int32_t>(dtmfToneAudioPlayback), reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::SendDtmfKeyAsync(winrt::Windows::ApplicationModel::Calls::DtmfKey const& key, winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const& dtmfToneAudioPlayback) const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SendDtmfKeyAsync(static_cast<int32_t>(key), static_cast<int32_t>(dtmfToneAudioPlayback), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->SendDtmfKeyAsync(static_cast<int32_t>(key), static_cast<int32_t>(dtmfToneAudioPlayback), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AcceptIncoming() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->AcceptIncoming(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->AcceptIncoming(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::AcceptIncomingAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->AcceptIncomingAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->AcceptIncomingAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::Hold() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Hold(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->Hold(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::HoldAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->HoldAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->HoldAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::ResumeFromHold() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ResumeFromHold(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->ResumeFromHold(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::ResumeFromHoldAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ResumeFromHoldAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->ResumeFromHoldAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::Mute() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Mute(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->Mute(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::MuteAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->MuteAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->MuteAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::Unmute() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Unmute(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->Unmute(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::UnmuteAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->UnmuteAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->UnmuteAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::RejectIncoming() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RejectIncoming(reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->RejectIncoming(reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::RejectIncomingAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RejectIncomingAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->RejectIncomingAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::ChangeAudioDevice(winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const& endpoint) const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ChangeAudioDevice(static_cast<int32_t>(endpoint), reinterpret_cast<int32_t*>(&result)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->ChangeAudioDevice(static_cast<int32_t>(endpoint), reinterpret_cast<int32_t*>(&result)));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCall<D>::ChangeAudioDeviceAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const& endpoint) const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCall, 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::Windows::ApplicationModel::Calls::IPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ChangeAudioDeviceAsync(static_cast<int32_t>(endpoint), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCall>**)this;
check_hresult(_winrt_abi_type->ChangeAudioDeviceAsync(static_cast<int32_t>(endpoint), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics<D>::BlockUnknownNumbers() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_BlockUnknownNumbers(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)this;
check_hresult(_winrt_abi_type->get_BlockUnknownNumbers(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics<D>::BlockUnknownNumbers(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_BlockUnknownNumbers(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)this;
check_hresult(_winrt_abi_type->put_BlockUnknownNumbers(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics<D>::BlockPrivateNumbers() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_BlockPrivateNumbers(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)this;
check_hresult(_winrt_abi_type->get_BlockPrivateNumbers(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics<D>::BlockPrivateNumbers(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_BlockPrivateNumbers(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)this;
check_hresult(_winrt_abi_type->put_BlockPrivateNumbers(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallBlockingStatics<D>::SetCallBlockingListAsync(param::async_iterable<hstring> const& phoneNumberList) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SetCallBlockingListAsync(*(void**)(&phoneNumberList), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>**)this;
check_hresult(_winrt_abi_type->SetCallBlockingListAsync(*(void**)(&phoneNumberList), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<bool>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Id() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Id(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_Id(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Address() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Address(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_Address(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Address(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Address(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_Address(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Duration() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Duration(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_Duration(&value));
}
return winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::TimeSpan>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Duration(winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::TimeSpan> const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Duration(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_Duration(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsCallerIdBlocked() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsCallerIdBlocked(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsCallerIdBlocked(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsCallerIdBlocked(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsCallerIdBlocked(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsCallerIdBlocked(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsEmergency() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsEmergency(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsEmergency(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsEmergency(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsEmergency(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsEmergency(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsIncoming() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsIncoming(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsIncoming(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsIncoming(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsIncoming(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsIncoming(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsMissed() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsMissed(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsMissed(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsMissed(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsMissed(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsMissed(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsRinging() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsRinging(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsRinging(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsRinging(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsRinging(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsRinging(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsSeen() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsSeen(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsSeen(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsSeen(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsSeen(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsSeen(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsSuppressed() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsSuppressed(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsSuppressed(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsSuppressed(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsSuppressed(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsSuppressed(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsVoicemail() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsVoicemail(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_IsVoicemail(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::IsVoicemail(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_IsVoicemail(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_IsVoicemail(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::Media(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::OtherAppReadAccess() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_OtherAppReadAccess(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_OtherAppReadAccess(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::OtherAppReadAccess(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_OtherAppReadAccess(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_OtherAppReadAccess(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::RemoteId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RemoteId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_RemoteId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::RemoteId(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_RemoteId(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_RemoteId(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::SourceDisplayName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SourceDisplayName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_SourceDisplayName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::SourceId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SourceId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_SourceId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::SourceId(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_SourceId(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_SourceId(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::SourceIdKind() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SourceIdKind(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_SourceIdKind(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::SourceIdKind(winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_SourceIdKind(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_SourceIdKind(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::StartTime() const
{
winrt::Windows::Foundation::DateTime value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntry<D>::StartTime(winrt::Windows::Foundation::DateTime const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_StartTime(impl::bind_in(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>**)this;
check_hresult(_winrt_abi_type->put_StartTime(impl::bind_in(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::ContactId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->get_ContactId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::ContactId(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactId(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->put_ContactId(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::DisplayName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::DisplayName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::RawAddress() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RawAddress(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->get_RawAddress(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::RawAddress(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_RawAddress(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->put_RawAddress(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::RawAddressKind() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RawAddressKind(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->get_RawAddressKind(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddress<D>::RawAddressKind(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_RawAddressKind(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>**)this;
check_hresult(_winrt_abi_type->put_RawAddressKind(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryAddressFactory<D>::Create(param::hstring const& rawAddress, winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& rawAddressKind) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Create(*(void**)(&rawAddress), static_cast<int32_t>(rawAddressKind), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory>**)this;
check_hresult(_winrt_abi_type->Create(*(void**)(&rawAddress), static_cast<int32_t>(rawAddressKind), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions<D>::DesiredMedia() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DesiredMedia(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)this;
check_hresult(_winrt_abi_type->get_DesiredMedia(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions<D>::DesiredMedia(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_DesiredMedia(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)this;
check_hresult(_winrt_abi_type->put_DesiredMedia(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryQueryOptions<D>::SourceIds() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SourceIds(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>**)this;
check_hresult(_winrt_abi_type->get_SourceIds(&value));
}
return winrt::Windows::Foundation::Collections::IVector<hstring>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryEntryReader<D>::ReadBatchAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ReadBatchAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader>**)this;
check_hresult(_winrt_abi_type->ReadBatchAsync(&result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry>>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerForUser<D>::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestStoreAsync(static_cast<int32_t>(accessType), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>**)this;
check_hresult(_winrt_abi_type->RequestStoreAsync(static_cast<int32_t>(accessType), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStore>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerForUser<D>::User() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_User(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>**)this;
check_hresult(_winrt_abi_type->get_User(&value));
}
return winrt::Windows::System::User{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerStatics<D>::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestStoreAsync(static_cast<int32_t>(accessType), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics>**)this;
check_hresult(_winrt_abi_type->RequestStoreAsync(static_cast<int32_t>(accessType), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStore>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryManagerStatics2<D>::GetForUser(winrt::Windows::System::User const& user) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetForUser(*(void**)(&user), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2>**)this;
check_hresult(_winrt_abi_type->GetForUser(*(void**)(&user), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::GetEntryAsync(param::hstring const& callHistoryEntryId) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetEntryAsync(*(void**)(&callHistoryEntryId), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->GetEntryAsync(*(void**)(&callHistoryEntryId), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::GetEntryReader() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetEntryReader(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->GetEntryReader(&result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::GetEntryReader(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryOptions const& queryOptions) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetEntryReaderWithOptions(*(void**)(&queryOptions), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->GetEntryReaderWithOptions(*(void**)(&queryOptions), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::SaveEntryAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SaveEntryAsync(*(void**)(&callHistoryEntry), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->SaveEntryAsync(*(void**)(&callHistoryEntry), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::DeleteEntryAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DeleteEntryAsync(*(void**)(&callHistoryEntry), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->DeleteEntryAsync(*(void**)(&callHistoryEntry), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::DeleteEntriesAsync(param::async_iterable<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry> const& callHistoryEntries) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DeleteEntriesAsync(*(void**)(&callHistoryEntries), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->DeleteEntriesAsync(*(void**)(&callHistoryEntries), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::MarkEntryAsSeenAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const& callHistoryEntry) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->MarkEntryAsSeenAsync(*(void**)(&callHistoryEntry), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->MarkEntryAsSeenAsync(*(void**)(&callHistoryEntry), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::MarkEntriesAsSeenAsync(param::async_iterable<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry> const& callHistoryEntries) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->MarkEntriesAsSeenAsync(*(void**)(&callHistoryEntries), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->MarkEntriesAsSeenAsync(*(void**)(&callHistoryEntries), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::GetUnseenCountAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetUnseenCountAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->GetUnseenCountAsync(&result));
}
return winrt::Windows::Foundation::IAsyncOperation<uint32_t>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::MarkAllAsSeenAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->MarkAllAsSeenAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->MarkAllAsSeenAsync(&result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::GetSourcesUnseenCountAsync(param::async_iterable<hstring> const& sourceIds) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetSourcesUnseenCountAsync(*(void**)(&sourceIds), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->GetSourcesUnseenCountAsync(*(void**)(&sourceIds), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<uint32_t>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallHistoryStore<D>::MarkSourcesAsSeenAsync(param::async_iterable<hstring> const& sourceIds) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore, 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::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->MarkSourcesAsSeenAsync(*(void**)(&sourceIds), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>**)this;
check_hresult(_winrt_abi_type->MarkSourcesAsSeenAsync(*(void**)(&sourceIds), &result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::LineId() const
{
winrt::guid value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_LineId(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_LineId(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::IsHoldSupported() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsHoldSupported(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_IsHoldSupported(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::StartTime() const
{
winrt::Windows::Foundation::DateTime value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::PhoneNumber() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_PhoneNumber(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_PhoneNumber(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::DisplayName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallInfo<D>::CallDirection() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallDirection value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo, 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::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallDirection(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>**)this;
check_hresult(_winrt_abi_type->get_CallDirection(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics<D>::ShowPhoneCallUI(param::hstring const& phoneNumber, param::hstring const& displayName) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ShowPhoneCallUI(*(void**)(&phoneNumber), *(void**)(&displayName)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics>**)this;
check_hresult(_winrt_abi_type->ShowPhoneCallUI(*(void**)(&phoneNumber), *(void**)(&displayName)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::CallStateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_CallStateChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
check_hresult(_winrt_abi_type->add_CallStateChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::CallStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, CallStateChanged_revoker>(this, CallStateChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::CallStateChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
_winrt_abi_type->remove_CallStateChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
_winrt_abi_type->remove_CallStateChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::IsCallActive() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsCallActive(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
check_hresult(_winrt_abi_type->get_IsCallActive(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::IsCallIncoming() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsCallIncoming(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
check_hresult(_winrt_abi_type->get_IsCallIncoming(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::ShowPhoneCallSettingsUI() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ShowPhoneCallSettingsUI());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
check_hresult(_winrt_abi_type->ShowPhoneCallSettingsUI());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallManagerStatics2<D>::RequestStoreAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2, 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::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestStoreAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>**)this;
check_hresult(_winrt_abi_type->RequestStoreAsync(&result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallStore>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallStatics<D>::GetFromId(param::hstring const& callId) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetFromId(*(void**)(&callId), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics>**)this;
check_hresult(_winrt_abi_type->GetFromId(*(void**)(&callId), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCall{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore<D>::IsEmergencyPhoneNumberAsync(param::hstring const& number) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore, 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::Windows::ApplicationModel::Calls::IPhoneCallStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->IsEmergencyPhoneNumberAsync(*(void**)(&number), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>**)this;
check_hresult(_winrt_abi_type->IsEmergencyPhoneNumberAsync(*(void**)(&number), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<bool>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore<D>::GetDefaultLineAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore, 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::Windows::ApplicationModel::Calls::IPhoneCallStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDefaultLineAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>**)this;
check_hresult(_winrt_abi_type->GetDefaultLineAsync(&result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::guid>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallStore<D>::RequestLineWatcher() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore, 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::Windows::ApplicationModel::Calls::IPhoneCallStore>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestLineWatcher(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>**)this;
check_hresult(_winrt_abi_type->RequestLineWatcher(&result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallVideoCapabilities<D>::IsVideoCallingCapable() const
{
bool pValue{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities, 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::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsVideoCallingCapable(&pValue));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities>**)this;
check_hresult(_winrt_abi_type->get_IsVideoCallingCapable(&pValue));
}
return pValue;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallVideoCapabilitiesManagerStatics<D>::GetCapabilitiesAsync(param::hstring const& phoneNumber) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics, 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::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetCapabilitiesAsync(*(void**)(&phoneNumber), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics>**)this;
check_hresult(_winrt_abi_type->GetCapabilitiesAsync(*(void**)(&phoneNumber), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallsResult<D>::OperationStatus() const
{
winrt::Windows::ApplicationModel::Calls::PhoneLineOperationStatus value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult, 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::Windows::ApplicationModel::Calls::IPhoneCallsResult>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_OperationStatus(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult>**)this;
check_hresult(_winrt_abi_type->get_OperationStatus(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneCallsResult<D>::AllActivePhoneCalls() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult, 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::Windows::ApplicationModel::Calls::IPhoneCallsResult>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AllActivePhoneCalls(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult>**)this;
check_hresult(_winrt_abi_type->get_AllActivePhoneCalls(&value));
}
return winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::Calls::PhoneCall>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Number() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Number(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_Number(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Number(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Number(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_Number(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::DisplayName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::DisplayName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Contact() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Contact(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_Contact(&value));
}
return winrt::Windows::ApplicationModel::Contacts::Contact{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Contact(winrt::Windows::ApplicationModel::Contacts::Contact const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Contact(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_Contact(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::ContactPhone() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactPhone(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_ContactPhone(&value));
}
return winrt::Windows::ApplicationModel::Contacts::ContactPhone{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::ContactPhone(winrt::Windows::ApplicationModel::Contacts::ContactPhone const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactPhone(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_ContactPhone(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Media() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_Media(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::Media(winrt::Windows::ApplicationModel::Calls::PhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_Media(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_Media(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::AudioEndpoint() const
{
winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AudioEndpoint(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->get_AudioEndpoint(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneDialOptions<D>::AudioEndpoint(winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions, 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::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_AudioEndpoint(static_cast<int32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>**)this;
check_hresult(_winrt_abi_type->put_AudioEndpoint(static_cast<int32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::LineChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLine, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_LineChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->add_LineChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::LineChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLine, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, LineChanged_revoker>(this, LineChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::LineChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
_winrt_abi_type->remove_LineChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
_winrt_abi_type->remove_LineChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::Id() const
{
winrt::guid value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Id(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_Id(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::DisplayColor() const
{
winrt::Windows::UI::Color value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DisplayColor(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_DisplayColor(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::NetworkState() const
{
winrt::Windows::ApplicationModel::Calls::PhoneNetworkState value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_NetworkState(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_NetworkState(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::DisplayName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_DisplayName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::Voicemail() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Voicemail(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_Voicemail(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneVoicemail{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::NetworkName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_NetworkName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_NetworkName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::CellularDetails() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CellularDetails(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_CellularDetails(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneLineCellularDetails{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::Transport() const
{
winrt::Windows::ApplicationModel::Calls::PhoneLineTransport value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Transport(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_Transport(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::CanDial() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CanDial(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_CanDial(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::SupportsTile() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SupportsTile(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_SupportsTile(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::VideoCallingCapabilities() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_VideoCallingCapabilities(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_VideoCallingCapabilities(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::LineConfiguration() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_LineConfiguration(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->get_LineConfiguration(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneLineConfiguration{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::IsImmediateDialNumberAsync(param::hstring const& number) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->IsImmediateDialNumberAsync(*(void**)(&number), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->IsImmediateDialNumberAsync(*(void**)(&number), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<bool>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::Dial(param::hstring const& number, param::hstring const& displayName) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Dial(*(void**)(&number), *(void**)(&displayName)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->Dial(*(void**)(&number), *(void**)(&displayName)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine<D>::DialWithOptions(winrt::Windows::ApplicationModel::Calls::PhoneDialOptions const& options) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine, 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::Windows::ApplicationModel::Calls::IPhoneLine>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DialWithOptions(*(void**)(&options)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine>**)this;
check_hresult(_winrt_abi_type->DialWithOptions(*(void**)(&options)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine2<D>::EnableTextReply(bool value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine2, 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::Windows::ApplicationModel::Calls::IPhoneLine2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->EnableTextReply(value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine2>**)this;
check_hresult(_winrt_abi_type->EnableTextReply(value));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine2<D>::TransportDeviceId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine2, 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::Windows::ApplicationModel::Calls::IPhoneLine2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_TransportDeviceId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine2>**)this;
check_hresult(_winrt_abi_type->get_TransportDeviceId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine3<D>::DialWithResult(param::hstring const& number, param::hstring const& displayName) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine3, 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::Windows::ApplicationModel::Calls::IPhoneLine3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DialWithResult(*(void**)(&number), *(void**)(&displayName), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine3>**)this;
check_hresult(_winrt_abi_type->DialWithResult(*(void**)(&number), *(void**)(&displayName), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine3<D>::DialWithResultAsync(param::hstring const& number, param::hstring const& displayName) const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine3, 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::Windows::ApplicationModel::Calls::IPhoneLine3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DialWithResultAsync(*(void**)(&number), *(void**)(&displayName), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine3>**)this;
check_hresult(_winrt_abi_type->DialWithResultAsync(*(void**)(&number), *(void**)(&displayName), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine3<D>::GetAllActivePhoneCalls() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine3, 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::Windows::ApplicationModel::Calls::IPhoneLine3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetAllActivePhoneCalls(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine3>**)this;
check_hresult(_winrt_abi_type->GetAllActivePhoneCalls(&result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCallsResult{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLine3<D>::GetAllActivePhoneCallsAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLine3, 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::Windows::ApplicationModel::Calls::IPhoneLine3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetAllActivePhoneCallsAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLine3>**)this;
check_hresult(_winrt_abi_type->GetAllActivePhoneCallsAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallsResult>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails<D>::SimState() const
{
winrt::Windows::ApplicationModel::Calls::PhoneSimState value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails, 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::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SimState(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)this;
check_hresult(_winrt_abi_type->get_SimState(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails<D>::SimSlotIndex() const
{
int32_t value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails, 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::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_SimSlotIndex(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)this;
check_hresult(_winrt_abi_type->get_SimSlotIndex(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails<D>::IsModemOn() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails, 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::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsModemOn(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)this;
check_hresult(_winrt_abi_type->get_IsModemOn(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails<D>::RegistrationRejectCode() const
{
int32_t value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails, 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::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_RegistrationRejectCode(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)this;
check_hresult(_winrt_abi_type->get_RegistrationRejectCode(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineCellularDetails<D>::GetNetworkOperatorDisplayText(winrt::Windows::ApplicationModel::Calls::PhoneLineNetworkOperatorDisplayTextLocation const& location) const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails, 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::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetNetworkOperatorDisplayText(static_cast<int32_t>(location), &value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>**)this;
check_hresult(_winrt_abi_type->GetNetworkOperatorDisplayText(static_cast<int32_t>(location), &value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineConfiguration<D>::IsVideoCallingEnabled() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration, 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::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsVideoCallingEnabled(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>**)this;
check_hresult(_winrt_abi_type->get_IsVideoCallingEnabled(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineConfiguration<D>::ExtendedProperties() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration, 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::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ExtendedProperties(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>**)this;
check_hresult(_winrt_abi_type->get_ExtendedProperties(&value));
}
return winrt::Windows::Foundation::Collections::IMapView<hstring, winrt::Windows::Foundation::IInspectable>{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineDialResult<D>::DialCallStatus() const
{
winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult, 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::Windows::ApplicationModel::Calls::IPhoneLineDialResult>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DialCallStatus(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult>**)this;
check_hresult(_winrt_abi_type->get_DialCallStatus(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineDialResult<D>::DialedCall() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult, 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::Windows::ApplicationModel::Calls::IPhoneLineDialResult>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DialedCall(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult>**)this;
check_hresult(_winrt_abi_type->get_DialedCall(&value));
}
return winrt::Windows::ApplicationModel::Calls::PhoneCall{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineStatics<D>::FromIdAsync(winrt::guid const& lineId) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics, 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::Windows::ApplicationModel::Calls::IPhoneLineStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->FromIdAsync(impl::bind_in(lineId), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics>**)this;
check_hresult(_winrt_abi_type->FromIdAsync(impl::bind_in(lineId), &result));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneLine>{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::DeviceId() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_DeviceId(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->get_DeviceId(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::Transport() const
{
winrt::Windows::ApplicationModel::Calls::PhoneLineTransport value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Transport(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->get_Transport(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::RequestAccessAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestAccessAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->RequestAccessAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Enumeration::DeviceAccessStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::RegisterApp() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RegisterApp());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->RegisterApp());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::RegisterAppForUser(winrt::Windows::System::User const& user) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RegisterAppForUser(*(void**)(&user)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->RegisterAppForUser(*(void**)(&user)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::UnregisterApp() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->UnregisterApp());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->UnregisterApp());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::UnregisterAppForUser(winrt::Windows::System::User const& user) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->UnregisterAppForUser(*(void**)(&user)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->UnregisterAppForUser(*(void**)(&user)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::IsRegistered() const
{
bool result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->IsRegistered(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->IsRegistered(&result));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::Connect() const
{
bool result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Connect(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->Connect(&result));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice<D>::ConnectAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ConnectAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>**)this;
check_hresult(_winrt_abi_type->ConnectAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<bool>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::AudioRoutingStatus() const
{
winrt::Windows::ApplicationModel::Calls::TransportDeviceAudioRoutingStatus value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_AudioRoutingStatus(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
check_hresult(_winrt_abi_type->get_AudioRoutingStatus(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::AudioRoutingStatusChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_AudioRoutingStatusChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
check_hresult(_winrt_abi_type->add_AudioRoutingStatusChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::AudioRoutingStatusChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, AudioRoutingStatusChanged_revoker>(this, AudioRoutingStatusChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::AudioRoutingStatusChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
_winrt_abi_type->remove_AudioRoutingStatusChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
_winrt_abi_type->remove_AudioRoutingStatusChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::InBandRingingEnabled() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_InBandRingingEnabled(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
check_hresult(_winrt_abi_type->get_InBandRingingEnabled(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::InBandRingingEnabledChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_InBandRingingEnabledChanged(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
check_hresult(_winrt_abi_type->add_InBandRingingEnabledChanged(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::InBandRingingEnabledChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, InBandRingingEnabledChanged_revoker>(this, InBandRingingEnabledChanged(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDevice2<D>::InBandRingingEnabledChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)&_winrt_casted_result;
_winrt_abi_type->remove_InBandRingingEnabledChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>**)this;
_winrt_abi_type->remove_InBandRingingEnabledChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics<D>::FromId(param::hstring const& id) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->FromId(*(void**)(&id), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)this;
check_hresult(_winrt_abi_type->FromId(*(void**)(&id), &result));
}
return winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics<D>::GetDeviceSelector() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeviceSelector(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)this;
check_hresult(_winrt_abi_type->GetDeviceSelector(&result));
}
return hstring{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineTransportDeviceStatics<D>::GetDeviceSelector(winrt::Windows::ApplicationModel::Calls::PhoneLineTransport const& transport) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics, 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::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeviceSelectorForPhoneLineTransport(static_cast<int32_t>(transport), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>**)this;
check_hresult(_winrt_abi_type->GetDeviceSelectorForPhoneLineTransport(static_cast<int32_t>(transport), &result));
}
return hstring{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Start() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Start());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->Start());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Stop() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->Stop());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->Stop());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineAdded(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_LineAdded(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->add_LineAdded(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineAdded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
return impl::make_event_revoker<D, LineAdded_revoker>(this, LineAdded(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineAdded(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
_winrt_abi_type->remove_LineAdded(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
_winrt_abi_type->remove_LineAdded(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineRemoved(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_LineRemoved(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->add_LineRemoved(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineRemoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
return impl::make_event_revoker<D, LineRemoved_revoker>(this, LineRemoved(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineRemoved(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
_winrt_abi_type->remove_LineRemoved(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
_winrt_abi_type->remove_LineRemoved(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineUpdated(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_LineUpdated(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->add_LineUpdated(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineUpdated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const& handler) const
{
return impl::make_event_revoker<D, LineUpdated_revoker>(this, LineUpdated(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::LineUpdated(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
_winrt_abi_type->remove_LineUpdated(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
_winrt_abi_type->remove_LineUpdated(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_EnumerationCompleted(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->add_EnumerationCompleted(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, EnumerationCompleted_revoker>(this, EnumerationCompleted(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::EnumerationCompleted(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
_winrt_abi_type->remove_EnumerationCompleted(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
_winrt_abi_type->remove_EnumerationCompleted(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Stopped(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_Stopped(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->add_Stopped(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const& handler) const
{
return impl::make_event_revoker<D, Stopped_revoker>(this, Stopped(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Stopped(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
_winrt_abi_type->remove_Stopped(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
_winrt_abi_type->remove_Stopped(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcher<D>::Status() const
{
winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherStatus status{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&status)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>**)this;
check_hresult(_winrt_abi_type->get_Status(reinterpret_cast<int32_t*>(&status)));
}
return status;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneLineWatcherEventArgs<D>::LineId() const
{
winrt::guid value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs, 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::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_LineId(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs>**)this;
check_hresult(_winrt_abi_type->get_LineId(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail<D>::Number() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail, 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::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Number(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)this;
check_hresult(_winrt_abi_type->get_Number(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail<D>::MessageCount() const
{
int32_t value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail, 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::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_MessageCount(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)this;
check_hresult(_winrt_abi_type->get_MessageCount(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail<D>::Type() const
{
winrt::Windows::ApplicationModel::Calls::PhoneVoicemailType value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail, 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::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_Type(reinterpret_cast<int32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)this;
check_hresult(_winrt_abi_type->get_Type(reinterpret_cast<int32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IPhoneVoicemail<D>::DialVoicemailAsync() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail, 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::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->DialVoicemailAsync(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>**)this;
check_hresult(_winrt_abi_type->DialVoicemailAsync(&result));
}
return winrt::Windows::Foundation::IAsyncAction{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::ReserveCallResourcesAsync(param::hstring const& taskEntryPoint) const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ReserveCallResourcesAsync(*(void**)(&taskEntryPoint), &operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->ReserveCallResourcesAsync(*(void**)(&taskEntryPoint), &operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallResourceReservationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::MuteStateChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator, winrt::Windows::ApplicationModel::Calls::MuteChangeEventArgs> const& muteChangeHandler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_MuteStateChanged(*(void**)(&muteChangeHandler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->add_MuteStateChanged(*(void**)(&muteChangeHandler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::MuteStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator, winrt::Windows::ApplicationModel::Calls::MuteChangeEventArgs> const& muteChangeHandler) const
{
return impl::make_event_revoker<D, MuteStateChanged_revoker>(this, MuteStateChanged(muteChangeHandler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::MuteStateChanged(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
_winrt_abi_type->remove_MuteStateChanged(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
_winrt_abi_type->remove_MuteStateChanged(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::RequestNewIncomingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media, winrt::Windows::Foundation::TimeSpan const& ringTimeout) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewIncomingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast<uint32_t>(media), impl::bind_in(ringTimeout), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->RequestNewIncomingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast<uint32_t>(media), impl::bind_in(ringTimeout), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::RequestNewOutgoingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewOutgoingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->RequestNewOutgoingCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::NotifyMuted() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyMuted());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->NotifyMuted());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::NotifyUnmuted() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyUnmuted());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->NotifyUnmuted());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::RequestOutgoingUpgradeToVideoCall(winrt::guid const& callUpgradeGuid, param::hstring const& context, param::hstring const& contactName, param::hstring const& serviceName) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestOutgoingUpgradeToVideoCall(impl::bind_in(callUpgradeGuid), *(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->RequestOutgoingUpgradeToVideoCall(impl::bind_in(callUpgradeGuid), *(void**)(&context), *(void**)(&contactName), *(void**)(&serviceName), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::RequestIncomingUpgradeToVideoCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::Foundation::TimeSpan const& ringTimeout) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestIncomingUpgradeToVideoCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), impl::bind_in(ringTimeout), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->RequestIncomingUpgradeToVideoCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), impl::bind_in(ringTimeout), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::TerminateCellularCall(winrt::guid const& callUpgradeGuid) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->TerminateCellularCall(impl::bind_in(callUpgradeGuid)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->TerminateCellularCall(impl::bind_in(callUpgradeGuid)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator<D>::CancelUpgrade(winrt::guid const& callUpgradeGuid) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->CancelUpgrade(impl::bind_in(callUpgradeGuid)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>**)this;
check_hresult(_winrt_abi_type->CancelUpgrade(impl::bind_in(callUpgradeGuid)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator2<D>::SetupNewAcceptedCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SetupNewAcceptedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2>**)this;
check_hresult(_winrt_abi_type->SetupNewAcceptedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator3<D>::RequestNewAppInitiatedCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, param::hstring const& serviceName, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewAppInitiatedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>**)this;
check_hresult(_winrt_abi_type->RequestNewAppInitiatedCall(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&serviceName), static_cast<uint32_t>(media), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator3<D>::RequestNewIncomingCall(param::hstring const& context, param::hstring const& contactName, param::hstring const& contactNumber, winrt::Windows::Foundation::Uri const& contactImage, param::hstring const& serviceName, winrt::Windows::Foundation::Uri const& brandingImage, param::hstring const& callDetails, winrt::Windows::Foundation::Uri const& ringtone, winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media, winrt::Windows::Foundation::TimeSpan const& ringTimeout, param::hstring const& contactRemoteId) const
{
void* call{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewIncomingCallWithContactRemoteId(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast<uint32_t>(media), impl::bind_in(ringTimeout), *(void**)(&contactRemoteId), &call));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>**)this;
check_hresult(_winrt_abi_type->RequestNewIncomingCallWithContactRemoteId(*(void**)(&context), *(void**)(&contactName), *(void**)(&contactNumber), *(void**)(&contactImage), *(void**)(&serviceName), *(void**)(&brandingImage), *(void**)(&callDetails), *(void**)(&ringtone), static_cast<uint32_t>(media), impl::bind_in(ringTimeout), *(void**)(&contactRemoteId), &call));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ call, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator4<D>::ReserveCallResourcesAsync() const
{
void* operation{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->ReserveOneProcessCallResourcesAsync(&operation));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4>**)this;
check_hresult(_winrt_abi_type->ReserveOneProcessCallResourcesAsync(&operation));
}
return winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallResourceReservationStatus>{ operation, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5<D>::RequestNewIncomingCallWithOptions(winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions const& callOptions) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewIncomingCallWithOptions(*(void**)(&callOptions), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)this;
check_hresult(_winrt_abi_type->RequestNewIncomingCallWithOptions(*(void**)(&callOptions), &result));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5<D>::RequestNewOutgoingCallWithOptions(winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions const& callOptions) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewOutgoingCallWithOptions(*(void**)(&callOptions), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)this;
check_hresult(_winrt_abi_type->RequestNewOutgoingCallWithOptions(*(void**)(&callOptions), &result));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5<D>::SetupNewAcceptedCallWithOptions(winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions const& callOptions) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SetupNewAcceptedCallWithOptions(*(void**)(&callOptions), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)this;
check_hresult(_winrt_abi_type->SetupNewAcceptedCallWithOptions(*(void**)(&callOptions), &result));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinator5<D>::RequestNewAppInitiatedCallWithOptions(winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions const& callOptions) const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RequestNewAppInitiatedCallWithOptions(*(void**)(&callOptions), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>**)this;
check_hresult(_winrt_abi_type->RequestNewAppInitiatedCallWithOptions(*(void**)(&callOptions), &result));
}
return winrt::Windows::ApplicationModel::Calls::VoipPhoneCall{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics<D>::GetDefault() const
{
void* coordinator{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDefault(&coordinator));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics>**)this;
check_hresult(_winrt_abi_type->GetDefault(&coordinator));
}
return winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator{ coordinator, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics2<D>::IsCallControlDeviceKindSupportedForAssociation(winrt::Windows::ApplicationModel::Calls::VoipCallControlDeviceKind const& kind) const
{
bool result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->IsCallControlDeviceKindSupportedForAssociation(static_cast<int32_t>(kind), &result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>**)this;
check_hresult(_winrt_abi_type->IsCallControlDeviceKindSupportedForAssociation(static_cast<int32_t>(kind), &result));
}
return result;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipCallCoordinatorStatics2<D>::GetDeviceSelectorForCallControl() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2, 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::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetDeviceSelectorForCallControl(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>**)this;
check_hresult(_winrt_abi_type->GetDeviceSelectorForCallControl(&result));
}
return hstring{ result, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::EndRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_EndRequested(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_EndRequested(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::EndRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
return impl::make_event_revoker<D, EndRequested_revoker>(this, EndRequested(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::EndRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_EndRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
_winrt_abi_type->remove_EndRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::HoldRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_HoldRequested(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_HoldRequested(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::HoldRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
return impl::make_event_revoker<D, HoldRequested_revoker>(this, HoldRequested(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::HoldRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_HoldRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
_winrt_abi_type->remove_HoldRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::ResumeRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_ResumeRequested(*(void**)(&handler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_ResumeRequested(*(void**)(&handler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::ResumeRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const& handler) const
{
return impl::make_event_revoker<D, ResumeRequested_revoker>(this, ResumeRequested(handler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::ResumeRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_ResumeRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
_winrt_abi_type->remove_ResumeRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::AnswerRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallAnswerEventArgs> const& acceptHandler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_AnswerRequested(*(void**)(&acceptHandler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_AnswerRequested(*(void**)(&acceptHandler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::AnswerRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallAnswerEventArgs> const& acceptHandler) const
{
return impl::make_event_revoker<D, AnswerRequested_revoker>(this, AnswerRequested(acceptHandler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::AnswerRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_AnswerRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
_winrt_abi_type->remove_AnswerRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::RejectRequested(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallRejectEventArgs> const& rejectHandler) const
{
winrt::event_token token{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->add_RejectRequested(*(void**)(&rejectHandler), put_abi(token)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->add_RejectRequested(*(void**)(&rejectHandler), put_abi(token)));
}
return token;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::RejectRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallRejectEventArgs> const& rejectHandler) const
{
return impl::make_event_revoker<D, RejectRequested_revoker>(this, RejectRequested(rejectHandler));
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::RejectRequested(winrt::event_token const& token) const noexcept
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
_winrt_abi_type->remove_RejectRequested(impl::bind_in(token));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
_winrt_abi_type->remove_RejectRequested(impl::bind_in(token));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::NotifyCallHeld() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallHeld());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->NotifyCallHeld());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::NotifyCallActive() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallActive());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->NotifyCallActive());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::NotifyCallEnded() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallEnded());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->NotifyCallEnded());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::ContactName() const
{
void* value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_ContactName(&value));
}
return hstring{ value, take_ownership_from_abi };
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::ContactName(param::hstring const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->put_ContactName(*(void**)(&value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::StartTime() const
{
winrt::Windows::Foundation::DateTime value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_StartTime(put_abi(value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::StartTime(winrt::Windows::Foundation::DateTime const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_StartTime(impl::bind_in(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->put_StartTime(impl::bind_in(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::CallMedia() const
{
winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_CallMedia(reinterpret_cast<uint32_t*>(&value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->get_CallMedia(reinterpret_cast<uint32_t*>(&value)));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::CallMedia(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& value) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->put_CallMedia(static_cast<uint32_t>(value)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->put_CallMedia(static_cast<uint32_t>(value)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall<D>::NotifyCallReady() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallReady());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>**)this;
check_hresult(_winrt_abi_type->NotifyCallReady());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall2<D>::TryShowAppUI() const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall2>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->TryShowAppUI());
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2>**)this;
check_hresult(_winrt_abi_type->TryShowAppUI());
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall3<D>::NotifyCallAccepted(winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const& media) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall3>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallAccepted(static_cast<uint32_t>(media)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3>**)this;
check_hresult(_winrt_abi_type->NotifyCallAccepted(static_cast<uint32_t>(media)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::IsUsingAssociatedDevicesList() const
{
bool value{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->get_IsUsingAssociatedDevicesList(&value));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->get_IsUsingAssociatedDevicesList(&value));
}
return value;
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::NotifyCallActive(param::iterable<hstring> const& associatedDeviceIds) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->NotifyCallActiveOnDevices(*(void**)(&associatedDeviceIds)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->NotifyCallActiveOnDevices(*(void**)(&associatedDeviceIds)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::AddAssociatedCallControlDevice(param::hstring const& deviceId) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->AddAssociatedCallControlDevice(*(void**)(&deviceId)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->AddAssociatedCallControlDevice(*(void**)(&deviceId)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::RemoveAssociatedCallControlDevice(param::hstring const& deviceId) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->RemoveAssociatedCallControlDevice(*(void**)(&deviceId)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->RemoveAssociatedCallControlDevice(*(void**)(&deviceId)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::SetAssociatedCallControlDevices(param::iterable<hstring> const& associatedDeviceIds) const
{
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->SetAssociatedCallControlDevices(*(void**)(&associatedDeviceIds)));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->SetAssociatedCallControlDevices(*(void**)(&associatedDeviceIds)));
}
}
template <typename D> auto consume_Windows_ApplicationModel_Calls_IVoipPhoneCall4<D>::GetAssociatedCallControlDevices() const
{
void* result{};
if constexpr (!std::is_same_v<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>)
{
winrt::hresult _winrt_cast_result_code;
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4, 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::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)&_winrt_casted_result;
check_hresult(_winrt_abi_type->GetAssociatedCallControlDevices(&result));
}
else
{
auto const _winrt_abi_type = *(abi_t<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>**)this;
check_hresult(_winrt_abi_type->GetAssociatedCallControlDevices(&result));
}
return winrt::Windows::Foundation::Collections::IVectorView<hstring>{ result, take_ownership_from_abi };
}
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions>
{
int32_t __stdcall get_Context(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Context());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Context(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Context(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactNumber(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactNumber());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactNumber(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactNumber(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ServiceName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ServiceName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ServiceName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ServiceName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVector<hstring>>(this->shim().AssociatedDeviceIds());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory>
{
int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions>(this->shim().CreateInstance(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions>
{
int32_t __stdcall get_Context(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Context());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Context(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Context(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactNumber(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactNumber());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactNumber(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactNumber(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ServiceName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ServiceName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ServiceName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ServiceName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVector<hstring>>(this->shim().AssociatedDeviceIds());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory>
{
int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions>(this->shim().CreateInstance(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs>
{
int32_t __stdcall get_AcceptedMedia(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().AcceptedMedia());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2>
{
int32_t __stdcall get_SourceDeviceId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().SourceDeviceId());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs>
{
int32_t __stdcall get_RejectReason(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallRejectReason>(this->shim().RejectReason());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs>
{
int32_t __stdcall get_State(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallState>(this->shim().State());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions>
{
int32_t __stdcall get_Context(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Context());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Context(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Context(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactNumber(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactNumber());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactNumber(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactNumber(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactImage(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Uri>(this->shim().ContactImage());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactImage(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactImage(*reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ServiceName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ServiceName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ServiceName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ServiceName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_BrandingImage(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Uri>(this->shim().BrandingImage());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BrandingImage(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BrandingImage(*reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_CallDetails(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().CallDetails());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_CallDetails(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().CallDetails(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Ringtone(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Uri>(this->shim().Ringtone());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Ringtone(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Ringtone(*reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RingTimeout(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::TimeSpan>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::TimeSpan>(this->shim().RingTimeout());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_RingTimeout(int64_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RingTimeout(*reinterpret_cast<winrt::Windows::Foundation::TimeSpan const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactRemoteId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactRemoteId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactRemoteId(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactRemoteId(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVector<hstring>>(this->shim().AssociatedDeviceIds());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory>
{
int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions>(this->shim().CreateInstance(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral>
{
int32_t __stdcall Complete() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Complete();
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs>
{
int32_t __stdcall GetDeferral(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral>(this->shim().GetDeferral());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Deadline(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::DateTime>(this->shim().Deadline());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI> : produce_base<D, winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI>
{
int32_t __stdcall Dismiss() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Dismiss();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_EndRequested(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().EndRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::ApplicationModel::Calls::LockScreenCallEndRequestedEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_EndRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().EndRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().Closed(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().Closed(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_CallTitle(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().CallTitle());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_CallTitle(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().CallTitle(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs>
{
int32_t __stdcall get_Muted(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().Muted());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions>
{
int32_t __stdcall get_Context(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Context());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Context(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Context(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ServiceName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ServiceName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ServiceName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ServiceName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AssociatedDeviceIds(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVector<hstring>>(this->shim().AssociatedDeviceIds());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory>
{
int32_t __stdcall CreateInstance(void* associatedDeviceIds, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions>(this->shim().CreateInstance(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCall>
{
int32_t __stdcall add_StatusChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().StatusChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_StatusChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().StatusChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_AudioDeviceChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().AudioDeviceChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_AudioDeviceChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().AudioDeviceChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_IsMutedChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().IsMutedChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneCall, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_IsMutedChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().IsMutedChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_CallId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().CallId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsMuted(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsMuted());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Status(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallStatus>(this->shim().Status());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AudioDevice(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice>(this->shim().AudioDevice());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetPhoneCallInfo(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallInfo>(this->shim().GetPhoneCallInfo());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetPhoneCallInfoAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallInfo>>(this->shim().GetPhoneCallInfoAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall End(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().End());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall EndAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().EndAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SendDtmfKey(int32_t key, int32_t dtmfToneAudioPlayback, int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().SendDtmfKey(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::DtmfKey const*>(&key), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const*>(&dtmfToneAudioPlayback)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SendDtmfKeyAsync(int32_t key, int32_t dtmfToneAudioPlayback, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().SendDtmfKeyAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::DtmfKey const*>(&key), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::DtmfToneAudioPlayback const*>(&dtmfToneAudioPlayback)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall AcceptIncoming(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().AcceptIncoming());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall AcceptIncomingAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().AcceptIncomingAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Hold(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().Hold());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall HoldAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().HoldAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ResumeFromHold(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().ResumeFromHold());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ResumeFromHoldAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().ResumeFromHoldAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Mute(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().Mute());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall MuteAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().MuteAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Unmute(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().Unmute());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall UnmuteAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().UnmuteAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RejectIncoming(int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().RejectIncoming());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RejectIncomingAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().RejectIncomingAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ChangeAudioDevice(int32_t endpoint, int32_t* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().ChangeAudioDevice(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const*>(&endpoint)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ChangeAudioDeviceAsync(int32_t endpoint, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>>(this->shim().ChangeAudioDeviceAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallAudioDevice const*>(&endpoint)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics>
{
int32_t __stdcall get_BlockUnknownNumbers(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().BlockUnknownNumbers());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BlockUnknownNumbers(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BlockUnknownNumbers(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_BlockPrivateNumbers(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().BlockPrivateNumbers());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_BlockPrivateNumbers(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().BlockPrivateNumbers(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SetCallBlockingListAsync(void* phoneNumberList, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<bool>>(this->shim().SetCallBlockingListAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&phoneNumberList)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry>
{
int32_t __stdcall get_Id(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Id());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Address(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress>(this->shim().Address());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Address(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Address(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Duration(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::TimeSpan>>(this->shim().Duration());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Duration(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Duration(*reinterpret_cast<winrt::Windows::Foundation::IReference<winrt::Windows::Foundation::TimeSpan> const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsCallerIdBlocked(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsCallerIdBlocked());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsCallerIdBlocked(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsCallerIdBlocked(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsEmergency(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsEmergency());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsEmergency(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsEmergency(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsIncoming(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsIncoming());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsIncoming(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsIncoming(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsMissed(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsMissed());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsMissed(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsMissed(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsRinging(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsRinging());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsRinging(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsRinging(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsSeen(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsSeen());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsSeen(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsSeen(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsSuppressed(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsSuppressed());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsSuppressed(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsSuppressed(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsVoicemail(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsVoicemail());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_IsVoicemail(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().IsVoicemail(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_OtherAppReadAccess(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess>(this->shim().OtherAppReadAccess());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_OtherAppReadAccess(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().OtherAppReadAccess(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryOtherAppReadAccess const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RemoteId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().RemoteId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_RemoteId(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RemoteId(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SourceDisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().SourceDisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SourceId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().SourceId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_SourceId(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().SourceId(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SourceIdKind(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind>(this->shim().SourceIdKind());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_SourceIdKind(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().SourceIdKind(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistorySourceIdKind const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_StartTime(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::DateTime>(this->shim().StartTime());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_StartTime(int64_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().StartTime(*reinterpret_cast<winrt::Windows::Foundation::DateTime const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress>
{
int32_t __stdcall get_ContactId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactId(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactId(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_DisplayName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DisplayName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RawAddress(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().RawAddress());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_RawAddress(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RawAddress(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RawAddressKind(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind>(this->shim().RawAddressKind());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_RawAddressKind(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RawAddressKind(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory>
{
int32_t __stdcall Create(void* rawAddress, int32_t rawAddressKind, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress>(this->shim().Create(*reinterpret_cast<hstring const*>(&rawAddress), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const*>(&rawAddressKind)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions>
{
int32_t __stdcall get_DesiredMedia(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia>(this->shim().DesiredMedia());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_DesiredMedia(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DesiredMedia(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryDesiredMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SourceIds(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVector<hstring>>(this->shim().SourceIds());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader>
{
int32_t __stdcall ReadBatchAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry>>>(this->shim().ReadBatchAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser>
{
int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStore>>(this->shim().RequestStoreAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const*>(&accessType)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_User(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::System::User>(this->shim().User());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics>
{
int32_t __stdcall RequestStoreAsync(int32_t accessType, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStore>>(this->shim().RequestStoreAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const*>(&accessType)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2>
{
int32_t __stdcall GetForUser(void* user, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser>(this->shim().GetForUser(*reinterpret_cast<winrt::Windows::System::User const*>(&user)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore>
{
int32_t __stdcall GetEntryAsync(void* callHistoryEntryId, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry>>(this->shim().GetEntryAsync(*reinterpret_cast<hstring const*>(&callHistoryEntryId)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetEntryReader(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader>(this->shim().GetEntryReader());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetEntryReaderWithOptions(void* queryOptions, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader>(this->shim().GetEntryReader(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryOptions const*>(&queryOptions)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SaveEntryAsync(void* callHistoryEntry, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().SaveEntryAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const*>(&callHistoryEntry)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall DeleteEntryAsync(void* callHistoryEntry, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().DeleteEntryAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const*>(&callHistoryEntry)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall DeleteEntriesAsync(void* callHistoryEntries, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().DeleteEntriesAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry> const*>(&callHistoryEntries)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall MarkEntryAsSeenAsync(void* callHistoryEntry, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().MarkEntryAsSeenAsync(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry const*>(&callHistoryEntry)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall MarkEntriesAsSeenAsync(void* callHistoryEntries, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().MarkEntriesAsSeenAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry> const*>(&callHistoryEntries)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetUnseenCountAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<uint32_t>>(this->shim().GetUnseenCountAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall MarkAllAsSeenAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().MarkAllAsSeenAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetSourcesUnseenCountAsync(void* sourceIds, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<uint32_t>>(this->shim().GetSourcesUnseenCountAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&sourceIds)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall MarkSourcesAsSeenAsync(void* sourceIds, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().MarkSourcesAsSeenAsync(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&sourceIds)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo>
{
int32_t __stdcall get_LineId(winrt::guid* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::guid>(this->shim().LineId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsHoldSupported(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsHoldSupported());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_StartTime(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::DateTime>(this->shim().StartTime());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_PhoneNumber(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().PhoneNumber());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_CallDirection(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallDirection>(this->shim().CallDirection());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics>
{
int32_t __stdcall ShowPhoneCallUI(void* phoneNumber, void* displayName) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShowPhoneCallUI(*reinterpret_cast<hstring const*>(&phoneNumber), *reinterpret_cast<hstring const*>(&displayName));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>
{
int32_t __stdcall add_CallStateChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().CallStateChanged(*reinterpret_cast<winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_CallStateChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().CallStateChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_IsCallActive(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsCallActive());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsCallIncoming(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsCallIncoming());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ShowPhoneCallSettingsUI() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ShowPhoneCallSettingsUI();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestStoreAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallStore>>(this->shim().RequestStoreAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics>
{
int32_t __stdcall GetFromId(void* callId, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCall>(this->shim().GetFromId(*reinterpret_cast<hstring const*>(&callId)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStore> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallStore>
{
int32_t __stdcall IsEmergencyPhoneNumberAsync(void* number, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<bool>>(this->shim().IsEmergencyPhoneNumberAsync(*reinterpret_cast<hstring const*>(&number)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetDefaultLineAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::guid>>(this->shim().GetDefaultLineAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestLineWatcher(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher>(this->shim().RequestLineWatcher());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities>
{
int32_t __stdcall get_IsVideoCallingCapable(bool* pValue) noexcept final try
{
typename D::abi_guard guard(this->shim());
*pValue = detach_from<bool>(this->shim().IsVideoCallingCapable());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics>
{
int32_t __stdcall GetCapabilitiesAsync(void* phoneNumber, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities>>(this->shim().GetCapabilitiesAsync(*reinterpret_cast<hstring const*>(&phoneNumber)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult>
{
int32_t __stdcall get_OperationStatus(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineOperationStatus>(this->shim().OperationStatus());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AllActivePhoneCalls(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::ApplicationModel::Calls::PhoneCall>>(this->shim().AllActivePhoneCalls());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions>
{
int32_t __stdcall get_Number(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Number());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Number(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Number(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_DisplayName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DisplayName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Contact(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Contacts::Contact>(this->shim().Contact());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Contact(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Contact(*reinterpret_cast<winrt::Windows::ApplicationModel::Contacts::Contact const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactPhone(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Contacts::ContactPhone>(this->shim().ContactPhone());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactPhone(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactPhone(*reinterpret_cast<winrt::Windows::ApplicationModel::Contacts::ContactPhone const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Media(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallMedia>(this->shim().Media());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_Media(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Media(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_AudioEndpoint(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint>(this->shim().AudioEndpoint());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_AudioEndpoint(int32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().AudioEndpoint(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneAudioRoutingEndpoint const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine>
{
int32_t __stdcall add_LineChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().LineChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLine, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_LineChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().LineChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_Id(winrt::guid* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::guid>(this->shim().Id());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayColor(struct struct_Windows_UI_Color* value) noexcept final try
{
zero_abi<winrt::Windows::UI::Color>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::UI::Color>(this->shim().DisplayColor());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_NetworkState(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneNetworkState>(this->shim().NetworkState());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DisplayName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DisplayName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Voicemail(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneVoicemail>(this->shim().Voicemail());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_NetworkName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().NetworkName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_CellularDetails(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineCellularDetails>(this->shim().CellularDetails());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Transport(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineTransport>(this->shim().Transport());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_CanDial(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().CanDial());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SupportsTile(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().SupportsTile());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_VideoCallingCapabilities(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities>(this->shim().VideoCallingCapabilities());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_LineConfiguration(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineConfiguration>(this->shim().LineConfiguration());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall IsImmediateDialNumberAsync(void* number, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<bool>>(this->shim().IsImmediateDialNumberAsync(*reinterpret_cast<hstring const*>(&number)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Dial(void* number, void* displayName) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Dial(*reinterpret_cast<hstring const*>(&number), *reinterpret_cast<hstring const*>(&displayName));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall DialWithOptions(void* options) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().DialWithOptions(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneDialOptions const*>(&options));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine2>
{
int32_t __stdcall EnableTextReply(bool value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().EnableTextReply(value);
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_TransportDeviceId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().TransportDeviceId());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLine3>
{
int32_t __stdcall DialWithResult(void* number, void* displayName, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult>(this->shim().DialWithResult(*reinterpret_cast<hstring const*>(&number), *reinterpret_cast<hstring const*>(&displayName)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall DialWithResultAsync(void* number, void* displayName, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult>>(this->shim().DialWithResultAsync(*reinterpret_cast<hstring const*>(&number), *reinterpret_cast<hstring const*>(&displayName)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetAllActivePhoneCalls(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallsResult>(this->shim().GetAllActivePhoneCalls());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetAllActivePhoneCallsAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallsResult>>(this->shim().GetAllActivePhoneCallsAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails>
{
int32_t __stdcall get_SimState(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneSimState>(this->shim().SimState());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_SimSlotIndex(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<int32_t>(this->shim().SimSlotIndex());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_IsModemOn(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsModemOn());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_RegistrationRejectCode(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<int32_t>(this->shim().RegistrationRejectCode());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetNetworkOperatorDisplayText(int32_t location, void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().GetNetworkOperatorDisplayText(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneLineNetworkOperatorDisplayTextLocation const*>(&location)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration>
{
int32_t __stdcall get_IsVideoCallingEnabled(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsVideoCallingEnabled());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ExtendedProperties(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::Collections::IMapView<hstring, winrt::Windows::Foundation::IInspectable>>(this->shim().ExtendedProperties());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult>
{
int32_t __stdcall get_DialCallStatus(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCallOperationStatus>(this->shim().DialCallStatus());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_DialedCall(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneCall>(this->shim().DialedCall());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics>
{
int32_t __stdcall FromIdAsync(winrt::guid lineId, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneLine>>(this->shim().FromIdAsync(*reinterpret_cast<winrt::guid const*>(&lineId)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice>
{
int32_t __stdcall get_DeviceId(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().DeviceId());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Transport(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineTransport>(this->shim().Transport());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestAccessAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Devices::Enumeration::DeviceAccessStatus>>(this->shim().RequestAccessAsync());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RegisterApp() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RegisterApp();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RegisterAppForUser(void* user) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RegisterAppForUser(*reinterpret_cast<winrt::Windows::System::User const*>(&user));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall UnregisterApp() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().UnregisterApp();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall UnregisterAppForUser(void* user) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().UnregisterAppForUser(*reinterpret_cast<winrt::Windows::System::User const*>(&user));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall IsRegistered(bool* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<bool>(this->shim().IsRegistered());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Connect(bool* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<bool>(this->shim().Connect());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall ConnectAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<bool>>(this->shim().ConnectAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2>
{
int32_t __stdcall get_AudioRoutingStatus(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::TransportDeviceAudioRoutingStatus>(this->shim().AudioRoutingStatus());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_AudioRoutingStatusChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().AudioRoutingStatusChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_AudioRoutingStatusChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().AudioRoutingStatusChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_InBandRingingEnabled(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().InBandRingingEnabled());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_InBandRingingEnabledChanged(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().InBandRingingEnabledChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_InBandRingingEnabledChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().InBandRingingEnabledChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics>
{
int32_t __stdcall FromId(void* id, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice>(this->shim().FromId(*reinterpret_cast<hstring const*>(&id)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetDeviceSelector(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<hstring>(this->shim().GetDeviceSelector());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetDeviceSelectorForPhoneLineTransport(int32_t transport, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<hstring>(this->shim().GetDeviceSelector(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::PhoneLineTransport const*>(&transport)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher>
{
int32_t __stdcall Start() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Start();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall Stop() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().Stop();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_LineAdded(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().LineAdded(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_LineAdded(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().LineAdded(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_LineRemoved(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().LineRemoved(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_LineRemoved(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().LineRemoved(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_LineUpdated(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().LineUpdated(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_LineUpdated(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().LineUpdated(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().EnumerationCompleted(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().EnumerationCompleted(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().Stopped(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher, winrt::Windows::Foundation::IInspectable> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().Stopped(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall get_Status(int32_t* status) noexcept final try
{
typename D::abi_guard guard(this->shim());
*status = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherStatus>(this->shim().Status());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs>
{
int32_t __stdcall get_LineId(winrt::guid* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::guid>(this->shim().LineId());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail>
{
int32_t __stdcall get_Number(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().Number());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_MessageCount(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<int32_t>(this->shim().MessageCount());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_Type(int32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::PhoneVoicemailType>(this->shim().Type());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall DialVoicemailAsync(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::IAsyncAction>(this->shim().DialVoicemailAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator>
{
int32_t __stdcall ReserveCallResourcesAsync(void* taskEntryPoint, void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallResourceReservationStatus>>(this->shim().ReserveCallResourcesAsync(*reinterpret_cast<hstring const*>(&taskEntryPoint)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall add_MuteStateChanged(void* muteChangeHandler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().MuteStateChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator, winrt::Windows::ApplicationModel::Calls::MuteChangeEventArgs> const*>(&muteChangeHandler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_MuteStateChanged(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().MuteStateChanged(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall RequestNewIncomingCall(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, uint32_t media, int64_t ringTimeout, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewIncomingCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&contactNumber), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&contactImage), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&brandingImage), *reinterpret_cast<hstring const*>(&callDetails), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&ringtone), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media), *reinterpret_cast<winrt::Windows::Foundation::TimeSpan const*>(&ringTimeout)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestNewOutgoingCall(void* context, void* contactName, void* serviceName, uint32_t media, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewOutgoingCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyMuted() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyMuted();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyUnmuted() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyUnmuted();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestOutgoingUpgradeToVideoCall(winrt::guid callUpgradeGuid, void* context, void* contactName, void* serviceName, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestOutgoingUpgradeToVideoCall(*reinterpret_cast<winrt::guid const*>(&callUpgradeGuid), *reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&serviceName)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestIncomingUpgradeToVideoCall(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, int64_t ringTimeout, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestIncomingUpgradeToVideoCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&contactNumber), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&contactImage), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&brandingImage), *reinterpret_cast<hstring const*>(&callDetails), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&ringtone), *reinterpret_cast<winrt::Windows::Foundation::TimeSpan const*>(&ringTimeout)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall TerminateCellularCall(winrt::guid callUpgradeGuid) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().TerminateCellularCall(*reinterpret_cast<winrt::guid const*>(&callUpgradeGuid));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall CancelUpgrade(winrt::guid callUpgradeGuid) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().CancelUpgrade(*reinterpret_cast<winrt::guid const*>(&callUpgradeGuid));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2>
{
int32_t __stdcall SetupNewAcceptedCall(void* context, void* contactName, void* contactNumber, void* serviceName, uint32_t media, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().SetupNewAcceptedCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&contactNumber), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3>
{
int32_t __stdcall RequestNewAppInitiatedCall(void* context, void* contactName, void* contactNumber, void* serviceName, uint32_t media, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewAppInitiatedCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&contactNumber), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestNewIncomingCallWithContactRemoteId(void* context, void* contactName, void* contactNumber, void* contactImage, void* serviceName, void* brandingImage, void* callDetails, void* ringtone, uint32_t media, int64_t ringTimeout, void* contactRemoteId, void** call) noexcept final try
{
clear_abi(call);
typename D::abi_guard guard(this->shim());
*call = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewIncomingCall(*reinterpret_cast<hstring const*>(&context), *reinterpret_cast<hstring const*>(&contactName), *reinterpret_cast<hstring const*>(&contactNumber), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&contactImage), *reinterpret_cast<hstring const*>(&serviceName), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&brandingImage), *reinterpret_cast<hstring const*>(&callDetails), *reinterpret_cast<winrt::Windows::Foundation::Uri const*>(&ringtone), *reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media), *reinterpret_cast<winrt::Windows::Foundation::TimeSpan const*>(&ringTimeout), *reinterpret_cast<hstring const*>(&contactRemoteId)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4>
{
int32_t __stdcall ReserveOneProcessCallResourcesAsync(void** operation) noexcept final try
{
clear_abi(operation);
typename D::abi_guard guard(this->shim());
*operation = detach_from<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallResourceReservationStatus>>(this->shim().ReserveCallResourcesAsync());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5>
{
int32_t __stdcall RequestNewIncomingCallWithOptions(void* callOptions, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewIncomingCallWithOptions(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions const*>(&callOptions)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestNewOutgoingCallWithOptions(void* callOptions, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewOutgoingCallWithOptions(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions const*>(&callOptions)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SetupNewAcceptedCallWithOptions(void* callOptions, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().SetupNewAcceptedCallWithOptions(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions const*>(&callOptions)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RequestNewAppInitiatedCallWithOptions(void* callOptions, void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall>(this->shim().RequestNewAppInitiatedCallWithOptions(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions const*>(&callOptions)));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics>
{
int32_t __stdcall GetDefault(void** coordinator) noexcept final try
{
clear_abi(coordinator);
typename D::abi_guard guard(this->shim());
*coordinator = detach_from<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator>(this->shim().GetDefault());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2>
{
int32_t __stdcall IsCallControlDeviceKindSupportedForAssociation(int32_t kind, bool* result) noexcept final try
{
typename D::abi_guard guard(this->shim());
*result = detach_from<bool>(this->shim().IsCallControlDeviceKindSupportedForAssociation(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipCallControlDeviceKind const*>(&kind)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetDeviceSelectorForCallControl(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<hstring>(this->shim().GetDeviceSelectorForCallControl());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall>
{
int32_t __stdcall add_EndRequested(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().EndRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_EndRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().EndRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_HoldRequested(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().HoldRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_HoldRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().HoldRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_ResumeRequested(void* handler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().ResumeRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> const*>(&handler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_ResumeRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().ResumeRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_AnswerRequested(void* acceptHandler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().AnswerRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallAnswerEventArgs> const*>(&acceptHandler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_AnswerRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().AnswerRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall add_RejectRequested(void* rejectHandler, winrt::event_token* token) noexcept final try
{
zero_abi<winrt::event_token>(token);
typename D::abi_guard guard(this->shim());
*token = detach_from<winrt::event_token>(this->shim().RejectRequested(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall, winrt::Windows::ApplicationModel::Calls::CallRejectEventArgs> const*>(&rejectHandler)));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall remove_RejectRequested(winrt::event_token token) noexcept final
{
typename D::abi_guard guard(this->shim());
this->shim().RejectRequested(*reinterpret_cast<winrt::event_token const*>(&token));
return 0;
}
int32_t __stdcall NotifyCallHeld() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallHeld();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyCallActive() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallActive();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyCallEnded() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallEnded();
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_ContactName(void** value) noexcept final try
{
clear_abi(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<hstring>(this->shim().ContactName());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_ContactName(void* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().ContactName(*reinterpret_cast<hstring const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_StartTime(int64_t* value) noexcept final try
{
zero_abi<winrt::Windows::Foundation::DateTime>(value);
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::Foundation::DateTime>(this->shim().StartTime());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_StartTime(int64_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().StartTime(*reinterpret_cast<winrt::Windows::Foundation::DateTime const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall get_CallMedia(uint32_t* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia>(this->shim().CallMedia());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall put_CallMedia(uint32_t value) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().CallMedia(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&value));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyCallReady() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallReady();
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2>
{
int32_t __stdcall TryShowAppUI() noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().TryShowAppUI();
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3>
{
int32_t __stdcall NotifyCallAccepted(uint32_t media) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallAccepted(*reinterpret_cast<winrt::Windows::ApplicationModel::Calls::VoipPhoneCallMedia const*>(&media));
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
#ifndef WINRT_LEAN_AND_MEAN
template <typename D>
struct produce<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4> : produce_base<D, winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4>
{
int32_t __stdcall get_IsUsingAssociatedDevicesList(bool* value) noexcept final try
{
typename D::abi_guard guard(this->shim());
*value = detach_from<bool>(this->shim().IsUsingAssociatedDevicesList());
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall NotifyCallActiveOnDevices(void* associatedDeviceIds) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().NotifyCallActive(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall AddAssociatedCallControlDevice(void* deviceId) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().AddAssociatedCallControlDevice(*reinterpret_cast<hstring const*>(&deviceId));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall RemoveAssociatedCallControlDevice(void* deviceId) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().RemoveAssociatedCallControlDevice(*reinterpret_cast<hstring const*>(&deviceId));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall SetAssociatedCallControlDevices(void* associatedDeviceIds) noexcept final try
{
typename D::abi_guard guard(this->shim());
this->shim().SetAssociatedCallControlDevices(*reinterpret_cast<winrt::Windows::Foundation::Collections::IIterable<hstring> const*>(&associatedDeviceIds));
return 0;
}
catch (...) { return to_hresult(); }
int32_t __stdcall GetAssociatedCallControlDevices(void** result) noexcept final try
{
clear_abi(result);
typename D::abi_guard guard(this->shim());
*result = detach_from<winrt::Windows::Foundation::Collections::IVectorView<hstring>>(this->shim().GetAssociatedCallControlDevices());
return 0;
}
catch (...) { return to_hresult(); }
};
#endif
}
WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Calls
{
constexpr auto operator|(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
return static_cast<PhoneCallHistoryEntryQueryDesiredMedia>(impl::to_underlying_type(left) | impl::to_underlying_type(right));
}
constexpr auto operator|=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
left = left | right;
return left;
}
constexpr auto operator&(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
return static_cast<PhoneCallHistoryEntryQueryDesiredMedia>(impl::to_underlying_type(left) & impl::to_underlying_type(right));
}
constexpr auto operator&=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
left = left & right;
return left;
}
constexpr auto operator~(PhoneCallHistoryEntryQueryDesiredMedia const value) noexcept
{
return static_cast<PhoneCallHistoryEntryQueryDesiredMedia>(~impl::to_underlying_type(value));
}
constexpr auto operator^(PhoneCallHistoryEntryQueryDesiredMedia const left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
return static_cast<PhoneCallHistoryEntryQueryDesiredMedia>(impl::to_underlying_type(left) ^ impl::to_underlying_type(right));
}
constexpr auto operator^=(PhoneCallHistoryEntryQueryDesiredMedia& left, PhoneCallHistoryEntryQueryDesiredMedia const right) noexcept
{
left = left ^ right;
return left;
}
constexpr auto operator|(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept
{
return static_cast<VoipPhoneCallMedia>(impl::to_underlying_type(left) | impl::to_underlying_type(right));
}
constexpr auto operator|=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept
{
left = left | right;
return left;
}
constexpr auto operator&(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept
{
return static_cast<VoipPhoneCallMedia>(impl::to_underlying_type(left) & impl::to_underlying_type(right));
}
constexpr auto operator&=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept
{
left = left & right;
return left;
}
constexpr auto operator~(VoipPhoneCallMedia const value) noexcept
{
return static_cast<VoipPhoneCallMedia>(~impl::to_underlying_type(value));
}
constexpr auto operator^(VoipPhoneCallMedia const left, VoipPhoneCallMedia const right) noexcept
{
return static_cast<VoipPhoneCallMedia>(impl::to_underlying_type(left) ^ impl::to_underlying_type(right));
}
constexpr auto operator^=(VoipPhoneCallMedia& left, VoipPhoneCallMedia const right) noexcept
{
left = left ^ right;
return left;
}
inline AcceptedVoipPhoneCallOptions::AcceptedVoipPhoneCallOptions() :
AcceptedVoipPhoneCallOptions(impl::call_factory_cast<AcceptedVoipPhoneCallOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), AcceptedVoipPhoneCallOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<AcceptedVoipPhoneCallOptions>(); }))
{
}
inline AcceptedVoipPhoneCallOptions::AcceptedVoipPhoneCallOptions(param::iterable<hstring> const& associatedDeviceIds) :
AcceptedVoipPhoneCallOptions(impl::call_factory<AcceptedVoipPhoneCallOptions, IAcceptedVoipPhoneCallOptionsFactory>([&](IAcceptedVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); }))
{
}
inline AppInitiatedVoipPhoneCallOptions::AppInitiatedVoipPhoneCallOptions() :
AppInitiatedVoipPhoneCallOptions(impl::call_factory_cast<AppInitiatedVoipPhoneCallOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), AppInitiatedVoipPhoneCallOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<AppInitiatedVoipPhoneCallOptions>(); }))
{
}
inline AppInitiatedVoipPhoneCallOptions::AppInitiatedVoipPhoneCallOptions(param::iterable<hstring> const& associatedDeviceIds) :
AppInitiatedVoipPhoneCallOptions(impl::call_factory<AppInitiatedVoipPhoneCallOptions, IAppInitiatedVoipPhoneCallOptionsFactory>([&](IAppInitiatedVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); }))
{
}
inline IncomingVoipPhoneCallOptions::IncomingVoipPhoneCallOptions() :
IncomingVoipPhoneCallOptions(impl::call_factory_cast<IncomingVoipPhoneCallOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), IncomingVoipPhoneCallOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<IncomingVoipPhoneCallOptions>(); }))
{
}
inline IncomingVoipPhoneCallOptions::IncomingVoipPhoneCallOptions(param::iterable<hstring> const& associatedDeviceIds) :
IncomingVoipPhoneCallOptions(impl::call_factory<IncomingVoipPhoneCallOptions, IIncomingVoipPhoneCallOptionsFactory>([&](IIncomingVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); }))
{
}
inline OutgoingVoipPhoneCallOptions::OutgoingVoipPhoneCallOptions() :
OutgoingVoipPhoneCallOptions(impl::call_factory_cast<OutgoingVoipPhoneCallOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), OutgoingVoipPhoneCallOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<OutgoingVoipPhoneCallOptions>(); }))
{
}
inline OutgoingVoipPhoneCallOptions::OutgoingVoipPhoneCallOptions(param::iterable<hstring> const& associatedDeviceIds) :
OutgoingVoipPhoneCallOptions(impl::call_factory<OutgoingVoipPhoneCallOptions, IOutgoingVoipPhoneCallOptionsFactory>([&](IOutgoingVoipPhoneCallOptionsFactory const& f) { return f.CreateInstance(associatedDeviceIds); }))
{
}
inline auto PhoneCall::GetFromId(param::hstring const& callId)
{
return impl::call_factory<PhoneCall, IPhoneCallStatics>([&](IPhoneCallStatics const& f) { return f.GetFromId(callId); });
}
inline auto PhoneCallBlocking::BlockUnknownNumbers()
{
return impl::call_factory_cast<bool(*)(IPhoneCallBlockingStatics const&), PhoneCallBlocking, IPhoneCallBlockingStatics>([](IPhoneCallBlockingStatics const& f) { return f.BlockUnknownNumbers(); });
}
inline auto PhoneCallBlocking::BlockUnknownNumbers(bool value)
{
impl::call_factory<PhoneCallBlocking, IPhoneCallBlockingStatics>([&](IPhoneCallBlockingStatics const& f) { return f.BlockUnknownNumbers(value); });
}
inline auto PhoneCallBlocking::BlockPrivateNumbers()
{
return impl::call_factory_cast<bool(*)(IPhoneCallBlockingStatics const&), PhoneCallBlocking, IPhoneCallBlockingStatics>([](IPhoneCallBlockingStatics const& f) { return f.BlockPrivateNumbers(); });
}
inline auto PhoneCallBlocking::BlockPrivateNumbers(bool value)
{
impl::call_factory<PhoneCallBlocking, IPhoneCallBlockingStatics>([&](IPhoneCallBlockingStatics const& f) { return f.BlockPrivateNumbers(value); });
}
inline auto PhoneCallBlocking::SetCallBlockingListAsync(param::async_iterable<hstring> const& phoneNumberList)
{
return impl::call_factory<PhoneCallBlocking, IPhoneCallBlockingStatics>([&](IPhoneCallBlockingStatics const& f) { return f.SetCallBlockingListAsync(phoneNumberList); });
}
inline PhoneCallHistoryEntry::PhoneCallHistoryEntry() :
PhoneCallHistoryEntry(impl::call_factory_cast<PhoneCallHistoryEntry(*)(winrt::Windows::Foundation::IActivationFactory const&), PhoneCallHistoryEntry>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<PhoneCallHistoryEntry>(); }))
{
}
inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress() :
PhoneCallHistoryEntryAddress(impl::call_factory_cast<PhoneCallHistoryEntryAddress(*)(winrt::Windows::Foundation::IActivationFactory const&), PhoneCallHistoryEntryAddress>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<PhoneCallHistoryEntryAddress>(); }))
{
}
inline PhoneCallHistoryEntryAddress::PhoneCallHistoryEntryAddress(param::hstring const& rawAddress, winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryRawAddressKind const& rawAddressKind) :
PhoneCallHistoryEntryAddress(impl::call_factory<PhoneCallHistoryEntryAddress, IPhoneCallHistoryEntryAddressFactory>([&](IPhoneCallHistoryEntryAddressFactory const& f) { return f.Create(rawAddress, rawAddressKind); }))
{
}
inline PhoneCallHistoryEntryQueryOptions::PhoneCallHistoryEntryQueryOptions() :
PhoneCallHistoryEntryQueryOptions(impl::call_factory_cast<PhoneCallHistoryEntryQueryOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), PhoneCallHistoryEntryQueryOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<PhoneCallHistoryEntryQueryOptions>(); }))
{
}
inline auto PhoneCallHistoryManager::RequestStoreAsync(winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStoreAccessType const& accessType)
{
return impl::call_factory<PhoneCallHistoryManager, IPhoneCallHistoryManagerStatics>([&](IPhoneCallHistoryManagerStatics const& f) { return f.RequestStoreAsync(accessType); });
}
inline auto PhoneCallHistoryManager::GetForUser(winrt::Windows::System::User const& user)
{
return impl::call_factory<PhoneCallHistoryManager, IPhoneCallHistoryManagerStatics2>([&](IPhoneCallHistoryManagerStatics2 const& f) { return f.GetForUser(user); });
}
inline auto PhoneCallManager::ShowPhoneCallUI(param::hstring const& phoneNumber, param::hstring const& displayName)
{
impl::call_factory<PhoneCallManager, IPhoneCallManagerStatics>([&](IPhoneCallManagerStatics const& f) { return f.ShowPhoneCallUI(phoneNumber, displayName); });
}
inline auto PhoneCallManager::CallStateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler)
{
return impl::call_factory<PhoneCallManager, IPhoneCallManagerStatics2>([&](IPhoneCallManagerStatics2 const& f) { return f.CallStateChanged(handler); });
}
inline auto PhoneCallManager::CallStateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler)
{
auto f = get_activation_factory<PhoneCallManager, winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2>();
return PhoneCallManager::CallStateChanged_revoker{ f, f.CallStateChanged(handler) };
}
inline auto PhoneCallManager::CallStateChanged(winrt::event_token const& token)
{
impl::call_factory<PhoneCallManager, IPhoneCallManagerStatics2>([&](IPhoneCallManagerStatics2 const& f) { return f.CallStateChanged(token); });
}
inline auto PhoneCallManager::IsCallActive()
{
return impl::call_factory_cast<bool(*)(IPhoneCallManagerStatics2 const&), PhoneCallManager, IPhoneCallManagerStatics2>([](IPhoneCallManagerStatics2 const& f) { return f.IsCallActive(); });
}
inline auto PhoneCallManager::IsCallIncoming()
{
return impl::call_factory_cast<bool(*)(IPhoneCallManagerStatics2 const&), PhoneCallManager, IPhoneCallManagerStatics2>([](IPhoneCallManagerStatics2 const& f) { return f.IsCallIncoming(); });
}
inline auto PhoneCallManager::ShowPhoneCallSettingsUI()
{
impl::call_factory_cast<void(*)(IPhoneCallManagerStatics2 const&), PhoneCallManager, IPhoneCallManagerStatics2>([](IPhoneCallManagerStatics2 const& f) { return f.ShowPhoneCallSettingsUI(); });
}
inline auto PhoneCallManager::RequestStoreAsync()
{
return impl::call_factory_cast<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::ApplicationModel::Calls::PhoneCallStore>(*)(IPhoneCallManagerStatics2 const&), PhoneCallManager, IPhoneCallManagerStatics2>([](IPhoneCallManagerStatics2 const& f) { return f.RequestStoreAsync(); });
}
inline auto PhoneCallVideoCapabilitiesManager::GetCapabilitiesAsync(param::hstring const& phoneNumber)
{
return impl::call_factory<PhoneCallVideoCapabilitiesManager, IPhoneCallVideoCapabilitiesManagerStatics>([&](IPhoneCallVideoCapabilitiesManagerStatics const& f) { return f.GetCapabilitiesAsync(phoneNumber); });
}
inline PhoneDialOptions::PhoneDialOptions() :
PhoneDialOptions(impl::call_factory_cast<PhoneDialOptions(*)(winrt::Windows::Foundation::IActivationFactory const&), PhoneDialOptions>([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance<PhoneDialOptions>(); }))
{
}
inline auto PhoneLine::FromIdAsync(winrt::guid const& lineId)
{
return impl::call_factory<PhoneLine, IPhoneLineStatics>([&](IPhoneLineStatics const& f) { return f.FromIdAsync(lineId); });
}
inline auto PhoneLineTransportDevice::FromId(param::hstring const& id)
{
return impl::call_factory<PhoneLineTransportDevice, IPhoneLineTransportDeviceStatics>([&](IPhoneLineTransportDeviceStatics const& f) { return f.FromId(id); });
}
inline auto PhoneLineTransportDevice::GetDeviceSelector()
{
return impl::call_factory_cast<hstring(*)(IPhoneLineTransportDeviceStatics const&), PhoneLineTransportDevice, IPhoneLineTransportDeviceStatics>([](IPhoneLineTransportDeviceStatics const& f) { return f.GetDeviceSelector(); });
}
inline auto PhoneLineTransportDevice::GetDeviceSelector(winrt::Windows::ApplicationModel::Calls::PhoneLineTransport const& transport)
{
return impl::call_factory<PhoneLineTransportDevice, IPhoneLineTransportDeviceStatics>([&](IPhoneLineTransportDeviceStatics const& f) { return f.GetDeviceSelector(transport); });
}
inline auto VoipCallCoordinator::GetDefault()
{
return impl::call_factory_cast<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator(*)(IVoipCallCoordinatorStatics const&), VoipCallCoordinator, IVoipCallCoordinatorStatics>([](IVoipCallCoordinatorStatics const& f) { return f.GetDefault(); });
}
inline auto VoipCallCoordinator::IsCallControlDeviceKindSupportedForAssociation(winrt::Windows::ApplicationModel::Calls::VoipCallControlDeviceKind const& kind)
{
return impl::call_factory<VoipCallCoordinator, IVoipCallCoordinatorStatics2>([&](IVoipCallCoordinatorStatics2 const& f) { return f.IsCallControlDeviceKindSupportedForAssociation(kind); });
}
inline auto VoipCallCoordinator::GetDeviceSelectorForCallControl()
{
return impl::call_factory_cast<hstring(*)(IVoipCallCoordinatorStatics2 const&), VoipCallCoordinator, IVoipCallCoordinatorStatics2>([](IVoipCallCoordinatorStatics2 const& f) { return f.GetDeviceSelectorForCallControl(); });
}
}
namespace std
{
#ifndef WINRT_LEAN_AND_MEAN
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IAcceptedVoipPhoneCallOptionsFactory> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IAppInitiatedVoipPhoneCallOptionsFactory> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ICallAnswerEventArgs2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ICallRejectEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ICallStateChangeEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IIncomingVoipPhoneCallOptionsFactory> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndCallDeferral> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ILockScreenCallEndRequestedEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::ILockScreenCallUI> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IMuteChangeEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IOutgoingVoipPhoneCallOptionsFactory> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCall> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallBlockingStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntry> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddress> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryAddressFactory> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryQueryOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryEntryReader> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerForUser> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryManagerStatics2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallHistoryStore> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallInfo> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallManagerStatics2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallStore> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilities> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallVideoCapabilitiesManagerStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneCallsResult> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneDialOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLine> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLine2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLine3> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineCellularDetails> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineConfiguration> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineDialResult> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDevice2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineTransportDeviceStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcher> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneLineWatcherEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IPhoneVoicemail> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator3> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator4> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinator5> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipCallCoordinatorStatics2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall2> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall3> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IVoipPhoneCall4> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::AcceptedVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::AppInitiatedVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::CallAnswerEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::CallRejectEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::CallStateChangeEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::IncomingVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::LockScreenCallEndCallDeferral> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::LockScreenCallEndRequestedEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::LockScreenCallUI> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::MuteChangeEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::OutgoingVoipPhoneCallOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCall> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallBlocking> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntry> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryAddress> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryQueryOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryEntryReader> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryManager> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryManagerForUser> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallHistoryStore> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallInfo> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallManager> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallStore> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilities> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallVideoCapabilitiesManager> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneCallsResult> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneDialOptions> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLine> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineCellularDetails> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineConfiguration> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineDialResult> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineTransportDevice> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcher> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneLineWatcherEventArgs> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::PhoneVoicemail> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::VoipCallCoordinator> : winrt::impl::hash_base {};
template<> struct hash<winrt::Windows::ApplicationModel::Calls::VoipPhoneCall> : winrt::impl::hash_base {};
#endif
#ifdef __cpp_lib_format
#endif
}
#endif