Skip to content

Commit 34f1d62

Browse files
committed
fixed typo in Unknown and added Undetermined
1 parent 66a6ad3 commit 34f1d62

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/GenderType.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ public GenderType(int value, string displayName)
88
: base(value, displayName)
99
{}
1010

11-
public static readonly GenderType Unkown = new GenderType(0,"unknown");
11+
public static readonly GenderType Undetermined = new GenderType(-1, "undetermined");
12+
public static readonly GenderType Unknown = new GenderType(0,"unknown");
1213
public static readonly GenderType Male = new GenderType(1,"male");
1314
public static readonly GenderType Female = new GenderType(2,"female");
15+
16+
public bool IsGenderKnown => Value > 0;
1417
}
1518
}

src/MicroKnights.Gender-API.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<PackageProjectUrl>https://github.com/microknights/Gender-API</PackageProjectUrl>
1414
<RepositoryUrl>https://github.com/microknights/Gender-API</RepositoryUrl>
1515
<RepositoryType>Git</RepositoryType>
16-
<PackageReleaseNotes>Changed target to .Net Standard</PackageReleaseNotes>
17-
<AssemblyVersion>1.1.1.0</AssemblyVersion>
18-
<FileVersion>1.1.1.0</FileVersion>
19-
<Version>1.1.0</Version>
16+
<PackageReleaseNotes>Fixed typo in Unknown state, and added Undetermined</PackageReleaseNotes>
17+
<AssemblyVersion>1.2.0.0</AssemblyVersion>
18+
<FileVersion>1.2.0.0</FileVersion>
19+
<Version>1.2.0</Version>
2020
</PropertyGroup>
2121

2222
<ItemGroup>

0 commit comments

Comments
 (0)