#pragma once #include "Windows.Xbox.System.User.g.h" // WARNING: This file is automatically generated by a tool. Do not directly // add this file to your project, as any changes you make will be lost. // This file is a stub you can use as a starting point for your implementation. // // To add a copy of this file to your project: // 1. Copy this file from its original location to the location where you store // your other source files (e.g. the project root). // 2. Add the copied file to your project. In Visual Studio, you can use // Project -> Add Existing Item. // 3. Delete this comment and the 'static_assert' (below) from the copied file. // Do not modify the original file. // // To update an existing file in your project: // 1. Copy the relevant changes from this file and merge them into the copy // you made previously. // // This assertion helps prevent accidental modification of generated files. //////////static_assert(false, "This file is generated by a tool and will be overwritten. Open this error and view the comment for assistance."); namespace winrt::Windows::Xbox::System::implementation { struct User : UserT { User() = default; User(uint64_t id) : m_id(id) {} static winrt::Windows::Xbox::System::UserOnlineState OnlineState(); static winrt::event_token OnlineStateChanged(winrt::Windows::Foundation::EventHandler const& handler); static void OnlineStateChanged(winrt::event_token const& token) noexcept; static winrt::Windows::Foundation::Collections::IVectorView Users(); static winrt::event_token UserAdded(winrt::Windows::Foundation::EventHandler const& handler); static void UserAdded(winrt::event_token const& token) noexcept; static winrt::event_token UserRemoved(winrt::Windows::Foundation::EventHandler const& handler); static void UserRemoved(winrt::event_token const& token) noexcept; static winrt::Windows::Xbox::System::User GetUserById(uint32_t id); static winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureForAllUsersAsync(hstring httpMethod, hstring url, hstring headers); static winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureForAllUsersAsync(hstring httpMethod, hstring url, hstring headers, array_view body); static winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureForAllUsersAsync(hstring httpMethod, hstring url, hstring headers, hstring body); static winrt::event_token AudioDeviceAdded(winrt::Windows::Foundation::EventHandler const& handler); static void AudioDeviceAdded(winrt::event_token const& token) noexcept; static winrt::event_token AudioDeviceRemoved(winrt::Windows::Foundation::EventHandler const& handler); static void AudioDeviceRemoved(winrt::event_token const& token) noexcept; static winrt::event_token AudioDeviceChanged(winrt::Windows::Foundation::EventHandler const& handler); static void AudioDeviceChanged(winrt::event_token const& token) noexcept; static winrt::event_token SignInCompleted(winrt::Windows::Foundation::EventHandler const& handler); static void SignInCompleted(winrt::event_token const& token) noexcept; static winrt::event_token SignOutStarted(winrt::Windows::Foundation::EventHandler const& handler); static void SignOutStarted(winrt::event_token const& token) noexcept; static winrt::event_token SignOutCompleted(winrt::Windows::Foundation::EventHandler const& handler); static void SignOutCompleted(winrt::event_token const& token) noexcept; static winrt::event_token UserDisplayInfoChanged(winrt::Windows::Foundation::EventHandler const& handler); static void UserDisplayInfoChanged(winrt::event_token const& token) noexcept; static winrt::guid GetNetworkCacheIdForUsers(winrt::Windows::Foundation::Collections::IVectorView const& users); uint32_t Id(); winrt::Windows::Foundation::Collections::IVectorView AudioDevices(); winrt::Windows::Foundation::Collections::IVectorView Controllers(); winrt::Windows::Xbox::System::UserDisplayInfo DisplayInfo(); bool IsGuest(); bool IsSignedIn(); winrt::Windows::Xbox::System::UserLocation Location(); winrt::Windows::Xbox::System::User Sponsor(); hstring XboxUserHash(); hstring XboxUserId(); winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureAsync(hstring httpMethod, hstring url, hstring headers); winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureAsync(hstring httpMethod, hstring url, hstring headers, array_view body); winrt::Windows::Foundation::IAsyncOperation GetTokenAndSignatureAsync(hstring httpMethod, hstring url, hstring headers, hstring body); uint64_t m_id {0}; private: inline static winrt::event> m_userAddedEvent; inline static winrt::event> m_userRemovedEvent; inline static winrt::event> m_signOutStartedEvent; inline static winrt::event> m_onlineStateChangedEvent; inline static winrt::Windows::Xbox::System::User staticUser = {nullptr}; inline static winrt::Windows::Foundation::Collections::IVector staticUsers = {nullptr}; }; } namespace winrt::Windows::Xbox::System::factory_implementation { struct User : UserT { }; }