Element_ToastSelection.cs 1.3 KB

123456789101112131415161718192021222324252627282930
  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. namespace Microsoft.Toolkit.Uwp.Notifications
  13. {
  14. [NotificationXmlElement("selection")]
  15. internal sealed class Element_ToastSelection : IElement_ToastInputChild
  16. {
  17. /// <summary>
  18. /// The id attribute is required and it is for apps to retrieve back the user selected input after the app is activated.
  19. /// </summary>
  20. [NotificationXmlAttribute("id")]
  21. public string Id { get; set; }
  22. /// <summary>
  23. /// The text to display for this selection element.
  24. /// </summary>
  25. [NotificationXmlAttribute("content")]
  26. public string Content { get; set; }
  27. }
  28. }