wabbajack/Wabbajack.DTOs/DownloadStates/Http.cs

15 lines
453 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System;
using Wabbajack.DTOs.JsonConverters;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.DownloadStates;
[JsonAlias("Http")]
[JsonAlias("HttpDownloader")]
[JsonName("HttpDownloader, Wabbajack.Lib")]
public class Http : ADownloadState
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
public Uri Url { get; init; }
public string[] Headers { get; set; } = Array.Empty<string>();
public override string TypeName => "HTTPDownloader+State";
public override object[] PrimaryKey => new object[] {Url};
2021-09-27 12:42:46 +00:00
}