Skip to content

Commit f6ed3ec

Browse files
authored
Merge pull request #3 from craftersmine/dev
Marked few properties as obsolete
2 parents cc8fbf3 + b3fcc18 commit f6ed3ec

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

craftersmine.SteamGridDB.Net/SteamGridDbObject.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public class SteamGridDbObject
2121
[JsonProperty("id")]
2222
public int Id { get; private set; }
2323
/// <summary>
24-
/// Gets item Score. No official documentation
24+
/// Gets item Score. Obsolete by SteamGridDB API and will be always 0
2525
/// </summary>
26-
[JsonProperty("score")]
26+
[JsonProperty("score"), Obsolete("This property is marked as obsolete by API developer and left only for backwards compatibility. This property will always return false")]
2727
public int Score { get; private set; }
2828
/// <summary>
2929
/// Gets an item style
@@ -76,24 +76,24 @@ public class SteamGridDbObject
7676
[JsonProperty("thumb")]
7777
public string ThumbnailImageUrl { get; private set; }
7878
/// <summary>
79-
/// Gets <see langword="true"/> if item is locked by user, otherwise <see langword="false"/>. No official documentation
79+
/// Gets <see langword="true"/> if item is locked by user, otherwise <see langword="false"/>. Obsolete by SteamGridDB API and will be always <see langword="false"/>
8080
/// </summary>
81-
[JsonProperty("lock")]
81+
[JsonProperty("lock"), Obsolete("This property is marked as obsolete by API developer and left only for backwards compatibility. This property will always return false")]
8282
public bool IsLocked { get; private set; }
8383
/// <summary>
8484
/// Gets <see langword="true"/> if contains content that can cause seizures or epilepsy, otherwise <see langword="false"/>
8585
/// </summary>
8686
[JsonProperty("epilepsy")]
8787
public bool CanCauseEpilepsy { get; private set; }
8888
/// <summary>
89-
/// Gets a number of upvotes for item. No official documentation
89+
/// Gets a number of upvotes for item. Obsolete by SteamGridDB API and will be always 0
9090
/// </summary>
91-
[JsonProperty("upvotes")]
91+
[JsonProperty("upvotes"), Obsolete("This property is marked as obsolete by API developer and left only for backwards compatibility. This property will always return 0")]
9292
public int Upvotes { get; private set; }
9393
/// <summary>
94-
/// Gets a number of downvotes for item. No official documentation
94+
/// Gets a number of downvotes for item. Obsolete by SteamGridDB API and will be always 0
9595
/// </summary>
96-
[JsonProperty("downvotes")]
96+
[JsonProperty("downvotes"), Obsolete("This property is marked as obsolete by API developer and left only for backwards compatibility. This property will always return 0")]
9797
public int Downvotes { get; private set; }
9898
/// <summary>
9999
/// Gets a <see cref="SteamAuthor"/> object that created that item

craftersmine.SteamGridDB.Net/craftersmine.SteamGridDB.Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<GenerateDocumentationFile>True</GenerateDocumentationFile>
66
<RootNamespace>craftersmine.SteamGridDBNet</RootNamespace>
7-
<Version>1.1.1</Version>
7+
<Version>1.1.2</Version>
88
<Authors>craftersmine</Authors>
99
<Description>A .NET implementation of SteamGridDB API</Description>
1010
<Copyright>Copyright © craftersmine 2022</Copyright>

0 commit comments

Comments
 (0)