| | 1 | | using Google.Cloud.Firestore; |
| | 2 | | using MRA.Infrastructure.Database.Documents.Interfaces; |
| | 3 | | using Newtonsoft.Json; |
| | 4 | |
|
| | 5 | | namespace MRA.Infrastructure.Database.Documents.Firestore; |
| | 6 | |
|
| | 7 | | [FirestoreData] |
| | 8 | | public class DrawingFirestoreDocument : IDrawingDocument |
| | 9 | | { |
| | 10 | | [FirestoreDocumentId] |
| 0 | 11 | | public string Id { get; set; } |
| | 12 | |
|
| | 13 | | [FirestoreProperty] |
| 0 | 14 | | public string path { get; set; } |
| | 15 | |
|
| | 16 | | [FirestoreProperty] |
| 0 | 17 | | public string path_thumbnail { get; set; } |
| | 18 | |
|
| | 19 | | [FirestoreProperty] |
| 0 | 20 | | public int type { get; set; } |
| | 21 | |
|
| | 22 | | [FirestoreProperty] |
| 0 | 23 | | public bool? visible { get; set; } |
| | 24 | |
|
| | 25 | | [FirestoreProperty] |
| 0 | 26 | | public string name { get; set; } |
| | 27 | |
|
| | 28 | | [FirestoreProperty] |
| 0 | 29 | | public string model_name { get; set; } |
| | 30 | |
|
| | 31 | | [FirestoreProperty] |
| 0 | 32 | | public string title { get; set; } |
| | 33 | |
|
| | 34 | | [FirestoreProperty] |
| 0 | 35 | | public string date { get; set; } |
| | 36 | |
|
| | 37 | | [FirestoreProperty] |
| 0 | 38 | | public DateTime drawingAt { get; set; } |
| | 39 | |
|
| | 40 | | [FirestoreProperty] |
| 0 | 41 | | public int? time { get; set; } |
| | 42 | |
|
| | 43 | | [FirestoreProperty] |
| 0 | 44 | | public int product_type { get; set; } |
| | 45 | |
|
| | 46 | | [FirestoreProperty] |
| 0 | 47 | | public string product_name { get; set; } |
| | 48 | |
|
| | 49 | | [FirestoreProperty] |
| 0 | 50 | | public IEnumerable<string> list_comments { get; set; } |
| | 51 | |
|
| | 52 | | [FirestoreProperty] |
| 0 | 53 | | public IEnumerable<string> list_comments_style { get; set; } |
| | 54 | |
|
| | 55 | | [FirestoreProperty] |
| 0 | 56 | | public IEnumerable<string> list_comments_pros { get; set; } |
| | 57 | |
|
| | 58 | | [FirestoreProperty] |
| 0 | 59 | | public IEnumerable<string> list_comments_cons { get; set; } |
| | 60 | |
|
| | 61 | |
|
| | 62 | | [FirestoreProperty] |
| 0 | 63 | | public long views { get; set; } |
| | 64 | |
|
| | 65 | | [FirestoreProperty] |
| 0 | 66 | | public int filter { get; set; } |
| | 67 | |
|
| | 68 | | [FirestoreProperty] |
| 0 | 69 | | public long likes { get; set; } |
| | 70 | |
|
| | 71 | | [FirestoreProperty] |
| 0 | 72 | | public bool favorite { get; set; } |
| | 73 | |
|
| | 74 | | [FirestoreProperty] |
| 0 | 75 | | public string reference_url { get; set; } |
| | 76 | |
|
| | 77 | | [FirestoreProperty] |
| 0 | 78 | | public string spotify_url { get; set; } |
| | 79 | |
|
| | 80 | | [FirestoreProperty] |
| 0 | 81 | | public string twitter_url { get; set; } |
| | 82 | |
|
| | 83 | | [FirestoreProperty] |
| 0 | 84 | | public string instagram_url { get; set; } |
| | 85 | |
|
| | 86 | | [FirestoreProperty] |
| 0 | 87 | | public int software { get; set; } |
| | 88 | |
|
| | 89 | | [FirestoreProperty] |
| 0 | 90 | | public int paper { get; set; } |
| | 91 | |
|
| | 92 | | [FirestoreProperty] |
| 0 | 93 | | public IEnumerable<string>? tags { get; set; } |
| | 94 | |
|
| | 95 | | [FirestoreProperty] |
| 0 | 96 | | public int score_critic { get; set; } |
| | 97 | |
|
| | 98 | | [FirestoreProperty] |
| 0 | 99 | | public double score_popular { get; set; } |
| | 100 | |
|
| | 101 | | [FirestoreProperty] |
| 0 | 102 | | public int votes_popular { get; set; } |
| | 103 | |
|
| 0 | 104 | | public string GetId() => Id; |
| | 105 | | } |