Added models for qb request and responses to communicate with web app.
This commit is contained in:
43
BodyshopUploader/Models/QbRequestItem.cs
Normal file
43
BodyshopUploader/Models/QbRequestItem.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BodyshopPartner.Models
|
||||
{
|
||||
public class QbRequestItem : DTO_Base
|
||||
{
|
||||
public QbRequestItem()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private string _id;
|
||||
[JsonProperty("id")]
|
||||
public string Id
|
||||
{
|
||||
get { return _id; }
|
||||
set { SetProperty(ref _id, value); }
|
||||
}
|
||||
|
||||
private string[] _okStatusCodes;
|
||||
[JsonProperty("OkStatusCodes")]
|
||||
public string[] OkStatusCodes
|
||||
{
|
||||
get { return _okStatusCodes; }
|
||||
set { SetProperty(ref _okStatusCodes, value); }
|
||||
}
|
||||
|
||||
private string _qbxml;
|
||||
[JsonProperty("qbxml")]
|
||||
public string QbXML
|
||||
{
|
||||
get { return _qbxml; }
|
||||
set { SetProperty(ref _qbxml, value); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
41
BodyshopUploader/Models/QbResponseItem.cs
Normal file
41
BodyshopUploader/Models/QbResponseItem.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BodyshopPartner.Models
|
||||
{
|
||||
public class QbResponseItem : DTO_Base
|
||||
{
|
||||
public QbResponseItem()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private string _id;
|
||||
[JsonProperty("id")]
|
||||
public string Id
|
||||
{
|
||||
get { return _id; }
|
||||
set { SetProperty(ref _id, value); }
|
||||
}
|
||||
|
||||
private bool _success;
|
||||
[JsonProperty("success")]
|
||||
public bool Success
|
||||
{
|
||||
get { return _success; }
|
||||
set { SetProperty(ref _success, value); }
|
||||
}
|
||||
|
||||
private string _errorMessage;
|
||||
[JsonProperty("errorMessage")]
|
||||
public string ErrorMessage
|
||||
{
|
||||
get { return _errorMessage; }
|
||||
set { SetProperty(ref _errorMessage, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user