Created
May 1, 2020 01:18
-
-
Save xximjasonxx/1997497700710c146fb931136b244086 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NamesGenerationRecord | |
{ | |
[JsonProperty("id")] | |
public string Id { get; set; } | |
[JsonProperty("data")] | |
public IList<JObject> GeneratedNames {get; set; } | |
public override string ToString() | |
{ | |
var data = new JObject( | |
new JProperty("id", Id), | |
new JProperty("data", GeneratedNames.Select(x => new JObject( | |
new JProperty("name", x) | |
))) | |
); | |
return data.ToString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment