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 {
|
namespace Buypeeb {
|
||||||
class YahooAuctionsItem {
|
class YahooAuctionsItem {
|
||||||
|
[JsonIgnore]
|
||||||
public string url {
|
public string url {
|
||||||
get {
|
get {
|
||||||
return $"https://page.auctions.yahoo.co.jp/jp/auction/{this.id}";
|
return $"https://page.auctions.yahoo.co.jp/jp/auction/{this.id}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
public string buyeeUrl {
|
public string buyeeUrl {
|
||||||
get {
|
get {
|
||||||
return $"https://buyee.jp/item/yahoo/auction/{this.id}";
|
return $"https://buyee.jp/item/yahoo/auction/{this.id}";
|
||||||
|
@ -25,6 +27,7 @@ namespace Buypeeb {
|
||||||
// the id *must* be saved!
|
// 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
|
// 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
|
// 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]
|
[Ignore]
|
||||||
public string id { get; set; }
|
public string id { get; set; }
|
||||||
public string name { get; set; }
|
public string name { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue