Skip to content

Commit d06cbf4

Browse files
committed
setters properly needed ;)
1 parent cc495b5 commit d06cbf4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/GenderApiNameResponse.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,48 @@ public GenderApiNameResponse(Exception exception)
1616
/// <summary>
1717
/// Submitted name in lower case
1818
/// </summary>
19-
public string Name { get; }
19+
public string Name { get; set; }
2020

2121
/// <summary>
2222
/// The name after we applied our normalizer to it
2323
/// </summary>
2424
[JsonProperty("Name_Sanitized")]
25-
public string NameSanitized { get; }
25+
public string NameSanitized { get; set; }
2626

2727
/// <summary>
2828
/// Submitted country code
2929
/// </summary>
30-
public string Country { get; }
30+
public string Country { get; set; }
3131

3232
public CountryType CountryType => CountryType.ParseOrDefault(Country, CountryType.Unknown);
3333

3434
/// <summary>
3535
/// Possible values: male, female, unknown
3636
/// </summary>
37-
public string Gender { get; }
37+
public string Gender { get; set; }
3838

3939
[JsonIgnore]
4040
public GenderType GenderType => GenderType.ParseOrDefault(Gender, GenderType.Unkown);
4141

4242
/// <summary>
4343
/// Number of records found in our database which match your request
4444
/// </summary>
45-
public int Sample { get; }
45+
public int Sample { get; set; }
4646

4747
/// <summary>
4848
/// This value determines the reliability of our database. A value of 100 means that the results on your gender request are 100% accurate
4949
/// </summary>
50-
public int Accuracy { get; }
50+
public int Accuracy { get; set; }
5151

5252
/// <summary>
5353
/// Time the server needed to process the request
5454
/// </summary>
55-
public string Duration { get; }
55+
public string Duration { get; set; }
5656

5757
/// <summary>
5858
/// The amount of credits used for this query
5959
/// </summary>
6060
[JsonProperty("Credits_Used")]
61-
public int CreditsUsed { get; }
61+
public int CreditsUsed { get; set; }
6262
}
6363
}

0 commit comments

Comments
 (0)