17 lines
423 B
C#
17 lines
423 B
C#
using System.Text.Json.Serialization;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace MareSynchronosShared.Utils;
|
|
|
|
public class CdnShardConfiguration
|
|
{
|
|
public string FileMatch { get; set; }
|
|
[JsonIgnore]
|
|
public Regex FileMatchRegex => new Regex(FileMatch);
|
|
public Uri CdnFullUrl { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return CdnFullUrl.ToString() + " == " + FileMatch;
|
|
}
|
|
} |