From 02e81b12b024f33eab76eaf48916449c4b9ef73b Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 6 Sep 2020 13:12:46 +1000 Subject: [PATCH] don't save the URLs to userdata.json --- YahooAuctionsItem.cs | 3 +++ 1 file changed, 3 insertions(+) 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; }