@@ -47,10 +47,12 @@ public record CategoriesObj
4747 {
4848 //public long id { get; set; }
4949 //public long gameId { get; set; }
50- //public string name { get; set; }
50+ [ JsonPropertyName ( "name" ) ]
51+ public string Name { get ; set ; }
5152 //public string slug { get; set; }
5253 //public string url { get; set; }
53- //public string iconUrl { get; set; }
54+ [ JsonPropertyName ( "iconUrl" ) ]
55+ public string IconUrl { get ; set ; }
5456 //public string dateModified { get; set; }
5557 //public bool isClass { get; set; }
5658 [ JsonPropertyName ( "classId" ) ]
@@ -62,7 +64,8 @@ public record AuthorsObj
6264 //public long id { get; set; }
6365 [ JsonPropertyName ( "name" ) ]
6466 public string Name { get ; set ; }
65- //public string url { get; set; }
67+ [ JsonPropertyName ( "avatarUrl" ) ]
68+ public string AvatarUrl { get ; set ; }
6669 }
6770 public record LogoObj
6871 {
@@ -74,15 +77,18 @@ public record LogoObj
7477 [ JsonPropertyName ( "url" ) ]
7578 public string Url { get ; set ; }
7679 }
77- //public record Screenshots
78- //{
79- // public long id { get; set; }
80- // public long modId { get; set; }
81- // public string title { get; set; }
82- // public string description { get; set; }
83- // public string thumbnailUrl { get; set; }
84- // public string url { get; set; }
85- //}
80+ public record ScreenshotsObj
81+ {
82+ //public long id { get; set; }
83+ //public long modId { get; set; }
84+ [ JsonPropertyName ( "title" ) ]
85+ public string Title { get ; set ; }
86+ [ JsonPropertyName ( "description" ) ]
87+ public string Description { get ; set ; }
88+ //public string thumbnailUrl { get; set; }
89+ [ JsonPropertyName ( "url" ) ]
90+ public string Url { get ; set ; }
91+ }
8692 //public record LatestFilesIndexes
8793 //{
8894 // public string gameVersion { get; set; }
@@ -115,7 +121,8 @@ public record LogoObj
115121 public List < AuthorsObj > Authors { get ; set ; }
116122 [ JsonPropertyName ( "logo" ) ]
117123 public LogoObj Logo { get ; set ; }
118- //public List<Screenshots> screenshots { get; set; }
124+ [ JsonPropertyName ( "screenshots" ) ]
125+ public List < ScreenshotsObj > Screenshots { get ; set ; }
119126 //public long mainFileId { get; set; }
120127 //public List<CurseForgeModObj.DataObj> latestFiles { get; set; }
121128 //public List<LatestFilesIndexes> latestFilesIndexes { get; set; }
0 commit comments