// WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.2

#include "pybase.h"
#include "py.Windows.ApplicationModel.Calls.Background.h"

PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>::python_type;
PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>::python_type;
PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>::python_type;
PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>::python_type;
PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>::python_type;
PyTypeObject* py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>::python_type;

namespace py::cpp::Windows::ApplicationModel::Calls::Background
{
    // ----- PhoneCallBlockedTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneCallBlockedTriggerDetails = "PhoneCallBlockedTriggerDetails";

    static PyObject* _new_PhoneCallBlockedTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneCallBlockedTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneCallBlockedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneCallBlockedTriggerDetails_get_CallBlockedReason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.CallBlockedReason());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneCallBlockedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.LineId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneCallBlockedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.PhoneNumber());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneCallBlockedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneCallBlockedTriggerDetails[] = {
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallBlockedTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneCallBlockedTriggerDetails[] = {
        { "call_blocked_reason", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_CallBlockedReason), nullptr, nullptr, nullptr },
        { "line_id", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
        { "phone_number", reinterpret_cast<getter>(PhoneCallBlockedTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneCallBlockedTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneCallBlockedTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneCallBlockedTriggerDetails },
        { Py_tp_methods, _methods_PhoneCallBlockedTriggerDetails },
        { Py_tp_getset, _getset_PhoneCallBlockedTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneCallBlockedTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneCallBlockedTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneCallBlockedTriggerDetails
    };

    // ----- PhoneCallOriginDataRequestTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneCallOriginDataRequestTriggerDetails = "PhoneCallOriginDataRequestTriggerDetails";

    static PyObject* _new_PhoneCallOriginDataRequestTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneCallOriginDataRequestTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneCallOriginDataRequestTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.PhoneNumber());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneCallOriginDataRequestTriggerDetails_get_RequestId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.RequestId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneCallOriginDataRequestTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneCallOriginDataRequestTriggerDetails[] = {
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneCallOriginDataRequestTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneCallOriginDataRequestTriggerDetails[] = {
        { "phone_number", reinterpret_cast<getter>(PhoneCallOriginDataRequestTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
        { "request_id", reinterpret_cast<getter>(PhoneCallOriginDataRequestTriggerDetails_get_RequestId), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneCallOriginDataRequestTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneCallOriginDataRequestTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneCallOriginDataRequestTriggerDetails },
        { Py_tp_methods, _methods_PhoneCallOriginDataRequestTriggerDetails },
        { Py_tp_getset, _getset_PhoneCallOriginDataRequestTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneCallOriginDataRequestTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneCallOriginDataRequestTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneCallOriginDataRequestTriggerDetails
    };

    // ----- PhoneIncomingCallDismissedTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneIncomingCallDismissedTriggerDetails = "PhoneIncomingCallDismissedTriggerDetails";

    static PyObject* _new_PhoneIncomingCallDismissedTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneIncomingCallDismissedTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneIncomingCallDismissedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DismissalTime(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.DismissalTime());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.DisplayName());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.LineId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_PhoneNumber(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.PhoneNumber());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_Reason(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.Reason());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallDismissedTriggerDetails_get_TextReplyMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.TextReplyMessage());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneIncomingCallDismissedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneIncomingCallDismissedTriggerDetails[] = {
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneIncomingCallDismissedTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneIncomingCallDismissedTriggerDetails[] = {
        { "dismissal_time", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_DismissalTime), nullptr, nullptr, nullptr },
        { "display_name", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_DisplayName), nullptr, nullptr, nullptr },
        { "line_id", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
        { "phone_number", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_PhoneNumber), nullptr, nullptr, nullptr },
        { "reason", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_Reason), nullptr, nullptr, nullptr },
        { "text_reply_message", reinterpret_cast<getter>(PhoneIncomingCallDismissedTriggerDetails_get_TextReplyMessage), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneIncomingCallDismissedTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneIncomingCallDismissedTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneIncomingCallDismissedTriggerDetails },
        { Py_tp_methods, _methods_PhoneIncomingCallDismissedTriggerDetails },
        { Py_tp_getset, _getset_PhoneIncomingCallDismissedTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneIncomingCallDismissedTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneIncomingCallDismissedTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneIncomingCallDismissedTriggerDetails
    };

    // ----- PhoneIncomingCallNotificationTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneIncomingCallNotificationTriggerDetails = "PhoneIncomingCallNotificationTriggerDetails";

    static PyObject* _new_PhoneIncomingCallNotificationTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneIncomingCallNotificationTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneIncomingCallNotificationTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_CallId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.CallId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneIncomingCallNotificationTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.LineId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneIncomingCallNotificationTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneIncomingCallNotificationTriggerDetails[] = {
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneIncomingCallNotificationTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneIncomingCallNotificationTriggerDetails[] = {
        { "call_id", reinterpret_cast<getter>(PhoneIncomingCallNotificationTriggerDetails_get_CallId), nullptr, nullptr, nullptr },
        { "line_id", reinterpret_cast<getter>(PhoneIncomingCallNotificationTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneIncomingCallNotificationTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneIncomingCallNotificationTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneIncomingCallNotificationTriggerDetails },
        { Py_tp_methods, _methods_PhoneIncomingCallNotificationTriggerDetails },
        { Py_tp_getset, _getset_PhoneIncomingCallNotificationTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneIncomingCallNotificationTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneIncomingCallNotificationTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneIncomingCallNotificationTriggerDetails
    };

    // ----- PhoneLineChangedTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneLineChangedTriggerDetails = "PhoneLineChangedTriggerDetails";

    static PyObject* _new_PhoneLineChangedTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneLineChangedTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneLineChangedTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneLineChangedTriggerDetails_HasLinePropertyChanged(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, PyObject* args) noexcept
    {
        Py_ssize_t arg_count = PyTuple_Size(args);

        if (arg_count == 1)
        {
            try
            {
                auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineProperties>(args, 0);

                return py::convert(self->obj.HasLinePropertyChanged(param0));
            }
            catch (...)
            {
                py::to_PyErr();
                return nullptr;
            }
        }
        else
        {
            py::set_invalid_arg_count_error(arg_count);
            return nullptr;
        }
    }

    static PyObject* PhoneLineChangedTriggerDetails_get_ChangeType(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.ChangeType());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneLineChangedTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.LineId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneLineChangedTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneLineChangedTriggerDetails[] = {
        { "has_line_property_changed", reinterpret_cast<PyCFunction>(PhoneLineChangedTriggerDetails_HasLinePropertyChanged), METH_VARARGS, nullptr },
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneLineChangedTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneLineChangedTriggerDetails[] = {
        { "change_type", reinterpret_cast<getter>(PhoneLineChangedTriggerDetails_get_ChangeType), nullptr, nullptr, nullptr },
        { "line_id", reinterpret_cast<getter>(PhoneLineChangedTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneLineChangedTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneLineChangedTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneLineChangedTriggerDetails },
        { Py_tp_methods, _methods_PhoneLineChangedTriggerDetails },
        { Py_tp_getset, _getset_PhoneLineChangedTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneLineChangedTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneLineChangedTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneLineChangedTriggerDetails
    };

    // ----- PhoneNewVoicemailMessageTriggerDetails class --------------------
    constexpr const char* const _type_name_PhoneNewVoicemailMessageTriggerDetails = "PhoneNewVoicemailMessageTriggerDetails";

    static PyObject* _new_PhoneNewVoicemailMessageTriggerDetails(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
    {
        py::set_invalid_activation_error(_type_name_PhoneNewVoicemailMessageTriggerDetails);
        return nullptr;
    }

    static void _dealloc_PhoneNewVoicemailMessageTriggerDetails(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self)
    {
        auto hash_value = std::hash<winrt::Windows::Foundation::IInspectable>{}(self->obj);
        py::wrapped_instance(hash_value, nullptr);
        self->obj = nullptr;
    }

    static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_LineId(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.LineId());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_OperatorMessage(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.OperatorMessage());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* PhoneNewVoicemailMessageTriggerDetails_get_VoicemailCount(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails* self, void* /*unused*/) noexcept
    {
        try
        {
            return py::convert(self->obj.VoicemailCount());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyObject* _from_PhoneNewVoicemailMessageTriggerDetails(PyObject* /*unused*/, PyObject* arg) noexcept
    {
        try
        {
            auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
            return py::convert(return_value.as<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>());
        }
        catch (...)
        {
            py::to_PyErr();
            return nullptr;
        }
    }

    static PyMethodDef _methods_PhoneNewVoicemailMessageTriggerDetails[] = {
        { "_from", reinterpret_cast<PyCFunction>(_from_PhoneNewVoicemailMessageTriggerDetails), METH_O | METH_STATIC, nullptr },
        { }
    };

    static PyGetSetDef _getset_PhoneNewVoicemailMessageTriggerDetails[] = {
        { "line_id", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_LineId), nullptr, nullptr, nullptr },
        { "operator_message", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_OperatorMessage), nullptr, nullptr, nullptr },
        { "voicemail_count", reinterpret_cast<getter>(PhoneNewVoicemailMessageTriggerDetails_get_VoicemailCount), nullptr, nullptr, nullptr },
        { }
    };

    static PyType_Slot _type_slots_PhoneNewVoicemailMessageTriggerDetails[] = 
    {
        { Py_tp_new, _new_PhoneNewVoicemailMessageTriggerDetails },
        { Py_tp_dealloc, _dealloc_PhoneNewVoicemailMessageTriggerDetails },
        { Py_tp_methods, _methods_PhoneNewVoicemailMessageTriggerDetails },
        { Py_tp_getset, _getset_PhoneNewVoicemailMessageTriggerDetails },
        { },
    };

    static PyType_Spec _type_spec_PhoneNewVoicemailMessageTriggerDetails =
    {
        "_winsdk_Windows_ApplicationModel_Calls_Background.PhoneNewVoicemailMessageTriggerDetails",
        sizeof(py::wrapper::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails),
        0,
        Py_TPFLAGS_DEFAULT,
        _type_slots_PhoneNewVoicemailMessageTriggerDetails
    };

    // ----- Windows.ApplicationModel.Calls.Background Initialization --------------------
    static int module_exec(PyObject* module) noexcept
    {
        try
        {
            py::pyobj_handle bases { PyTuple_Pack(1, py::winrt_type<py::Object>::python_type) };

            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallBlockedTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneCallBlockedTriggerDetails, &_type_spec_PhoneCallBlockedTriggerDetails, bases.get());
            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneCallOriginDataRequestTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneCallOriginDataRequestTriggerDetails, &_type_spec_PhoneCallOriginDataRequestTriggerDetails, bases.get());
            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallDismissedTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneIncomingCallDismissedTriggerDetails, &_type_spec_PhoneIncomingCallDismissedTriggerDetails, bases.get());
            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneIncomingCallNotificationTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneIncomingCallNotificationTriggerDetails, &_type_spec_PhoneIncomingCallNotificationTriggerDetails, bases.get());
            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneLineChangedTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneLineChangedTriggerDetails, &_type_spec_PhoneLineChangedTriggerDetails, bases.get());
            py::winrt_type<winrt::Windows::ApplicationModel::Calls::Background::PhoneNewVoicemailMessageTriggerDetails>::python_type = py::register_python_type(module, _type_name_PhoneNewVoicemailMessageTriggerDetails, &_type_spec_PhoneNewVoicemailMessageTriggerDetails, bases.get());

            return 0;
        }
        catch (...)
        {
            py::to_PyErr();
            return -1;
        }
    }

    static PyModuleDef_Slot module_slots[] = {{Py_mod_exec, module_exec}, {}};

    PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Calls.Background");

    static PyModuleDef module_def
        = {PyModuleDef_HEAD_INIT,
           "_winsdk_Windows_ApplicationModel_Calls_Background",
           module_doc,
           0,
           nullptr,
           module_slots,
           nullptr,
           nullptr,
           nullptr};
} // py::cpp::Windows::ApplicationModel::Calls::Background

PyMODINIT_FUNC
PyInit__winsdk_Windows_ApplicationModel_Calls_Background (void) noexcept
{
    return PyModuleDef_Init(&py::cpp::Windows::ApplicationModel::Calls::Background::module_def);
}
