Initial commit
This commit is contained in:
37
PartSource.Data/Nexpart/EngineSearch.cs
Normal file
37
PartSource.Data/Nexpart/EngineSearch.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.EngineSearch
|
||||
// Assembly: PartSource.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Data.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class EngineSearch
|
||||
{
|
||||
public EngineSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.RegionId = new int[1] { 2 };
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public int[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public int? SubModelId { get; set; }
|
||||
|
||||
public bool ShouldSerializeSubModelId()
|
||||
{
|
||||
return SubModelId != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user