don't look at me
This commit is contained in:
parent
e9f444e5b4
commit
cedbad8fba
56 changed files with 1111 additions and 294 deletions
29
backend/src/Models/ItemDTO.cs
Normal file
29
backend/src/Models/ItemDTO.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using JellyGlass.Models.JellyfinApi;
|
||||
|
||||
namespace JellyGlass.Models;
|
||||
|
||||
public class ItemDTO
|
||||
{
|
||||
public ItemDTO() { }
|
||||
|
||||
public ItemDTO(Item item, string ServerUrl)
|
||||
{
|
||||
ID = item.Id;
|
||||
Name = item.Name;
|
||||
ServerID = item.ServerId;
|
||||
this.ServerUrl = ServerUrl;
|
||||
Type = item.Type;
|
||||
Index = item.IndexNumber;
|
||||
ParentId = item.ParentId;
|
||||
ThumbnailUrl = $"{this.ServerUrl}/Items/{ID}/Images/Primary";
|
||||
}
|
||||
|
||||
public string ID { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string ServerID { get; set; } = string.Empty;
|
||||
public string ServerUrl { get; set; } = string.Empty;
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public int? Index { get; set; }
|
||||
public string? ParentId { get; set; }
|
||||
public string? ThumbnailUrl { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue