mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
Added a SeriesInfo DTO
This commit is contained in:
parent
4e37f03b12
commit
2ca4e8b1c2
3 changed files with 29 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using MediaBrowser.Model.Entities;
|
||||||
using System.Collections.Generic;
|
|
||||||
using MediaBrowser.Model.Entities;
|
|
||||||
using ProtoBuf;
|
using ProtoBuf;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.DTO
|
namespace MediaBrowser.Model.DTO
|
||||||
{
|
{
|
||||||
|
@ -156,6 +156,12 @@ namespace MediaBrowser.Model.DTO
|
||||||
[ProtoMember(43)]
|
[ProtoMember(43)]
|
||||||
public VideoInfo VideoInfo { get; set; }
|
public VideoInfo VideoInfo { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(44)]
|
||||||
|
public VideoInfo SeriesInfo { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(45)]
|
||||||
|
public bool IsNew { get; set; }
|
||||||
|
|
||||||
public bool IsType(Type type)
|
public bool IsType(Type type)
|
||||||
{
|
{
|
||||||
return IsType(type.Name);
|
return IsType(type.Name);
|
||||||
|
@ -165,8 +171,5 @@ namespace MediaBrowser.Model.DTO
|
||||||
{
|
{
|
||||||
return Type.Equals(type, StringComparison.OrdinalIgnoreCase);
|
return Type.Equals(type, StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(44)]
|
|
||||||
public bool IsNew { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
18
MediaBrowser.Model/DTO/SeriesInfo.cs
Normal file
18
MediaBrowser.Model/DTO/SeriesInfo.cs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
using ProtoBuf;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace MediaBrowser.Model.DTO
|
||||||
|
{
|
||||||
|
[ProtoContract]
|
||||||
|
public class SeriesInfo
|
||||||
|
{
|
||||||
|
[ProtoMember(1)]
|
||||||
|
public string Status { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(2)]
|
||||||
|
public string AirTime { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(3)]
|
||||||
|
public DayOfWeek[] AirDays { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -35,6 +35,7 @@
|
||||||
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
|
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
|
||||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||||
<Compile Include="DTO\AudioInfo.cs" />
|
<Compile Include="DTO\AudioInfo.cs" />
|
||||||
|
<Compile Include="DTO\SeriesInfo.cs" />
|
||||||
<Compile Include="Entities\AuthenticationResult.cs" />
|
<Compile Include="Entities\AuthenticationResult.cs" />
|
||||||
<Compile Include="DTO\DTOBaseItem.cs" />
|
<Compile Include="DTO\DTOBaseItem.cs" />
|
||||||
<Compile Include="DTO\DTOUser.cs" />
|
<Compile Include="DTO\DTOUser.cs" />
|
||||||
|
|
Loading…
Reference in a new issue