Skip to content

Commit

Permalink
Merge pull request #72 from micah686/2020-11-13_API
Browse files Browse the repository at this point in the history
Added new functions to the API
  • Loading branch information
Nikey646 authored Nov 14, 2020
2 parents 43d6942 + 6434a73 commit f007048
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
13 changes: 13 additions & 0 deletions VndbSharp/Models/Character/Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class Character
/// </summary>
public Gender? Gender { get; private set; }
/// <summary>
/// Actual Sex, if the gender is a spoiler
/// </summary>
public Gender? SpoilGender { get; private set; }
/// <summary>
/// Character's Gender
/// </summary>
[JsonProperty("bloodt")]
Expand All @@ -46,6 +50,10 @@ public class Character
/// Description of the character
/// </summary>
public String Description { get; private set; }
/// <summary>
/// Character's age in years
/// </summary>
public Int64? Age { get; private set; }
/// <summary>
/// Url Image of the character
/// </summary>
Expand Down Expand Up @@ -75,6 +83,11 @@ public class Character
/// Weight in Kilograms
/// </summary>
public Int64? Weight { get; private set; }
/// <summary>
/// CupSize of the character
/// </summary>
[JsonProperty("cup_size")]
public String CupSize { get; private set; }
/// <summary>
/// List of traits the character has
/// </summary>
Expand Down
7 changes: 6 additions & 1 deletion VndbSharp/Models/Common/Gender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public enum Gender
/// Mixed/Both Gender
/// </summary>
[RealValue("b")]
Both
Both,
/// <summary>
/// Unknown gender for use with SpoilGender
/// </summary>
[RealValue("unknown")]
Unknown
}
}
6 changes: 3 additions & 3 deletions VndbSharp/Models/DatabaseStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ public class DatabaseStats
/// <summary>
/// AMount of Users in the DB
/// </summary>
[Obsolete("This no longer is used (Returns 0)")]
[Obsolete("This no longer is used (Returns 0) This will be removed in a later version of the API")]
public UInt32 Users { get; private set; }
/// <summary>
/// Amount of Threads in the DB
/// </summary>
[Obsolete("This no longer is used (Returns 0)")]
[Obsolete("This no longer is used (Returns 0) This will be removed in a later version of the API")]
public UInt32 Threads { get; private set; }
/// <summary>
/// Amount of Tags in the DB
Expand All @@ -38,7 +38,7 @@ public class DatabaseStats
/// <summary>
/// Amount of Posts in the DB
/// </summary>
[Obsolete("This no longer is used (Returns 0)")]
[Obsolete("This no longer is used (Returns 0) This will be removed in a later version of the API")]
public UInt32 Posts{ get; private set; }
/// <summary>
/// Amount of VNs in the DB
Expand Down
2 changes: 1 addition & 1 deletion VndbSharp/Vndb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace VndbSharp
public partial class Vndb
{
//Version in Year.Month.Day
private static readonly Version ApiVer = new Version(2020,07,09);
private static readonly Version ApiVer = new Version(2020,11,13);
private static VersionStatus ApiStatus = VersionStatus.Incomplete;
/// <summary>
/// Creates a new instance of the Vndb class, to issue commands to the API
Expand Down

0 comments on commit f007048

Please sign in to comment.