don't save the URLs to userdata.json

This commit is contained in:
Lynne Megido 2020-09-06 13:12:46 +10:00
parent d9a4349a0a
commit 02e81b12b0
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -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; }