Basic implementation of updating which shop is active.
This commit is contained in:
52
BodyshopUploader/Models/Bodyshop.cs
Normal file
52
BodyshopUploader/Models/Bodyshop.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BodyshopUploader.Models
|
||||
{
|
||||
[JsonConverter(typeof(Utils.JsonPathConverter))]
|
||||
public class Bodyshop : DTO_Base
|
||||
{
|
||||
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
|
||||
|
||||
public Bodyshop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private string id;
|
||||
[JsonProperty("id")]
|
||||
public string Id
|
||||
{
|
||||
get { return id; }
|
||||
set { SetProperty(ref id, value); }
|
||||
}
|
||||
|
||||
private string _shopname;
|
||||
[JsonProperty("shopname")]
|
||||
public string ShopName
|
||||
{
|
||||
get { return _shopname; }
|
||||
set { SetProperty(ref _shopname, value); }
|
||||
}
|
||||
|
||||
private string _associationId;
|
||||
[JsonProperty("associations[0].id")]
|
||||
public string AssociationId
|
||||
{
|
||||
get { return _associationId; }
|
||||
set { SetProperty(ref _associationId, value); }
|
||||
}
|
||||
|
||||
private bool _associationActive;
|
||||
[JsonProperty("associations[0].active")]
|
||||
public bool AssociationActive
|
||||
{
|
||||
get { return _associationActive; }
|
||||
set { SetProperty(ref _associationActive, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user