mirror of
https://github.com/sphildreth/roadie
synced 2024-11-26 14:10:21 +00:00
31 lines
No EOL
1.1 KiB
C#
31 lines
No EOL
1.1 KiB
C#
using Roadie.Library.Utility;
|
|
|
|
namespace Roadie.Library.Models
|
|
{
|
|
public sealed class TrackStreamInfo
|
|
{
|
|
public string AcceptRanges => "bytes";
|
|
public long BeginBytes { get; set; }
|
|
public byte[] Bytes { get; set; }
|
|
public string CacheControl { get; set; }
|
|
public string ContentDisposition { get; set; }
|
|
public string ContentDuration { get; set; }
|
|
public string ContentLength { get; set; }
|
|
public string ContentRange { get; set; }
|
|
public string ContentType => MimeTypeHelper.Mp3MimeType;
|
|
public long EndBytes { get; set; }
|
|
public string Etag { get; set; }
|
|
public string Expires { get; set; }
|
|
public string FileName { get; set; }
|
|
public bool IsEndRangeRequest { get; set; }
|
|
public bool IsFullRequest { get; set; }
|
|
public string LastModified { get; set; }
|
|
public string Pragma { get; set; }
|
|
public DataToken Track { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"TrackId [{Track}], ContentRange [{ContentRange}], Begin [{BeginBytes}], End [{EndBytes}]";
|
|
}
|
|
}
|
|
} |