WIP
This commit is contained in:
22
PartSource.Data/Nexpart/Answer.cs
Normal file
22
PartSource.Data/Nexpart/Answer.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
|
||||
public class Answer
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Count { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,8 @@ namespace PartSource.Data.Nexpart
|
||||
|
||||
[XmlElement(Order = 7)]
|
||||
public string GroupBy { get; set; }
|
||||
|
||||
[XmlElement(Order = 8)]
|
||||
public string QuestionOption { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@ using PartSource.Data.Nexpart.Interfaces;
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/pss/common/model/parts")]
|
||||
public class ApplicationSearchResponse : IResponseElement<Apps>
|
||||
public class ApplicationSearchResponse : IResponseElement<object>
|
||||
{
|
||||
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = nameof(Apps))]
|
||||
public Apps ResponseBody { get; set; }
|
||||
[XmlElement(ElementName = nameof(Apps), Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(Apps))]
|
||||
[XmlElement(ElementName = nameof(Questions), Namespace = "http://whisolutions.com/pss/common/model/parts", Type = typeof(Questions))]
|
||||
public object ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
25
PartSource.Data/Nexpart/Question.cs
Normal file
25
PartSource.Data/Nexpart/Question.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
|
||||
public class Question
|
||||
{
|
||||
[XmlAttribute(AttributeName = "Attrib")]
|
||||
public string Attribute { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Count { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Text { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public Answer[] Answer { get; set; }
|
||||
}
|
||||
}
|
||||
19
PartSource.Data/Nexpart/Questions.cs
Normal file
19
PartSource.Data/Nexpart/Questions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(Namespace = "http://whisolutions.com/pss/common/model/parts")]
|
||||
public class Questions
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/pss/common/helper/parts")]
|
||||
public Question[] Question { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int NumApps { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user