diff --git a/YahooAuctionsItem.cs b/YahooAuctionsItem.cs index 2bedee8..4601dc0 100644 --- a/YahooAuctionsItem.cs +++ b/YahooAuctionsItem.cs @@ -8,12 +8,14 @@ using CsvHelper.Configuration.Attributes; namespace Buypeeb { class YahooAuctionsItem { + [JsonIgnore] public string url { get { return $"https://page.auctions.yahoo.co.jp/jp/auction/{this.id}"; } } + [JsonIgnore] public string buyeeUrl { get { return $"https://buyee.jp/item/yahoo/auction/{this.id}"; @@ -25,6 +27,7 @@ namespace Buypeeb { // the id *must* be saved! // i'm also saving the original name to make it easier to tell what the items are in the userdata.json // there's not really a need for it i guess but it's my program and i can do what i want + // anything with the attribute [Ignore] won't be put in the CSV, and things with [JsonIgnore] won't be put in userdata.json [Ignore] public string id { get; set; } public string name { get; set; }