Basic implementation of updating which shop is active.

This commit is contained in:
Patrick Fic
2020-01-20 12:28:08 -08:00
parent 73a2cb4fcb
commit bc5cb13113
9 changed files with 299 additions and 12 deletions

View 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); }
}
}
}