-
Notifications
You must be signed in to change notification settings - Fork 349
/
Copy pathAppNotificationTextProperties.h
44 lines (34 loc) · 1.78 KB
/
AppNotificationTextProperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma once
#include "Microsoft.Windows.AppNotifications.Builder.AppNotificationTextProperties.g.h"
namespace winrt::Microsoft::Windows::AppNotifications::Builder::implementation
{
struct AppNotificationTextProperties : AppNotificationTextPropertiesT<AppNotificationTextProperties, winrt::Windows::Foundation::IStringable>
{
AppNotificationTextProperties() = default;
// Properties
void Language(winrt::hstring const& value) { m_language = value; };
winrt::hstring Language() { return m_language; };
void MaxLines(int const& value) { m_maxLines = value; };
int MaxLines() { return m_maxLines; };
void IncomingCallAlignment(bool const& value) { m_useCallScenarioAlign = value; };
bool IncomingCallAlignment() { return m_useCallScenarioAlign; };
// Fluent Setters
winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties SetLanguage(winrt::hstring const& value);
winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties SetIncomingCallAlignment();
winrt::Microsoft::Windows::AppNotifications::Builder::AppNotificationTextProperties SetMaxLines(int const& value);
// IStringable
winrt::hstring ToString();
private:
int m_maxLines{ 0 };
winrt::hstring m_language{};
bool m_useCallScenarioAlign{};
};
}
namespace winrt::Microsoft::Windows::AppNotifications::Builder::factory_implementation
{
struct AppNotificationTextProperties : AppNotificationTextPropertiesT<AppNotificationTextProperties, implementation::AppNotificationTextProperties>
{
};
}