Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created May 1, 2020 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/1997497700710c146fb931136b244086 to your computer and use it in GitHub Desktop.
Save xximjasonxx/1997497700710c146fb931136b244086 to your computer and use it in GitHub Desktop.
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