Initial commit
This commit is contained in:
33
PartSource.Data/Nexpart/MenuNodesLookup.cs
Normal file
33
PartSource.Data/Nexpart/MenuNodesLookup.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class MenuNodesLookup
|
||||
{
|
||||
public MenuNodesLookup()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public int MenuId { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public int? ParentMenuNodeId { get; set; }
|
||||
|
||||
[XmlElement(Order = 4, ElementName = "numOfLevels")]
|
||||
public int NumberOfLevels { get; set; }
|
||||
|
||||
public bool ShouldSerializeParentMenuNodeId()
|
||||
{
|
||||
return ParentMenuNodeId != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user