Mixonomer.NET/Mixonomer.Fire/Model/Tag.cs

75 lines
1.9 KiB
C#
Raw Normal View History

2023-10-12 19:51:29 +01:00
using System;
using System.Collections.Generic;
using Google.Cloud.Firestore;
namespace Mixonomer.Fire;
[FirestoreData]
public class Tag
2023-10-12 19:51:29 +01:00
{
[FirestoreProperty]
public string name { get; set; }
[FirestoreProperty]
public string tag_id { get; set; }
[FirestoreProperty]
public string username { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreProperty]
public DateTime last_updated { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreProperty]
public int count { get; set; }
[FirestoreProperty]
public double proportion { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreProperty]
public bool time_objects { get; set; }
[FirestoreProperty]
public string total_time { get; set; }
[FirestoreProperty]
public int total_time_ms { get; set; }
[FirestoreProperty]
public int total_user_scrobbles { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreProperty]
public IEnumerable<TagItem> tracks { get; set; }
[FirestoreProperty]
public IEnumerable<TagItem> albums { get; set; }
[FirestoreProperty]
public IEnumerable<TagItem> artists { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreDocumentId]
public DocumentReference Reference { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreDocumentCreateTimestamp]
public Timestamp CreateTime { get; set; }
[FirestoreDocumentUpdateTimestamp]
public Timestamp UpdateTime { get; set; }
[FirestoreDocumentReadTimestamp]
public Timestamp ReadTime { get; set; }
}
2023-10-12 19:51:29 +01:00
[FirestoreData]
public class TagItem
{
[FirestoreProperty]
public string name { get; set; }
[FirestoreProperty]
public string time { get; set; }
[FirestoreProperty]
public int time_ms { get; set; }
[FirestoreProperty]
public int count { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreDocumentId]
public DocumentReference Reference { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreDocumentCreateTimestamp]
public Timestamp CreateTime { get; set; }
[FirestoreDocumentUpdateTimestamp]
public Timestamp UpdateTime { get; set; }
[FirestoreDocumentReadTimestamp]
public Timestamp ReadTime { get; set; }
2023-10-12 19:51:29 +01:00
}