Mixonomer.NET/Mixonomer.Fire/Model/User.cs

62 lines
1.9 KiB
C#
Raw Normal View History

2022-08-03 22:51:39 +01:00
using System;
2023-10-12 19:51:29 +01:00
using System.Collections.Generic;
2022-08-03 22:51:39 +01:00
using Google.Cloud.Firestore;
2022-08-07 13:54:29 +01:00
namespace Mixonomer.Fire
2022-08-03 22:51:39 +01:00
{
[FirestoreData]
public class User
{
[FirestoreProperty]
public string access_token { get; set; }
[FirestoreProperty]
public string email { get; set; }
[FirestoreProperty]
public DateTime last_login { get; set; }
[FirestoreProperty]
public DateTime last_refreshed { get; set; }
[FirestoreProperty]
2023-10-12 19:51:29 +01:00
public DateTime last_keygen { get; set; }
[FirestoreProperty]
2022-08-03 22:51:39 +01:00
public string lastfm_username { get; set; }
[FirestoreProperty]
public bool locked { get; set; }
[FirestoreProperty]
public string password { get; set; }
[FirestoreProperty]
public string refresh_token { get; set; }
[FirestoreProperty]
public bool spotify_linked { get; set; }
[FirestoreProperty]
public int token_expiry { get; set; }
[FirestoreProperty]
public string type { get; set; }
[FirestoreProperty]
public string username { get; set; }
[FirestoreProperty]
public bool validated { get; set; }
2023-10-12 19:51:29 +01:00
[FirestoreProperty]
public IEnumerable<string> apns_tokens { get; set; }
[FirestoreProperty]
public bool notify { get; set; }
[FirestoreProperty]
public bool notify_admins { get; set; }
[FirestoreProperty]
public bool notify_playlist_updates { get; set; }
[FirestoreProperty]
public bool notify_tag_updates { get; set; }
2022-08-03 22:51:39 +01:00
[FirestoreDocumentId]
public DocumentReference Reference { get; set; }
[FirestoreDocumentCreateTimestamp]
public Timestamp CreateTime { get; set; }
[FirestoreDocumentUpdateTimestamp]
public Timestamp UpdateTime { get; set; }
[FirestoreDocumentReadTimestamp]
public Timestamp ReadTime { get; set; }
}
}