Element_ToastActions.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // ******************************************************************
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // This code is licensed under the MIT License (MIT).
  4. // THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  5. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  6. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  7. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  8. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  9. // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  10. // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
  11. // ******************************************************************
  12. using System.Collections.Generic;
  13. namespace Microsoft.Toolkit.Uwp.Notifications
  14. {
  15. [NotificationXmlElement("actions")]
  16. internal sealed class Element_ToastActions
  17. {
  18. internal const ToastSystemCommand DEFAULT_SYSTEM_COMMAND = ToastSystemCommand.None;
  19. [NotificationXmlAttribute("hint-systemCommands", DEFAULT_SYSTEM_COMMAND)]
  20. public ToastSystemCommand SystemCommands { get; set; } = ToastSystemCommand.None;
  21. public IList<IElement_ToastActionsChild> Children { get; private set; } = new List<IElement_ToastActionsChild>();
  22. }
  23. internal interface IElement_ToastActionsChild
  24. {
  25. }
  26. internal enum ToastSystemCommand
  27. {
  28. None,
  29. SnoozeAndDismiss
  30. }
  31. }