Added models for qb request and responses to communicate with web app.

This commit is contained in:
Patrick Fic
2020-06-02 17:47:52 -07:00
parent 6a035dcdf4
commit fe4cb24742
4 changed files with 120 additions and 11 deletions

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

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