-
Notifications
You must be signed in to change notification settings - Fork 434
Modify constructor for AppNotificationProgressData per API review #2148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b5b0676
1925e7b
88cae57
7892d7f
bde3ebf
d89296b
ce1c571
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ namespace winrt::Microsoft::Windows::AppNotifications::implementation | |
| struct AppNotificationProgressData : AppNotificationProgressDataT<AppNotificationProgressData> | ||
| { | ||
| AppNotificationProgressData() = default; | ||
|
|
||
| AppNotificationProgressData(uint32_t sequenceNumber); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: can we use default parameter here like: AppNotificationProgressData(uint32_t sequenceNumber =1)?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would assume that we provide a default constructor in our projections. However, there is no default projection per API review feedback. We only have an overload ctor. |
||
| uint32_t SequenceNumber(); | ||
| void SequenceNumber(uint32_t sequenceNumber); | ||
| hstring Title(); | ||
|
|
@@ -19,7 +19,7 @@ namespace winrt::Microsoft::Windows::AppNotifications::implementation | |
| void Status(hstring const& progressStatus); | ||
|
|
||
| private: | ||
| uint32_t m_sequenceNumber{}; | ||
| uint32_t m_sequenceNumber = 1; | ||
|
hulumane marked this conversation as resolved.
|
||
| hstring m_title; | ||
| double m_progressValue{}; | ||
| hstring m_progressValueString; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.