Initial commit
This commit is contained in:
17
PartSource.Entities/App.config
Normal file
17
PartSource.Entities/App.config
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
<parameter value="mssqllocaldb" />
|
||||
</parameters>
|
||||
</defaultConnectionFactory>
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
||||
14
PartSource.Entities/AssemblyInfo.cs
Normal file
14
PartSource.Entities/AssemblyInfo.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: AssemblyTitle("PartSource.Entities")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("PartSource.Entities")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("401cb98a-0375-47e4-b582-93ed2ffd665b")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
15
PartSource.Entities/Dtos/StoreDto.cs
Normal file
15
PartSource.Entities/Dtos/StoreDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Dtos.StoreDto
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Dtos
|
||||
{
|
||||
public class StoreDto
|
||||
{
|
||||
public int StoreNumber { get; set; }
|
||||
|
||||
public double? Distance { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Models/ApiClient.cs
Normal file
20
PartSource.Entities/Models/ApiClient.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.ApiClient
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class ApiClient
|
||||
{
|
||||
[System.ComponentModel.DataAnnotations.Key]
|
||||
public string Key { get; set; }
|
||||
|
||||
public string AppName { get; set; }
|
||||
|
||||
public string Secret { get; set; }
|
||||
|
||||
public bool Active { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Models/Manufacturer.cs
Normal file
17
PartSource.Entities/Models/Manufacturer.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.Manufacturer
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class Manufacturer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string LineCode { get; set; }
|
||||
}
|
||||
}
|
||||
27
PartSource.Entities/Models/Part.cs
Normal file
27
PartSource.Entities/Models/Part.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.Part
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class Part
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int ManufacturerId { get; set; }
|
||||
|
||||
public long? ShopifyId { get; set; }
|
||||
|
||||
public int Sku { get; set; }
|
||||
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public Manufacturer Manufacturer { get; set; }
|
||||
}
|
||||
}
|
||||
100
PartSource.Entities/Models/PartData.cs
Normal file
100
PartSource.Entities/Models/PartData.cs
Normal file
@@ -0,0 +1,100 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.PartData
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
[Table("PartData")]
|
||||
public class PartData
|
||||
{
|
||||
[Key]
|
||||
[StringLength(255)]
|
||||
public string SKU { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string LOB_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string CATEGORY_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string SUBCATEGORY_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FINELINE_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string PRODUCT_ENGLISH_LONG_DESC { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string BRAND_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string CORPORATE_STATUS_NM { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS1 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS2 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS3 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS4 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS5 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS6 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS7 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS8 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS9 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS10 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS11 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS12 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS13 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string FAMILY_FEATURES_BENEFITS14 { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string Tested { get; set; }
|
||||
|
||||
[Column("Line Code")]
|
||||
[StringLength(255)]
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
[Column("Part Number")]
|
||||
[StringLength(255)]
|
||||
public string Part_Number { get; set; }
|
||||
|
||||
[Column("Compare Price", TypeName = "money")]
|
||||
public Decimal? Compare_Price { get; set; }
|
||||
|
||||
[Column("Your Price", TypeName = "money")]
|
||||
public Decimal? Your_Price { get; set; }
|
||||
}
|
||||
}
|
||||
40
PartSource.Entities/Models/PostalCode.cs
Normal file
40
PartSource.Entities/Models/PostalCode.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.PostalCode
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class PostalCode
|
||||
{
|
||||
[Key]
|
||||
[MaxLength(3)]
|
||||
public string ForwardSortationArea { get; set; }
|
||||
|
||||
[Required]
|
||||
public string City { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Province { get; set; }
|
||||
|
||||
[Required]
|
||||
public DbGeography Location { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string LocalDeliveryUnit { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string Code
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0} {1}", (object) this.ForwardSortationArea, (object) this.LocalDeliveryUnit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
35
PartSource.Entities/Models/SeoFitment.cs
Normal file
35
PartSource.Entities/Models/SeoFitment.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.SeoFitment
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
[Table("SeoFitment")]
|
||||
public class SeoFitment
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string mfg_code { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string part_number { get; set; }
|
||||
|
||||
public int? pt_num { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string part_label { get; set; }
|
||||
|
||||
public int basevehicleid { get; set; }
|
||||
|
||||
public int engconfigid { get; set; }
|
||||
|
||||
[StringLength(255)]
|
||||
public string note_text { get; set; }
|
||||
}
|
||||
}
|
||||
19
PartSource.Entities/Models/Store.cs
Normal file
19
PartSource.Entities/Models/Store.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.Store
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class Store
|
||||
{
|
||||
[Key]
|
||||
public int StoreNumber { get; set; }
|
||||
|
||||
public DbGeography Location { get; set; }
|
||||
}
|
||||
}
|
||||
31
PartSource.Entities/Models/StorePart.cs
Normal file
31
PartSource.Entities/Models/StorePart.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.StorePart
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class StorePart
|
||||
{
|
||||
[Key]
|
||||
[Column(Order = 0)]
|
||||
public int StoreNumber { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column(Order = 1)]
|
||||
public int PartId { get; set; }
|
||||
|
||||
public int Quantity { get; set; }
|
||||
|
||||
public Decimal Price { get; set; }
|
||||
|
||||
public Store Store { get; set; }
|
||||
|
||||
public Part Part { get; set; }
|
||||
}
|
||||
}
|
||||
34
PartSource.Entities/Models/ps_parts_availability.cs
Normal file
34
PartSource.Entities/Models/ps_parts_availability.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Models.ps_parts_availability
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Entities.Models
|
||||
{
|
||||
public class ps_parts_availability
|
||||
{
|
||||
[Key]
|
||||
[Column(Order = 0)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Store { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column(Order = 1)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int SKU { get; set; }
|
||||
|
||||
[Column("Line Code")]
|
||||
[StringLength(50)]
|
||||
public string Line_Code { get; set; }
|
||||
|
||||
[Column("Part Number")]
|
||||
[StringLength(50)]
|
||||
public string Part_Number { get; set; }
|
||||
|
||||
public int? QTY { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Entities/Nexpart/BaseVehicleDetail.cs
Normal file
29
PartSource.Entities/Nexpart/BaseVehicleDetail.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.BaseVehicleDetail
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class BaseVehicleDetail
|
||||
{
|
||||
[XmlAttribute]
|
||||
public uint WHIMakeId { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public uint BaseVehicleId { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public string MakeName { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public string ModelName { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public uint Year { get; set; }
|
||||
}
|
||||
}
|
||||
31
PartSource.Entities/Nexpart/BaseVehicleDetailLookup.cs
Normal file
31
PartSource.Entities/Nexpart/BaseVehicleDetailLookup.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.BaseVehicleDetailLookup
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class BaseVehicleDetailLookup
|
||||
{
|
||||
public BaseVehicleDetailLookup()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public uint Year { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public uint MakeId { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public uint ModelId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.BaseVehicleDetailLookupResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class BaseVehicleDetailLookupResponse : IResponseElement<BaseVehicleDetail>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "BaseVehicleDetail")]
|
||||
public BaseVehicleDetail ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
32
PartSource.Entities/Nexpart/Body.cs
Normal file
32
PartSource.Entities/Nexpart/Body.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Body
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Body
|
||||
{
|
||||
[XmlElement(ElementName = "BaseVehicleDetailLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (BaseVehicleDetailLookup))]
|
||||
[XmlElement(ElementName = "BaseVehicleDetailLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (BaseVehicleDetailLookupResponse))]
|
||||
[XmlElement(ElementName = "MakeSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (MakeSearch))]
|
||||
[XmlElement(ElementName = "MakeSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (MakeSearchResponse))]
|
||||
[XmlElement(ElementName = "ModelSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (ModelSearch))]
|
||||
[XmlElement(ElementName = "ModelSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (ModelSearchResponse))]
|
||||
[XmlElement(ElementName = "PartTypeSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (PartTypeSearch))]
|
||||
[XmlElement(ElementName = "PartTypeSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (PartTypeSearchResponse))]
|
||||
[XmlElement(ElementName = "PartTypesValidateLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (PartTypesValidateLookup))]
|
||||
[XmlElement(ElementName = "PartTypesValidateLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (PartTypesValidateLookupResponse))]
|
||||
[XmlElement(ElementName = "SmartPageDataSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (SmartPageDataSearch))]
|
||||
[XmlElement(ElementName = "SmartPageDataSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (SmartPageDataSearchResponse))]
|
||||
[XmlElement(ElementName = "VehicleIdSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (VehicleIdSearch))]
|
||||
[XmlElement(ElementName = "VehicleIdSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (VehicleIdSearchResponse))]
|
||||
[XmlElement(ElementName = "VehicleTypesGet", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (VehicleTypesGet))]
|
||||
[XmlElement(ElementName = "VehicleTypesGetResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof (VehicleTypesGetResponse))]
|
||||
public object Content { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/Engine.cs
Normal file
20
PartSource.Entities/Nexpart/Engine.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Engine
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class Engine
|
||||
{
|
||||
[XmlAttribute]
|
||||
public uint EngineId { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Entities/Nexpart/EngineSearch.cs
Normal file
29
PartSource.Entities/Nexpart/EngineSearch.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.EngineSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class EngineSearch
|
||||
{
|
||||
public EngineSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.RegionId = new uint[1]{ 2U };
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public uint[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/EngineSearchResponse.cs
Normal file
21
PartSource.Entities/Nexpart/EngineSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.EngineSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class EngineSearchResponse : IResponseElement<Engines>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Engines")]
|
||||
public Engines ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Entities/Nexpart/Engines.cs
Normal file
15
PartSource.Entities/Nexpart/Engines.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Engines
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Engines
|
||||
{
|
||||
}
|
||||
}
|
||||
26
PartSource.Entities/Nexpart/Envelope.cs
Normal file
26
PartSource.Entities/Nexpart/Envelope.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Envelope
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
|
||||
[XmlRoot(IsNullable = false, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
|
||||
public class Envelope
|
||||
{
|
||||
public Envelope()
|
||||
{
|
||||
this.Body = new Body();
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "Header", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
|
||||
public string Header { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Body", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
|
||||
public Body Body { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/Exceptions.cs
Normal file
20
PartSource.Entities/Nexpart/Exceptions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Exceptions
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public class Exceptions
|
||||
{
|
||||
[XmlAttribute(AttributeName = "code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Entities/Nexpart/Interfaces/IResponseElement.cs
Normal file
15
PartSource.Entities/Nexpart/Interfaces/IResponseElement.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Interfaces.IResponseElement`1
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Nexpart.Interfaces
|
||||
{
|
||||
public interface IResponseElement<T>
|
||||
{
|
||||
PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
T ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Entities/Nexpart/Item.cs
Normal file
23
PartSource.Entities/Nexpart/Item.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Item
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class Item
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string MfrCode { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public PrimaryImg PrimaryImg { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Nexpart/Items.cs
Normal file
17
PartSource.Entities/Nexpart/Items.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Items
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Items
|
||||
{
|
||||
[XmlElement]
|
||||
public PartSource.Entities.Nexpart.Item[] Item { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Entities/Nexpart/Make.cs
Normal file
23
PartSource.Entities/Nexpart/Make.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Make
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class Make
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int WHIId { get; set; }
|
||||
}
|
||||
}
|
||||
33
PartSource.Entities/Nexpart/MakeSearch.cs
Normal file
33
PartSource.Entities/Nexpart/MakeSearch.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.MakeSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class MakeSearch
|
||||
{
|
||||
public MakeSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.Years = new Years() { From = 1900, To = 2049 };
|
||||
this.RegionId = new uint[1]{ 2U };
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Years", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)]
|
||||
public Years Years { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)]
|
||||
public uint[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)]
|
||||
public uint[] VehicleTypeId { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/MakeSearchResponse.cs
Normal file
21
PartSource.Entities/Nexpart/MakeSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.MakeSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class MakeSearchResponse : IResponseElement<Makes>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Makes")]
|
||||
public Makes ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Nexpart/Makes.cs
Normal file
17
PartSource.Entities/Nexpart/Makes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Makes
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Makes
|
||||
{
|
||||
[XmlElement(ElementName = "Make", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public PartSource.Entities.Nexpart.Make[] Make { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/Model.cs
Normal file
20
PartSource.Entities/Nexpart/Model.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Model
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class Model
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "id")]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
35
PartSource.Entities/Nexpart/ModelSearch.cs
Normal file
35
PartSource.Entities/Nexpart/ModelSearch.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.ModelSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class ModelSearch
|
||||
{
|
||||
public ModelSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.RegionId = new uint[1]{ 2U };
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Year", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)]
|
||||
public uint Year { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "MakeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)]
|
||||
public uint MakeId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)]
|
||||
public uint[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 5)]
|
||||
public uint[] VehicleTypeId { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/ModelSearchResponse.cs
Normal file
21
PartSource.Entities/Nexpart/ModelSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.ModelSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class ModelSearchResponse : IResponseElement<Models[]>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Models", Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public Models[] ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/Models.cs
Normal file
20
PartSource.Entities/Nexpart/Models.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Models
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Models
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Region { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Model", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public PartSource.Entities.Nexpart.Model[] Model { get; set; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Entities/Nexpart/PSRequestHeader.cs
Normal file
26
PartSource.Entities/Nexpart/PSRequestHeader.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PSRequestHeader
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PSRequestHeader
|
||||
{
|
||||
public PSRequestHeader()
|
||||
{
|
||||
this.SvcVersion = "1.0";
|
||||
this.ReturnWarnings = "true";
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "SvcVersion", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string SvcVersion { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "ReturnWarnings", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string ReturnWarnings { get; set; }
|
||||
}
|
||||
}
|
||||
32
PartSource.Entities/Nexpart/PSResponseHeader.cs
Normal file
32
PartSource.Entities/Nexpart/PSResponseHeader.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PSResponseHeader
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PSResponseHeader
|
||||
{
|
||||
[XmlElement(ElementName = "RequestId", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string RequestId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "RequestProcessingTime", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string RequestProcessingTime { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Build", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string Build { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "TimeStamp", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string TimeStamp { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "StatusCode", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public string StatusCode { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Exceptions", Namespace = "http://whisolutions.com/PartSelectCommon/2011-07-21")]
|
||||
public PartSource.Entities.Nexpart.Exceptions[] Exceptions { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Entities/Nexpart/PartType.cs
Normal file
23
PartSource.Entities/Nexpart/PartType.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartType
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartType
|
||||
{
|
||||
[XmlAttribute]
|
||||
public uint Id { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public uint PositionGroupId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
34
PartSource.Entities/Nexpart/PartTypeSearch.cs
Normal file
34
PartSource.Entities/Nexpart/PartTypeSearch.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartTypeSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartTypeSearch
|
||||
{
|
||||
public PartTypeSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public string SearchString { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public string SearchType { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public string SearchOptions { get; set; }
|
||||
|
||||
[XmlElement(Order = 5)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
25
PartSource.Entities/Nexpart/PartTypeSearchResponse.cs
Normal file
25
PartSource.Entities/Nexpart/PartTypeSearchResponse.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartTypeSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartTypeSearchResponse : IResponseElement<PartTypes>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
public string RequestedSearchString { get; set; }
|
||||
|
||||
public string ExecutedSearchString { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "PartTypes")]
|
||||
public PartTypes ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Nexpart/PartTypes.cs
Normal file
17
PartSource.Entities/Nexpart/PartTypes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartTypes
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartTypes
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public PartSource.Entities.Nexpart.PartType[] PartType { get; set; }
|
||||
}
|
||||
}
|
||||
28
PartSource.Entities/Nexpart/PartTypesValidateLookup.cs
Normal file
28
PartSource.Entities/Nexpart/PartTypesValidateLookup.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartTypesValidateLookup
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartTypesValidateLookup
|
||||
{
|
||||
public PartTypesValidateLookup()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "PartType", Order = 2)]
|
||||
public PartType[] PartTypes { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PartTypesValidateLookupResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class PartTypesValidateLookupResponse : IResponseElement<PartTypes>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "PartTypes")]
|
||||
public PartTypes ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Nexpart/PrimaryImg.cs
Normal file
17
PartSource.Entities/Nexpart/PrimaryImg.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.PrimaryImg
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class PrimaryImg
|
||||
{
|
||||
[XmlElement]
|
||||
public string ImgUrl { get; set; }
|
||||
}
|
||||
}
|
||||
25
PartSource.Entities/Nexpart/SmartPageDataSearch.cs
Normal file
25
PartSource.Entities/Nexpart/SmartPageDataSearch.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.SmartPageDataSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class SmartPageDataSearch
|
||||
{
|
||||
public SmartPageDataSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 2)]
|
||||
public Item[] Items { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/SmartPageDataSearchResponse.cs
Normal file
21
PartSource.Entities/Nexpart/SmartPageDataSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.SmartPageDataSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class SmartPageDataSearchResponse : IResponseElement<Items>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Items", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public Items ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
35
PartSource.Entities/Nexpart/VehicleDetail.cs
Normal file
35
PartSource.Entities/Nexpart/VehicleDetail.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleDetail
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleDetail
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int BaseVehicleId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int WHIEngineId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string WHIEngineDesc { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int EngineConfigId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Description { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int VehicleId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int VehicleToEngineConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
25
PartSource.Entities/Nexpart/VehicleIdSearch.cs
Normal file
25
PartSource.Entities/Nexpart/VehicleIdSearch.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleIdSearch
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleIdSearch
|
||||
{
|
||||
public VehicleIdSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/VehicleIdSearchResponse.cs
Normal file
21
PartSource.Entities/Nexpart/VehicleIdSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleIdSearchResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleIdSearchResponse : IResponseElement<VehicleDetail>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleDetail")]
|
||||
public VehicleDetail ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/VehicleIdentifier.cs
Normal file
20
PartSource.Entities/Nexpart/VehicleIdentifier.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleIdentifier
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleIdentifier
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public uint BaseVehicleId { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public uint EngineConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/VehicleType.cs
Normal file
20
PartSource.Entities/Nexpart/VehicleType.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleType
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class VehicleType
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Entities/Nexpart/VehicleTypes.cs
Normal file
17
PartSource.Entities/Nexpart/VehicleTypes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleTypes
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleTypes
|
||||
{
|
||||
[XmlElement(ElementName = "VehicleType", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public PartSource.Entities.Nexpart.VehicleType[] VehicleType { get; set; }
|
||||
}
|
||||
}
|
||||
22
PartSource.Entities/Nexpart/VehicleTypesGet.cs
Normal file
22
PartSource.Entities/Nexpart/VehicleTypesGet.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleTypesGet
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleTypesGet
|
||||
{
|
||||
public VehicleTypesGet()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(ElementName = "PSRequestHeader", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Nexpart/VehicleTypesGetResponse.cs
Normal file
21
PartSource.Entities/Nexpart/VehicleTypesGetResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.VehicleTypesGetResponse
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class VehicleTypesGetResponse : IResponseElement<VehicleTypes>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleTypes")]
|
||||
public VehicleTypes ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Entities/Nexpart/Years.cs
Normal file
20
PartSource.Entities/Nexpart/Years.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Nexpart.Years
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Entities.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class Years
|
||||
{
|
||||
[XmlAttribute(AttributeName = "to")]
|
||||
public int To { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "from")]
|
||||
public int From { get; set; }
|
||||
}
|
||||
}
|
||||
139
PartSource.Entities/PartSource.Entities.csproj
Normal file
139
PartSource.Entities/PartSource.Entities.csproj
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!--Project was exported from assembly: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll-->
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B10E5082-B886-4859-8A64-29DA70E55EE9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>PartSource.Entities</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<ApplicationVersion>1.0.0.0</ApplicationVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<RootNamespace>PartSource.Entities</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.1016.290\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="PartSourceContext.cs" />
|
||||
<Compile Include="Shopify\BaseShopifyModel.cs" />
|
||||
<Compile Include="Shopify\Format.cs" />
|
||||
<Compile Include="Shopify\FulfillmentService.cs" />
|
||||
<Compile Include="Shopify\InventoryPolicy.cs" />
|
||||
<Compile Include="Shopify\Metafield.cs" />
|
||||
<Compile Include="Shopify\ProductImage.cs" />
|
||||
<Compile Include="Shopify\Product.cs" />
|
||||
<Compile Include="Shopify\ProductVariant.cs" />
|
||||
<Compile Include="Shopify\PublishedScope.cs" />
|
||||
<Compile Include="Shopify\ValueType.cs" />
|
||||
<Compile Include="Shopify\WeightUnit.cs" />
|
||||
<Compile Include="Nexpart\Engine.cs" />
|
||||
<Compile Include="Nexpart\Engines.cs" />
|
||||
<Compile Include="Nexpart\EngineSearch.cs" />
|
||||
<Compile Include="Nexpart\EngineSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\PrimaryImg.cs" />
|
||||
<Compile Include="Nexpart\VehicleDetail.cs" />
|
||||
<Compile Include="Nexpart\VehicleIdSearch.cs" />
|
||||
<Compile Include="Nexpart\VehicleIdSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\BaseVehicleDetail.cs" />
|
||||
<Compile Include="Nexpart\BaseVehicleDetailLookup.cs" />
|
||||
<Compile Include="Nexpart\PartTypes.cs" />
|
||||
<Compile Include="Nexpart\PartTypeSearch.cs" />
|
||||
<Compile Include="Nexpart\PartTypeSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\PartTypesValidateLookupResponse.cs" />
|
||||
<Compile Include="Nexpart\BaseVehicleDetailLookupResponse.cs" />
|
||||
<Compile Include="Nexpart\Body.cs" />
|
||||
<Compile Include="Nexpart\Envelope.cs" />
|
||||
<Compile Include="Nexpart\Exceptions.cs" />
|
||||
<Compile Include="Nexpart\Item.cs" />
|
||||
<Compile Include="Nexpart\Items.cs" />
|
||||
<Compile Include="Nexpart\ModelSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\Models.cs" />
|
||||
<Compile Include="Nexpart\Makes.cs" />
|
||||
<Compile Include="Nexpart\ModelSearch.cs" />
|
||||
<Compile Include="Nexpart\MakeSearch.cs" />
|
||||
<Compile Include="Nexpart\PartTypesValidateLookup.cs" />
|
||||
<Compile Include="Nexpart\PartType.cs" />
|
||||
<Compile Include="Nexpart\PSResponseHeader.cs" />
|
||||
<Compile Include="Nexpart\PSRequestHeader.cs" />
|
||||
<Compile Include="Nexpart\SmartPageDataSearch.cs" />
|
||||
<Compile Include="Nexpart\Make.cs" />
|
||||
<Compile Include="Nexpart\Model.cs" />
|
||||
<Compile Include="Nexpart\SmartPageDataSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\VehicleIdentifier.cs" />
|
||||
<Compile Include="Nexpart\VehicleType.cs" />
|
||||
<Compile Include="Nexpart\VehicleTypes.cs" />
|
||||
<Compile Include="Nexpart\VehicleTypesGet.cs" />
|
||||
<Compile Include="Nexpart\MakeSearchResponse.cs" />
|
||||
<Compile Include="Nexpart\VehicleTypesGetResponse.cs" />
|
||||
<Compile Include="Nexpart\Years.cs" />
|
||||
<Compile Include="Nexpart\Interfaces\IResponseElement.cs" />
|
||||
<Compile Include="Models\PartData.cs" />
|
||||
<Compile Include="Models\PostalCode.cs" />
|
||||
<Compile Include="Models\ps_parts_availability.cs" />
|
||||
<Compile Include="Models\SeoFitment.cs" />
|
||||
<Compile Include="Models\ApiClient.cs" />
|
||||
<Compile Include="Models\Manufacturer.cs" />
|
||||
<Compile Include="Models\Part.cs" />
|
||||
<Compile Include="Models\Store.cs" />
|
||||
<Compile Include="Models\StorePart.cs" />
|
||||
<Compile Include="Dtos\StoreDto.cs" />
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
<Compile Include="SqlServerTypes\Loader.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="SqlServerTypes\readme.htm" />
|
||||
<Content Include="SqlServerTypes\x64\msvcr120.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="SqlServerTypes\x64\SqlServerSpatial140.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="SqlServerTypes\x86\msvcr120.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="SqlServerTypes\x86\SqlServerSpatial140.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
41
PartSource.Entities/PartSourceContext.cs
Normal file
41
PartSource.Entities/PartSourceContext.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.PartSourceContext
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using PartSource.Entities.Models;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.ModelConfiguration.Conventions;
|
||||
|
||||
namespace PartSource.Entities
|
||||
{
|
||||
public class PartSourceContext : DbContext
|
||||
{
|
||||
public DbSet<ApiClient> ApiClients { get; set; }
|
||||
|
||||
public DbSet<Manufacturer> Manufacturers { get; set; }
|
||||
|
||||
public DbSet<PartSource.Entities.Models.PartData> PartData { get; set; }
|
||||
|
||||
public DbSet<Part> Parts { get; set; }
|
||||
|
||||
public DbSet<PostalCode> PostalCodes { get; set; }
|
||||
|
||||
public DbSet<SeoFitment> SeoFitments { get; set; }
|
||||
|
||||
public DbSet<Store> Stores { get; set; }
|
||||
|
||||
public DbSet<StorePart> StoreParts { get; set; }
|
||||
|
||||
public DbSet<PartSource.Entities.Models.ps_parts_availability> ps_parts_availability { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
|
||||
// Database.SetInitializer((IDatabaseInitializer<PartSourceContext>)null);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
PartSource.Entities/Shopify/BaseShopifyModel.cs
Normal file
19
PartSource.Entities/Shopify/BaseShopifyModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.BaseShopifyModel
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System;
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class BaseShopifyModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Entities/Shopify/Format.cs
Normal file
14
PartSource.Entities/Shopify/Format.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.Format
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public enum Format
|
||||
{
|
||||
Json,
|
||||
Xml,
|
||||
}
|
||||
}
|
||||
29
PartSource.Entities/Shopify/FulfillmentService.cs
Normal file
29
PartSource.Entities/Shopify/FulfillmentService.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.FulfillmentService
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class FulfillmentService
|
||||
{
|
||||
public int LocationId { get; set; }
|
||||
|
||||
public string CallbackUrl { get; set; }
|
||||
|
||||
public string Handle { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string ProviderId { get; set; }
|
||||
|
||||
public bool InventoryManagement { get; set; }
|
||||
|
||||
public bool RequiresShippingMethod { get; set; }
|
||||
|
||||
public bool TrackingSupport { get; set; }
|
||||
|
||||
public Format Format { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Entities/Shopify/InventoryPolicy.cs
Normal file
14
PartSource.Entities/Shopify/InventoryPolicy.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.InventoryPolicy
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public enum InventoryPolicy
|
||||
{
|
||||
Deny,
|
||||
Continue,
|
||||
}
|
||||
}
|
||||
21
PartSource.Entities/Shopify/Metafield.cs
Normal file
21
PartSource.Entities/Shopify/Metafield.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.Metafield
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class Metafield
|
||||
{
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Key { get; set; }
|
||||
|
||||
public string Namespace { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
|
||||
public ValueType ValueType { get; set; }
|
||||
}
|
||||
}
|
||||
41
PartSource.Entities/Shopify/Product.cs
Normal file
41
PartSource.Entities/Shopify/Product.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.Product
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System;
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class Product : BaseShopifyModel
|
||||
{
|
||||
public string BodyHtml { get; set; }
|
||||
|
||||
public string Handle { get; set; }
|
||||
|
||||
public string MetafieldsGlobalTitleTag { get; set; }
|
||||
|
||||
public string MetafieldsGlobalDescriptionTag { get; set; }
|
||||
|
||||
public string ProductType { get; set; }
|
||||
|
||||
public string Tags { get; set; }
|
||||
|
||||
public string TemplateSuffix { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Vendor { get; set; }
|
||||
|
||||
public bool Published { get; set; }
|
||||
|
||||
public DateTime? PublishedAt { get; set; }
|
||||
|
||||
public ProductImage[] Images { get; set; }
|
||||
|
||||
public ProductVariant[] Variants { get; set; }
|
||||
|
||||
public PartSource.Entities.Shopify.PublishedScope? PublishedScope { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Entities/Shopify/ProductImage.cs
Normal file
23
PartSource.Entities/Shopify/ProductImage.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.ProductImage
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class ProductImage : BaseShopifyModel
|
||||
{
|
||||
public int Height { get; set; }
|
||||
|
||||
public int Position { get; set; }
|
||||
|
||||
public int Width { get; set; }
|
||||
|
||||
public long ProductId { get; set; }
|
||||
|
||||
public long[] VariantIds { get; set; }
|
||||
|
||||
public string Src { get; set; }
|
||||
}
|
||||
}
|
||||
49
PartSource.Entities/Shopify/ProductVariant.cs
Normal file
49
PartSource.Entities/Shopify/ProductVariant.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.ProductVariant
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
using System;
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public class ProductVariant : BaseShopifyModel
|
||||
{
|
||||
public long ImageId { get; set; }
|
||||
|
||||
public long InventoryItemId { get; set; }
|
||||
|
||||
public long ProductId { get; set; }
|
||||
|
||||
public int Position { get; set; }
|
||||
|
||||
public bool RequiresShipping { get; set; }
|
||||
|
||||
public bool Taxable { get; set; }
|
||||
|
||||
public Decimal CompareAtPrice { get; set; }
|
||||
|
||||
public Decimal Price { get; set; }
|
||||
|
||||
public double Grams { get; set; }
|
||||
|
||||
public double Weight { get; set; }
|
||||
|
||||
public string Barcode { get; set; }
|
||||
|
||||
public string Sku { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string FulfillmentService { get; set; }
|
||||
|
||||
public string InventoryManagement { get; set; }
|
||||
|
||||
public Metafield[] Metafields { get; set; }
|
||||
|
||||
public string InventoryPolicy { get; set; }
|
||||
|
||||
public string WeightUnit { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Entities/Shopify/PublishedScope.cs
Normal file
14
PartSource.Entities/Shopify/PublishedScope.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.PublishedScope
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public enum PublishedScope
|
||||
{
|
||||
Global,
|
||||
Web,
|
||||
}
|
||||
}
|
||||
14
PartSource.Entities/Shopify/ValueType.cs
Normal file
14
PartSource.Entities/Shopify/ValueType.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.ValueType
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public enum ValueType
|
||||
{
|
||||
Integer,
|
||||
String,
|
||||
}
|
||||
}
|
||||
16
PartSource.Entities/Shopify/WeightUnit.cs
Normal file
16
PartSource.Entities/Shopify/WeightUnit.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Entities.Shopify.WeightUnit
|
||||
// Assembly: PartSource.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 3EDAB3F5-83E7-4F65-906E-B40192014C57
|
||||
// Assembly location: C:\Users\Tommy\Desktop\PS temp\PartSource.Entities.dll
|
||||
|
||||
namespace PartSource.Entities.Shopify
|
||||
{
|
||||
public enum WeightUnit
|
||||
{
|
||||
G,
|
||||
Kg,
|
||||
Oz,
|
||||
Lb,
|
||||
}
|
||||
}
|
||||
45
PartSource.Entities/SqlServerTypes/Loader.cs
Normal file
45
PartSource.Entities/SqlServerTypes/Loader.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace SqlServerTypes
|
||||
{
|
||||
/// <summary>
|
||||
/// Utility methods related to CLR Types for SQL Server
|
||||
/// </summary>
|
||||
public class Utilities
|
||||
{
|
||||
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
||||
private static extern IntPtr LoadLibrary(string libname);
|
||||
|
||||
/// <summary>
|
||||
/// Loads the required native assemblies for the current architecture (x86 or x64)
|
||||
/// </summary>
|
||||
/// <param name="rootApplicationPath">
|
||||
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
|
||||
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
|
||||
/// </param>
|
||||
public static void LoadNativeAssemblies(string rootApplicationPath)
|
||||
{
|
||||
var nativeBinaryPath = IntPtr.Size > 4
|
||||
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
|
||||
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
|
||||
|
||||
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
|
||||
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
|
||||
}
|
||||
|
||||
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
|
||||
{
|
||||
var path = Path.Combine(nativeBinaryPath, assemblyName);
|
||||
var ptr = LoadLibrary(path);
|
||||
if (ptr == IntPtr.Zero)
|
||||
{
|
||||
throw new Exception(string.Format(
|
||||
"Error loading {0} (ErrorCode: {1})",
|
||||
assemblyName,
|
||||
Marshal.GetLastWin32Error()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
61
PartSource.Entities/SqlServerTypes/readme.htm
Normal file
61
PartSource.Entities/SqlServerTypes/readme.htm
Normal file
@@ -0,0 +1,61 @@
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Microsoft.SqlServer.Types</title>
|
||||
<style>
|
||||
body {
|
||||
background: #fff;
|
||||
color: #505050;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
#main {
|
||||
background: #efefef;
|
||||
padding: 5px 30px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main">
|
||||
<h1>Action required to load native assemblies</h1>
|
||||
<p>
|
||||
To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial140.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr120.dll is also included in case the C++ runtime is not installed.
|
||||
</p>
|
||||
<p>
|
||||
You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture).
|
||||
</p>
|
||||
<h2>ASP.NET Web Sites</h2>
|
||||
<p>
|
||||
For ASP.NET Web Sites, add the following block of code to the code behind file of the Web Form where you have added Report Viewer Control:
|
||||
<pre>
|
||||
Default.aspx.cs:
|
||||
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
static bool _isSqlTypesLoaded = false;
|
||||
|
||||
public _Default()
|
||||
{
|
||||
if (!_isSqlTypesLoaded)
|
||||
{
|
||||
SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~"));
|
||||
_isSqlTypesLoaded = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</p>
|
||||
<h2>ASP.NET Web Applications</h2>
|
||||
<p>
|
||||
For ASP.NET Web Applications, add the following line of code to the Application_Start method in Global.asax.cs:
|
||||
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));</pre>
|
||||
</p>
|
||||
<h2>Desktop Applications</h2>
|
||||
<p>
|
||||
For desktop applications, add the following line of code to run before any spatial operations are performed:
|
||||
<pre> SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);</pre>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
5
PartSource.Entities/packages.config
Normal file
5
PartSource.Entities/packages.config
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework" version="6.2.0" targetFramework="net461" />
|
||||
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net461" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user