Skip to content

Modify constructor for AppNotificationProgressData per API review#2148

Merged
hulumane merged 7 commits intofeature/WNP_ToastNotifications_L1from
user/pavanh/fix-non-zero-sequence
Feb 24, 2022
Merged

Modify constructor for AppNotificationProgressData per API review#2148
hulumane merged 7 commits intofeature/WNP_ToastNotifications_L1from
user/pavanh/fix-non-zero-sequence

Conversation

@hulumane
Copy link
Copy Markdown
Member

Per API review feedback, we need a ctor that takes in a sequence number. Sequence number needs to be non-zero and enforced, otherwise we throw.

@ghost ghost added the needs-triage label Feb 24, 2022
@loneursid loneursid added the area-Notifications Toast notification, badges, Live Tiles, push notifications label Feb 24, 2022
@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread dev/AppNotifications/AppNotificationProgressData.h
Comment thread dev/AppNotifications/AppNotificationProgressData.cpp
Comment thread dev/AppNotifications/AppNotificationUtility.cpp
@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

{
AppNotificationProgressData() = default;

AppNotificationProgressData(uint32_t sequenceNumber);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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.

Comment thread dev/AppNotifications/NotificationProperties.cpp
@hulumane
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hulumane hulumane enabled auto-merge (squash) February 24, 2022 18:54
@hulumane hulumane merged commit d969826 into feature/WNP_ToastNotifications_L1 Feb 24, 2022
@hulumane hulumane deleted the user/pavanh/fix-non-zero-sequence branch February 24, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Notifications Toast notification, badges, Live Tiles, push notifications needs-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants