30 lines
811 B
C#
30 lines
811 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace PartSource.Data.Nexpart
|
|
{
|
|
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
|
public class Part
|
|
{
|
|
[XmlElement]
|
|
public string PartNumber { get; set; }
|
|
|
|
[XmlElement]
|
|
public PartPartType PartType { get; set; }
|
|
|
|
// There are two different kinds of PartType because of course there are...
|
|
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
|
public class PartPartType
|
|
{
|
|
[XmlAttribute]
|
|
public int Id { get; set; }
|
|
|
|
[XmlAttribute]
|
|
public string PartTypeDesc { get; set; }
|
|
}
|
|
|
|
}
|
|
}
|