don't save the URLs to userdata.json
This commit is contained in:
parent
d9a4349a0a
commit
02e81b12b0
1 changed files with 3 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue