#62 golha.co.uk musuic catalogue db models
This commit is contained in:
parent
26e6483c7b
commit
50f4dfa40c
27
RMuseum/Models/MusicCatalogue/GolhaCollection.cs
Normal file
27
RMuseum/Models/MusicCatalogue/GolhaCollection.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace RMuseum.Models.MusicCatalogue
|
||||
{
|
||||
/// <summary>
|
||||
/// http://www.golha.co.uk offline catalogue
|
||||
/// </summary>
|
||||
public class GolhaCollection
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// name
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// url
|
||||
/// </summary>
|
||||
public string Url { get { return $"http://www.golha.co.uk/fa/search_basic/{Id}"; } }
|
||||
}
|
||||
}
|
||||
44
RMuseum/Models/MusicCatalogue/GolhaProgram.cs
Normal file
44
RMuseum/Models/MusicCatalogue/GolhaProgram.cs
Normal file
@ -0,0 +1,44 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace RMuseum.Models.MusicCatalogue
|
||||
{
|
||||
public class GolhaProgram
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GolhaCollection Id
|
||||
/// </summary>
|
||||
public int GolhaCollectionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GolhaCollection
|
||||
/// </summary>
|
||||
public GolhaCollection GolhaCollection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// title
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// program order
|
||||
/// </summary>
|
||||
public int ProgramOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// url
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// mp3
|
||||
/// </summary>
|
||||
public string Mp3 { get; set; }
|
||||
}
|
||||
}
|
||||
35
RMuseum/Models/MusicCatalogue/GolhaTrack.cs
Normal file
35
RMuseum/Models/MusicCatalogue/GolhaTrack.cs
Normal file
@ -0,0 +1,35 @@
|
||||
namespace RMuseum.Models.MusicCatalogue
|
||||
{
|
||||
public class GolhaTrack
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GolhaProgram Id
|
||||
/// </summary>
|
||||
public int GolhaProgramId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GolhaProgram
|
||||
/// </summary>
|
||||
public GolhaProgram GolhaProgram { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// track no
|
||||
/// </summary>
|
||||
public int TrackNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// timing
|
||||
/// </summary>
|
||||
public string Timing { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// title
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user