// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; namespace CommunityToolkit.WinUI.Notifications { /// /// Specify audio to be played when the Toast notification is received. /// public sealed class ToastAudio { /// /// Gets or sets the media file to play in place of the default sound. /// public Uri Src { get; set; } /// /// Gets or sets a value indicating whether sound should repeat as long as the Toast is shown; false to play only once (default). /// public bool Loop { get; set; } = Element_ToastAudio.DEFAULT_LOOP; /// /// Gets or sets a value indicating whether sound is muted; false to allow the Toast notification sound to play (default). /// public bool Silent { get; set; } = Element_ToastAudio.DEFAULT_SILENT; internal Element_ToastAudio ConvertToElement() { return new Element_ToastAudio() { Src = Src, Loop = Loop, Silent = Silent }; } } }