aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.Extensions/Json/Converters/JsonPipeDelimitedArrayConverter.cs
blob: 55720ee4f34618d44bd78e258cbcd2d2a07f77c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Jellyfin.Extensions.Json.Converters
{
    /// <summary>
    /// Convert Pipe delimited string to array of type.
    /// </summary>
    /// <typeparam name="T">Type to convert to.</typeparam>
    public sealed class JsonPipeDelimitedArrayConverter<T> : JsonDelimitedArrayConverter<T>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="JsonPipeDelimitedArrayConverter{T}"/> class.
        /// </summary>
        public JsonPipeDelimitedArrayConverter() : base()
        {
        }

        /// <inheritdoc />
        protected override char Delimiter => '|';
    }
}