Initial commit
This commit is contained in:
17
PartSource.Data/Dtos/FitmentSearchDto.cs
Normal file
17
PartSource.Data/Dtos/FitmentSearchDto.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Dtos
|
||||
{
|
||||
public class FitmentSearchDto
|
||||
{
|
||||
public string ManufacturerCode { get; set; }
|
||||
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
public int? BaseVehicleId { get; set; }
|
||||
|
||||
public int? EngineConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Dtos/StoreDto.cs
Normal file
15
PartSource.Data/Dtos/StoreDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Dtos.StoreDto
|
||||
// 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
|
||||
|
||||
namespace PartSource.Data.Dtos
|
||||
{
|
||||
public class StoreDto
|
||||
{
|
||||
public int StoreNumber { get; set; }
|
||||
|
||||
public double? Distance { get; set; }
|
||||
}
|
||||
}
|
||||
405
PartSource.Data/Migrations/20190811020941_ImportDateDcfMapping.Designer.cs
generated
Normal file
405
PartSource.Data/Migrations/20190811020941_ImportDateDcfMapping.Designer.cs
generated
Normal file
@@ -0,0 +1,405 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using PartSource.Data;
|
||||
|
||||
namespace PartSource.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(PartSourceContext))]
|
||||
[Migration("20190811020941_ImportDateDcfMapping")]
|
||||
partial class ImportDateDcfMapping
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.2.2-servicing-10034")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ApiClient", b =>
|
||||
{
|
||||
b.Property<string>("Key")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("Active");
|
||||
|
||||
b.Property<string>("AppName");
|
||||
|
||||
b.Property<string>("Secret");
|
||||
|
||||
b.HasKey("Key");
|
||||
|
||||
b.ToTable("ApiClient");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.BaseVehicle", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<int>("VehicleMakeId");
|
||||
|
||||
b.Property<int>("VehicleModelId");
|
||||
|
||||
b.Property<int>("Year");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("BaseVehicle","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.DcfMapping", b =>
|
||||
{
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("WhiCode");
|
||||
|
||||
b.HasKey("LineCode", "WhiCode");
|
||||
|
||||
b.ToTable("DcfMapping");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Fitment", b =>
|
||||
{
|
||||
b.Property<int>("FitmentId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<int?>("BaseVehicleId");
|
||||
|
||||
b.Property<int?>("EngineConfigId");
|
||||
|
||||
b.Property<string>("ManufacturerCode");
|
||||
|
||||
b.Property<string>("NoteText");
|
||||
|
||||
b.Property<string>("PartLabel");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<string>("Position");
|
||||
|
||||
b.HasKey("FitmentId");
|
||||
|
||||
b.ToTable("Fitment");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ImportData", b =>
|
||||
{
|
||||
b.Property<string>("VariantSku")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("BodyHtml");
|
||||
|
||||
b.Property<decimal>("CompareAt");
|
||||
|
||||
b.Property<string>("ImageAltText");
|
||||
|
||||
b.Property<string>("ImageSrc");
|
||||
|
||||
b.Property<bool?>("IsFitment");
|
||||
|
||||
b.Property<bool?>("IsVariant");
|
||||
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<decimal>("Price");
|
||||
|
||||
b.Property<long?>("ShopifyId");
|
||||
|
||||
b.Property<string>("Title");
|
||||
|
||||
b.Property<string>("VariantTitle");
|
||||
|
||||
b.Property<string>("Vendor");
|
||||
|
||||
b.HasKey("VariantSku");
|
||||
|
||||
b.ToTable("ImportData");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ImportMetric", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<int?>("ChangedItems");
|
||||
|
||||
b.Property<DateTime>("ImportDate");
|
||||
|
||||
b.Property<int?>("TotalItems");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("ImportMetric");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Manufacturer", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Manufacturer");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Part", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("Description");
|
||||
|
||||
b.Property<int>("ManufacturerId");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<long?>("ShopifyId");
|
||||
|
||||
b.Property<int>("Sku");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ManufacturerId");
|
||||
|
||||
b.ToTable("Part");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartData", b =>
|
||||
{
|
||||
b.Property<string>("SKU")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("BRAND_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("CATEGORY_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("CORPORATE_STATUS_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<decimal?>("Compare_Price")
|
||||
.HasColumnName("Compare Price")
|
||||
.HasColumnType("money");
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS1")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS10")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS11")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS12")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS13")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS14")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS2")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS3")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS4")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS5")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS6")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS7")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS8")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS9")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FINELINE_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<byte?>("IsFitment");
|
||||
|
||||
b.Property<string>("LOB_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Line_Code")
|
||||
.HasColumnName("Line Code")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("PRODUCT_ENGLISH_LONG_DESC")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Part_Number")
|
||||
.HasColumnName("Part Number")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<byte?>("Published");
|
||||
|
||||
b.Property<string>("SUBCATEGORY_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Tested")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Title");
|
||||
|
||||
b.Property<string>("VariantTitle");
|
||||
|
||||
b.Property<decimal?>("Your_Price")
|
||||
.HasColumnName("Your Price")
|
||||
.HasColumnType("money");
|
||||
|
||||
b.HasKey("SKU");
|
||||
|
||||
b.ToTable("PartData");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartImage", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("Sku");
|
||||
|
||||
b.Property<string>("Url");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PartImage");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartPrice", b =>
|
||||
{
|
||||
b.Property<string>("SKU")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("Active");
|
||||
|
||||
b.Property<decimal?>("Compare_Price");
|
||||
|
||||
b.Property<decimal?>("Your_Price");
|
||||
|
||||
b.HasKey("SKU");
|
||||
|
||||
b.ToTable("PartPrice");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartsAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Store");
|
||||
|
||||
b.Property<int>("SKU");
|
||||
|
||||
b.Property<string>("Line_Code")
|
||||
.HasColumnName("Line Code")
|
||||
.HasMaxLength(50);
|
||||
|
||||
b.Property<string>("Part_Number")
|
||||
.HasColumnName("Part Number")
|
||||
.HasMaxLength(50);
|
||||
|
||||
b.Property<int?>("QTY");
|
||||
|
||||
b.HasKey("Store", "SKU");
|
||||
|
||||
b.ToTable("PartsAvailability");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Submodel", b =>
|
||||
{
|
||||
b.Property<int>("VehicleToEngineConfigId");
|
||||
|
||||
b.Property<int>("BaseVehicleId");
|
||||
|
||||
b.Property<int>("EngineId");
|
||||
|
||||
b.Property<int>("SubmodelId");
|
||||
|
||||
b.HasKey("VehicleToEngineConfigId");
|
||||
|
||||
b.ToTable("Submodel","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleEngine", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Description");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleEngine","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleMake", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleMake","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleModel", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<int>("VehicleMakeId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleModel","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.DcfMapping", b =>
|
||||
{
|
||||
b.HasOne("PartSource.Data.Models.ImportData")
|
||||
.WithMany("DcfMapping")
|
||||
.HasForeignKey("LineCode")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Part", b =>
|
||||
{
|
||||
b.HasOne("PartSource.Data.Models.Manufacturer", "Manufacturer")
|
||||
.WithMany()
|
||||
.HasForeignKey("ManufacturerId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,358 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace PartSource.Data.Migrations
|
||||
{
|
||||
public partial class ImportDateDcfMapping : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.EnsureSchema(
|
||||
name: "Vehicle");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ApiClient",
|
||||
columns: table => new
|
||||
{
|
||||
Key = table.Column<string>(nullable: false),
|
||||
AppName = table.Column<string>(nullable: true),
|
||||
Secret = table.Column<string>(nullable: true),
|
||||
Active = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ApiClient", x => x.Key);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Fitment",
|
||||
columns: table => new
|
||||
{
|
||||
FitmentId = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
ManufacturerCode = table.Column<string>(nullable: true),
|
||||
PartNumber = table.Column<string>(nullable: true),
|
||||
PartLabel = table.Column<string>(nullable: true),
|
||||
BaseVehicleId = table.Column<int>(nullable: true),
|
||||
EngineConfigId = table.Column<int>(nullable: true),
|
||||
NoteText = table.Column<string>(nullable: true),
|
||||
Position = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Fitment", x => x.FitmentId);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ImportData",
|
||||
columns: table => new
|
||||
{
|
||||
VariantSku = table.Column<string>(nullable: false),
|
||||
Title = table.Column<string>(nullable: true),
|
||||
BodyHtml = table.Column<string>(nullable: true),
|
||||
Vendor = table.Column<string>(nullable: true),
|
||||
IsVariant = table.Column<bool>(nullable: true),
|
||||
VariantTitle = table.Column<string>(nullable: true),
|
||||
Price = table.Column<decimal>(nullable: false),
|
||||
CompareAt = table.Column<decimal>(nullable: false),
|
||||
ShopifyId = table.Column<long>(nullable: true),
|
||||
ImageSrc = table.Column<string>(nullable: true),
|
||||
ImageAltText = table.Column<string>(nullable: true),
|
||||
IsFitment = table.Column<bool>(nullable: true),
|
||||
LineCode = table.Column<string>(nullable: true),
|
||||
PartNumber = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ImportData", x => x.VariantSku);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ImportMetric",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
TotalItems = table.Column<int>(nullable: true),
|
||||
ChangedItems = table.Column<int>(nullable: true),
|
||||
ImportDate = table.Column<DateTime>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ImportMetric", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Manufacturer",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
Name = table.Column<string>(nullable: true),
|
||||
LineCode = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Manufacturer", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PartData",
|
||||
columns: table => new
|
||||
{
|
||||
SKU = table.Column<string>(maxLength: 255, nullable: false),
|
||||
LOB_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
CATEGORY_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
SUBCATEGORY_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FINELINE_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
PRODUCT_ENGLISH_LONG_DESC = table.Column<string>(maxLength: 255, nullable: true),
|
||||
BRAND_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
CORPORATE_STATUS_NM = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS1 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS2 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS3 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS4 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS5 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS6 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS7 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS8 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS9 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS10 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS11 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS12 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS13 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
FAMILY_FEATURES_BENEFITS14 = table.Column<string>(maxLength: 255, nullable: true),
|
||||
Tested = table.Column<string>(maxLength: 255, nullable: true),
|
||||
LineCode = table.Column<string>(name: "Line Code", maxLength: 255, nullable: true),
|
||||
PartNumber = table.Column<string>(name: "Part Number", maxLength: 255, nullable: true),
|
||||
ComparePrice = table.Column<decimal>(name: "Compare Price", type: "money", nullable: true),
|
||||
YourPrice = table.Column<decimal>(name: "Your Price", type: "money", nullable: true),
|
||||
Title = table.Column<string>(nullable: true),
|
||||
VariantTitle = table.Column<string>(nullable: true),
|
||||
IsFitment = table.Column<byte>(nullable: true),
|
||||
Published = table.Column<byte>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_PartData", x => x.SKU);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PartImage",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
Sku = table.Column<string>(nullable: true),
|
||||
Url = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_PartImage", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PartPrice",
|
||||
columns: table => new
|
||||
{
|
||||
SKU = table.Column<string>(nullable: false),
|
||||
Compare_Price = table.Column<decimal>(nullable: true),
|
||||
Your_Price = table.Column<decimal>(nullable: true),
|
||||
Active = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_PartPrice", x => x.SKU);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PartsAvailability",
|
||||
columns: table => new
|
||||
{
|
||||
Store = table.Column<int>(nullable: false),
|
||||
SKU = table.Column<int>(nullable: false),
|
||||
LineCode = table.Column<string>(name: "Line Code", maxLength: 50, nullable: true),
|
||||
PartNumber = table.Column<string>(name: "Part Number", maxLength: 50, nullable: true),
|
||||
QTY = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_PartsAvailability", x => new { x.Store, x.SKU });
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "BaseVehicle",
|
||||
schema: "Vehicle",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false),
|
||||
Year = table.Column<int>(nullable: false),
|
||||
VehicleMakeId = table.Column<int>(nullable: false),
|
||||
VehicleModelId = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_BaseVehicle", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Submodel",
|
||||
schema: "Vehicle",
|
||||
columns: table => new
|
||||
{
|
||||
VehicleToEngineConfigId = table.Column<int>(nullable: false),
|
||||
SubmodelId = table.Column<int>(nullable: false),
|
||||
BaseVehicleId = table.Column<int>(nullable: false),
|
||||
EngineId = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Submodel", x => x.VehicleToEngineConfigId);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VehicleEngine",
|
||||
schema: "Vehicle",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false),
|
||||
Description = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VehicleEngine", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VehicleMake",
|
||||
schema: "Vehicle",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false),
|
||||
Name = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VehicleMake", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VehicleModel",
|
||||
schema: "Vehicle",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false),
|
||||
Name = table.Column<string>(nullable: true),
|
||||
VehicleMakeId = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VehicleModel", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DcfMapping",
|
||||
columns: table => new
|
||||
{
|
||||
LineCode = table.Column<string>(nullable: false),
|
||||
WhiCode = table.Column<string>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DcfMapping", x => new { x.LineCode, x.WhiCode });
|
||||
table.ForeignKey(
|
||||
name: "FK_DcfMapping_ImportData_LineCode",
|
||||
column: x => x.LineCode,
|
||||
principalTable: "ImportData",
|
||||
principalColumn: "VariantSku",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Part",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
|
||||
ManufacturerId = table.Column<int>(nullable: false),
|
||||
ShopifyId = table.Column<long>(nullable: true),
|
||||
Sku = table.Column<int>(nullable: false),
|
||||
PartNumber = table.Column<string>(nullable: true),
|
||||
Name = table.Column<string>(nullable: true),
|
||||
Description = table.Column<string>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Part", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Part_Manufacturer_ManufacturerId",
|
||||
column: x => x.ManufacturerId,
|
||||
principalTable: "Manufacturer",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Part_ManufacturerId",
|
||||
table: "Part",
|
||||
column: "ManufacturerId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ApiClient");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DcfMapping");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Fitment");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ImportMetric");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Part");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PartData");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PartImage");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PartPrice");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PartsAvailability");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "BaseVehicle",
|
||||
schema: "Vehicle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Submodel",
|
||||
schema: "Vehicle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VehicleEngine",
|
||||
schema: "Vehicle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VehicleMake",
|
||||
schema: "Vehicle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VehicleModel",
|
||||
schema: "Vehicle");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ImportData");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Manufacturer");
|
||||
}
|
||||
}
|
||||
}
|
||||
403
PartSource.Data/Migrations/PartSourceContextModelSnapshot.cs
Normal file
403
PartSource.Data/Migrations/PartSourceContextModelSnapshot.cs
Normal file
@@ -0,0 +1,403 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using PartSource.Data;
|
||||
|
||||
namespace PartSource.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(PartSourceContext))]
|
||||
partial class PartSourceContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.2.2-servicing-10034")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ApiClient", b =>
|
||||
{
|
||||
b.Property<string>("Key")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("Active");
|
||||
|
||||
b.Property<string>("AppName");
|
||||
|
||||
b.Property<string>("Secret");
|
||||
|
||||
b.HasKey("Key");
|
||||
|
||||
b.ToTable("ApiClient");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.BaseVehicle", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<int>("VehicleMakeId");
|
||||
|
||||
b.Property<int>("VehicleModelId");
|
||||
|
||||
b.Property<int>("Year");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("BaseVehicle","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.DcfMapping", b =>
|
||||
{
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("WhiCode");
|
||||
|
||||
b.HasKey("LineCode", "WhiCode");
|
||||
|
||||
b.ToTable("DcfMapping");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Fitment", b =>
|
||||
{
|
||||
b.Property<int>("FitmentId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<int?>("BaseVehicleId");
|
||||
|
||||
b.Property<int?>("EngineConfigId");
|
||||
|
||||
b.Property<string>("ManufacturerCode");
|
||||
|
||||
b.Property<string>("NoteText");
|
||||
|
||||
b.Property<string>("PartLabel");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<string>("Position");
|
||||
|
||||
b.HasKey("FitmentId");
|
||||
|
||||
b.ToTable("Fitment");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ImportData", b =>
|
||||
{
|
||||
b.Property<string>("VariantSku")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("BodyHtml");
|
||||
|
||||
b.Property<decimal>("CompareAt");
|
||||
|
||||
b.Property<string>("ImageAltText");
|
||||
|
||||
b.Property<string>("ImageSrc");
|
||||
|
||||
b.Property<bool?>("IsFitment");
|
||||
|
||||
b.Property<bool?>("IsVariant");
|
||||
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<decimal>("Price");
|
||||
|
||||
b.Property<long?>("ShopifyId");
|
||||
|
||||
b.Property<string>("Title");
|
||||
|
||||
b.Property<string>("VariantTitle");
|
||||
|
||||
b.Property<string>("Vendor");
|
||||
|
||||
b.HasKey("VariantSku");
|
||||
|
||||
b.ToTable("ImportData");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.ImportMetric", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<int?>("ChangedItems");
|
||||
|
||||
b.Property<DateTime>("ImportDate");
|
||||
|
||||
b.Property<int?>("TotalItems");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("ImportMetric");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Manufacturer", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("LineCode");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Manufacturer");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Part", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("Description");
|
||||
|
||||
b.Property<int>("ManufacturerId");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<string>("PartNumber");
|
||||
|
||||
b.Property<long?>("ShopifyId");
|
||||
|
||||
b.Property<int>("Sku");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ManufacturerId");
|
||||
|
||||
b.ToTable("Part");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartData", b =>
|
||||
{
|
||||
b.Property<string>("SKU")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("BRAND_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("CATEGORY_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("CORPORATE_STATUS_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<decimal?>("Compare_Price")
|
||||
.HasColumnName("Compare Price")
|
||||
.HasColumnType("money");
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS1")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS10")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS11")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS12")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS13")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS14")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS2")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS3")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS4")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS5")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS6")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS7")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS8")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FAMILY_FEATURES_BENEFITS9")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("FINELINE_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<byte?>("IsFitment");
|
||||
|
||||
b.Property<string>("LOB_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Line_Code")
|
||||
.HasColumnName("Line Code")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("PRODUCT_ENGLISH_LONG_DESC")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Part_Number")
|
||||
.HasColumnName("Part Number")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<byte?>("Published");
|
||||
|
||||
b.Property<string>("SUBCATEGORY_NM")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Tested")
|
||||
.HasMaxLength(255);
|
||||
|
||||
b.Property<string>("Title");
|
||||
|
||||
b.Property<string>("VariantTitle");
|
||||
|
||||
b.Property<decimal?>("Your_Price")
|
||||
.HasColumnName("Your Price")
|
||||
.HasColumnType("money");
|
||||
|
||||
b.HasKey("SKU");
|
||||
|
||||
b.ToTable("PartData");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartImage", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
||||
|
||||
b.Property<string>("Sku");
|
||||
|
||||
b.Property<string>("Url");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("PartImage");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartPrice", b =>
|
||||
{
|
||||
b.Property<string>("SKU")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("Active");
|
||||
|
||||
b.Property<decimal?>("Compare_Price");
|
||||
|
||||
b.Property<decimal?>("Your_Price");
|
||||
|
||||
b.HasKey("SKU");
|
||||
|
||||
b.ToTable("PartPrice");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.PartsAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Store");
|
||||
|
||||
b.Property<int>("SKU");
|
||||
|
||||
b.Property<string>("Line_Code")
|
||||
.HasColumnName("Line Code")
|
||||
.HasMaxLength(50);
|
||||
|
||||
b.Property<string>("Part_Number")
|
||||
.HasColumnName("Part Number")
|
||||
.HasMaxLength(50);
|
||||
|
||||
b.Property<int?>("QTY");
|
||||
|
||||
b.HasKey("Store", "SKU");
|
||||
|
||||
b.ToTable("PartsAvailability");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Submodel", b =>
|
||||
{
|
||||
b.Property<int>("VehicleToEngineConfigId");
|
||||
|
||||
b.Property<int>("BaseVehicleId");
|
||||
|
||||
b.Property<int>("EngineId");
|
||||
|
||||
b.Property<int>("SubmodelId");
|
||||
|
||||
b.HasKey("VehicleToEngineConfigId");
|
||||
|
||||
b.ToTable("Submodel","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleEngine", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Description");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleEngine","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleMake", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleMake","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.VehicleModel", b =>
|
||||
{
|
||||
b.Property<int>("Id");
|
||||
|
||||
b.Property<string>("Name");
|
||||
|
||||
b.Property<int>("VehicleMakeId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("VehicleModel","Vehicle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.DcfMapping", b =>
|
||||
{
|
||||
b.HasOne("PartSource.Data.Models.ImportData")
|
||||
.WithMany("DcfMapping")
|
||||
.HasForeignKey("LineCode")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PartSource.Data.Models.Part", b =>
|
||||
{
|
||||
b.HasOne("PartSource.Data.Models.Manufacturer", "Manufacturer")
|
||||
.WithMany()
|
||||
.HasForeignKey("ManufacturerId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Models/ApiClient.cs
Normal file
20
PartSource.Data/Models/ApiClient.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.ApiClient
|
||||
// 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
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Models/BaseVehicle.cs
Normal file
18
PartSource.Data/Models/BaseVehicle.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class BaseVehicle
|
||||
{
|
||||
public int BaseVehicleId { get; set; }
|
||||
|
||||
public int Year { get; set; }
|
||||
|
||||
public int MakeId { get; set; }
|
||||
|
||||
public int ModelId { get; set; }
|
||||
}
|
||||
}
|
||||
13
PartSource.Data/Models/DcfMapping.cs
Normal file
13
PartSource.Data/Models/DcfMapping.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class DcfMapping
|
||||
{
|
||||
public string LineCode { get; set; }
|
||||
|
||||
public string WhiCode { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Models/Engine.cs
Normal file
18
PartSource.Data/Models/Engine.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class Engine
|
||||
{
|
||||
public int EngineConfigId { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public int BaseVehicleId { get; set; }
|
||||
|
||||
public int SubmodelId { get; set; }
|
||||
}
|
||||
}
|
||||
19
PartSource.Data/Models/Fitment.cs
Normal file
19
PartSource.Data/Models/Fitment.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public partial class Fitment
|
||||
{
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
public string LineCode { get; set; }
|
||||
|
||||
public int? BaseVehicleId { get; set; }
|
||||
|
||||
public int? EngineConfigId { get; set; }
|
||||
|
||||
public string Position { get; set; }
|
||||
}
|
||||
}
|
||||
41
PartSource.Data/Models/ImportData.cs
Normal file
41
PartSource.Data/Models/ImportData.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
//[Table("ImportDataOld")]
|
||||
public class ImportData
|
||||
{
|
||||
public string Title { get; set; }
|
||||
|
||||
public string BodyHtml { get; set; }
|
||||
|
||||
public string Vendor { get; set; }
|
||||
|
||||
public bool? IsVariant { get; set; }
|
||||
|
||||
public string VariantTitle { get; set; }
|
||||
|
||||
[Key]
|
||||
public string VariantSku { get; set; }
|
||||
|
||||
public decimal Price { get; set; }
|
||||
|
||||
public decimal CompareAt { get; set; }
|
||||
|
||||
public long? ShopifyId { get; set; }
|
||||
|
||||
public string ImageSrc { get; set; }
|
||||
|
||||
public string ImageAltText { get; set; }
|
||||
|
||||
public bool? IsFitment { get; set; }
|
||||
|
||||
public string LineCode { get; set; }
|
||||
|
||||
public string PartNumber { get; set; }
|
||||
}
|
||||
}
|
||||
22
PartSource.Data/Models/ImportMetric.cs
Normal file
22
PartSource.Data/Models/ImportMetric.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class ImportMetric
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public Nullable<int> TotalItems { get; set; }
|
||||
public Nullable<int> ChangedItems { get; set; }
|
||||
public System.DateTime ImportDate { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Models/Manufacturer.cs
Normal file
17
PartSource.Data/Models/Manufacturer.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.Manufacturer
|
||||
// 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
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class Manufacturer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string LineCode { get; set; }
|
||||
}
|
||||
}
|
||||
27
PartSource.Data/Models/Part.cs
Normal file
27
PartSource.Data/Models/Part.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.Part
|
||||
// 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
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
108
PartSource.Data/Models/PartData.cs
Normal file
108
PartSource.Data/Models/PartData.cs
Normal file
@@ -0,0 +1,108 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.PartData
|
||||
// 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;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string VariantTitle { get; set; }
|
||||
|
||||
public byte? IsFitment { get; set; }
|
||||
|
||||
public byte? Published { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Models/PartImage.cs
Normal file
15
PartSource.Data/Models/PartImage.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class PartImage
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Sku { get; set; }
|
||||
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Models/PartPrice.cs
Normal file
17
PartSource.Data/Models/PartPrice.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public partial class PartPrice
|
||||
{
|
||||
[Key]
|
||||
public string SKU { get; set; }
|
||||
public Nullable<decimal> Compare_Price { get; set; }
|
||||
public Nullable<decimal> Your_Price { get; set; }
|
||||
public string Active { get; set; }
|
||||
|
||||
// public virtual PartData PartData { get; set; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Models/PartsAvailability.cs
Normal file
26
PartSource.Data/Models/PartsAvailability.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class PartsAvailability
|
||||
{
|
||||
[Column(Order = 0)]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Store { get; set; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
33
PartSource.Data/Models/PostalCode.cs
Normal file
33
PartSource.Data/Models/PostalCode.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Data.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Models/ProductBackup.cs
Normal file
15
PartSource.Data/Models/ProductBackup.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class ProductBackup
|
||||
{
|
||||
[Key]
|
||||
public long ShopifyId { get; set; }
|
||||
|
||||
public string ProductJson { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Models/Store.cs
Normal file
18
PartSource.Data/Models/Store.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.Store
|
||||
// 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.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class Store
|
||||
{
|
||||
[Key]
|
||||
public int StoreNumber { get; set; }
|
||||
|
||||
//public DbGeography Location { get; set; }
|
||||
}
|
||||
}
|
||||
31
PartSource.Data/Models/StorePart.cs
Normal file
31
PartSource.Data/Models/StorePart.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Models.StorePart
|
||||
// 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;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Models/Submodel.cs
Normal file
26
PartSource.Data/Models/Submodel.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
[Table("Submodel", Schema = "Vehicle")]
|
||||
public class Submodel
|
||||
{
|
||||
public int SubmodelId { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public int Year { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public int MakeId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public int ModelId { get; set; }
|
||||
}
|
||||
}
|
||||
37
PartSource.Data/Models/VehicleData.cs
Normal file
37
PartSource.Data/Models/VehicleData.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class VehicleData
|
||||
{
|
||||
public int? MakeId { get; set; }
|
||||
|
||||
public string MakeName { get; set; }
|
||||
|
||||
public int? ModelId { get; set; }
|
||||
|
||||
public string ModelName { get; set; }
|
||||
|
||||
public int? EngineConfigId { get; set; }
|
||||
|
||||
public string EngineDescription { get; set; }
|
||||
|
||||
public int? BaseVehicleId { get; set; }
|
||||
|
||||
public int? Year { get; set; }
|
||||
|
||||
public int? SubmodelId { get; set; }
|
||||
|
||||
public string SubmodelName { get; set; }
|
||||
|
||||
[Key]
|
||||
public int VehicleToEngineConfigId { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string Position { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Models/VehicleMake.cs
Normal file
15
PartSource.Data/Models/VehicleMake.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class VehicleMake
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
19
PartSource.Data/Models/VehicleModel.cs
Normal file
19
PartSource.Data/Models/VehicleModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace PartSource.Data.Models
|
||||
{
|
||||
public class VehicleModel
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public int VehicleMakeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/AddImg.cs
Normal file
17
PartSource.Data/Nexpart/AddImg.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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 AddImg
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string AddImgUrl { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string AddThumbUrl { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/AddImgs.cs
Normal file
14
PartSource.Data/Nexpart/AddImgs.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 AddImgs
|
||||
{
|
||||
[XmlElement]
|
||||
public AddImg[] AddImg { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/Apps.cs
Normal file
14
PartSource.Data/Nexpart/Apps.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 Apps
|
||||
{
|
||||
[XmlElement]
|
||||
public BuyersGuideMake[] Make { get; set; }
|
||||
}
|
||||
}
|
||||
34
PartSource.Data/Nexpart/BaseVehicle.cs
Normal file
34
PartSource.Data/Nexpart/BaseVehicle.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.BaseVehicleDetail
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class BaseVehicle
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int BaseVehicleId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int MakeId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int ModelId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string MakeName { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string ModelName { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Year { get; set; }
|
||||
|
||||
public int EngineConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Data/Nexpart/BaseVehicleDetail.cs
Normal file
29
PartSource.Data/Nexpart/BaseVehicleDetail.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.BaseVehicleDetail
|
||||
// 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 BaseVehicleDetail
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int WHIMakeId { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public int 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 int Year { get; set; }
|
||||
}
|
||||
}
|
||||
31
PartSource.Data/Nexpart/BaseVehicleDetailLookup.cs
Normal file
31
PartSource.Data/Nexpart/BaseVehicleDetailLookup.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.BaseVehicleDetailLookup
|
||||
// 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 BaseVehicleDetailLookup
|
||||
{
|
||||
public BaseVehicleDetailLookup()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public int Year { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public int MakeId { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public int ModelId { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/BaseVehicleDetailLookupResponse.cs
Normal file
21
PartSource.Data/Nexpart/BaseVehicleDetailLookupResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.BaseVehicleDetailLookupResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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.Data/Nexpart/BaseVehicleSearch.cs
Normal file
32
PartSource.Data/Nexpart/BaseVehicleSearch.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class BaseVehicleSearch
|
||||
{
|
||||
public BaseVehicleSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
Region = new Region[]
|
||||
{
|
||||
new Region
|
||||
{
|
||||
Id = 2
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public Years Years { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public Region[] Region { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public VehicleType[] VehicleType { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Nexpart/BaseVehicleSearchResponse.cs
Normal file
15
PartSource.Data/Nexpart/BaseVehicleSearchResponse.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class BaseVehicleSearchResponse : IResponseElement<BaseVehicles>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "BaseVehicles")]
|
||||
public BaseVehicles ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
16
PartSource.Data/Nexpart/BaseVehicles.cs
Normal file
16
PartSource.Data/Nexpart/BaseVehicles.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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 BaseVehicles
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public BaseVehicle[] BaseVehicle { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
44
PartSource.Data/Nexpart/Body.cs
Normal file
44
PartSource.Data/Nexpart/Body.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Body
|
||||
// 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 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 = "BaseVehicleSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleSearch))]
|
||||
[XmlElement(ElementName = "BaseVehicleSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BaseVehicleSearchResponse))]
|
||||
[XmlElement(ElementName = "BuyersGuideSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BuyersGuideSearch))]
|
||||
[XmlElement(ElementName = "BuyersGuideSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(BuyersGuideSearchResponse))]
|
||||
[XmlElement(ElementName = "EngineSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(EngineSearch))]
|
||||
[XmlElement(ElementName = "EngineSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(EngineSearchResponse))]
|
||||
[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 = "MenuNodesLookup", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MenuNodesLookup))]
|
||||
[XmlElement(ElementName = "MenuNodesLookupResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(MenuNodesLookupResponse))]
|
||||
[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 = "SubModelSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SubModelSearch))]
|
||||
[XmlElement(ElementName = "SubModelSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(SubModelSearchResponse))]
|
||||
[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))]
|
||||
[XmlElement(ElementName = "WHIEngineSearch", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(WHIEngineSearch))]
|
||||
[XmlElement(ElementName = "WHIEngineSearchResponse", Namespace = "http://whisolutions.com/PartSelectService-v1", Type = typeof(WHIEngineSearchResponse))]
|
||||
public object Content { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/BuyersGuideData.cs
Normal file
14
PartSource.Data/Nexpart/BuyersGuideData.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 BuyersGuideData
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public Apps Apps { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/BuyersGuideEngine.cs
Normal file
20
PartSource.Data/Nexpart/BuyersGuideEngine.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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 BuyersGuideEngine
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string Desc { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int PerVehicle { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Year { get; set; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Nexpart/BuyersGuideMake.cs
Normal file
26
PartSource.Data/Nexpart/BuyersGuideMake.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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 BuyersGuideMake
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int FromYear { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int ToYear { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int MakeCount { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public BuyersGuideModel[] Model { get; set; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Nexpart/BuyersGuideModel.cs
Normal file
26
PartSource.Data/Nexpart/BuyersGuideModel.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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 BuyersGuideModel
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int FromYear { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int ToYear { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int ModelCount { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public BuyersGuideEngine[] Engine { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/BuyersGuidePart.cs
Normal file
17
PartSource.Data/Nexpart/BuyersGuidePart.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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 BuyersGuidePart
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string PartNumber { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string MfrCode { get; set; }
|
||||
}
|
||||
}
|
||||
22
PartSource.Data/Nexpart/BuyersGuideSearch.cs
Normal file
22
PartSource.Data/Nexpart/BuyersGuideSearch.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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 BuyersGuideSearch
|
||||
{
|
||||
public BuyersGuideSearch()
|
||||
{
|
||||
PSRequestHeader = new PSRequestHeader();
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public BuyersGuidePart Part { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Nexpart/BuyersGuideSearchResponse.cs
Normal file
18
PartSource.Data/Nexpart/BuyersGuideSearchResponse.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using PartSource.Data.Nexpart.Interfaces;
|
||||
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 BuyersGuideSearchResponse : IResponseElement<BuyersGuideData>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "BuyersGuideData")]
|
||||
public BuyersGuideData ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/Criterion.cs
Normal file
17
PartSource.Data/Nexpart/Criterion.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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 Criterion
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "Attrib")]
|
||||
public string Attribute { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/Engine.cs
Normal file
20
PartSource.Data/Nexpart/Engine.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Engine
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class Engine
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/EngineSearchResponse.cs
Normal file
21
PartSource.Data/Nexpart/EngineSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.EngineSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/Engines.cs
Normal file
17
PartSource.Data/Nexpart/Engines.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Engines
|
||||
// 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 Engines
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public Engine[] Engine;
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Nexpart/Envelope.cs
Normal file
26
PartSource.Data/Nexpart/Envelope.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Envelope
|
||||
// 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://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.Data/Nexpart/Exceptions.cs
Normal file
20
PartSource.Data/Nexpart/Exceptions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Exceptions
|
||||
// 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/PartSelectCommon/2011-07-21")]
|
||||
public class Exceptions
|
||||
{
|
||||
[XmlAttribute(AttributeName = "code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Nexpart/Interfaces/IResponseElement.cs
Normal file
15
PartSource.Data/Nexpart/Interfaces/IResponseElement.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Interfaces.IResponseElement`1
|
||||
// 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
|
||||
|
||||
namespace PartSource.Data.Nexpart.Interfaces
|
||||
{
|
||||
public interface IResponseElement<T>
|
||||
{
|
||||
PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
T ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Data/Nexpart/Item.cs
Normal file
29
PartSource.Data/Nexpart/Item.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Item
|
||||
// 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/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; }
|
||||
|
||||
[XmlElement]
|
||||
public AddImgs AddImgs { get; set; }
|
||||
|
||||
[XmlElement]
|
||||
public Part Part { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/Items.cs
Normal file
17
PartSource.Data/Nexpart/Items.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Items
|
||||
// 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 Items
|
||||
{
|
||||
[XmlElement(ElementName = "Item", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public PartSource.Data.Nexpart.Item[] Item { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Data/Nexpart/Make.cs
Normal file
23
PartSource.Data/Nexpart/Make.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Make
|
||||
// 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/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.Data/Nexpart/MakeSearch.cs
Normal file
33
PartSource.Data/Nexpart/MakeSearch.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.MakeSearch
|
||||
// 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 MakeSearch
|
||||
{
|
||||
public MakeSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.Years = new Years() { From = 1900, To = 2049 };
|
||||
this.RegionId = new int[]{ 2 };
|
||||
}
|
||||
|
||||
[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 int[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)]
|
||||
public int[] VehicleTypeId { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/MakeSearchResponse.cs
Normal file
21
PartSource.Data/Nexpart/MakeSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.MakeSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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.Data/Nexpart/Makes.cs
Normal file
17
PartSource.Data/Nexpart/Makes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Makes
|
||||
// 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 Makes
|
||||
{
|
||||
[XmlElement(ElementName = "Make", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public PartSource.Data.Nexpart.Make[] Make { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Data/Nexpart/MenuNode.cs
Normal file
29
PartSource.Data/Nexpart/MenuNode.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartType
|
||||
// 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 MenuNode
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string NodeType { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int NodeTypeId { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "Desc")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int SourceId { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/MenuNodes.cs
Normal file
17
PartSource.Data/Nexpart/MenuNodes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypes
|
||||
// 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 MenuNodes
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public MenuNode[] MenuNode{ get; set; }
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
PartSource.Data/Nexpart/MenuNodesLookupResponse.cs
Normal file
15
PartSource.Data/Nexpart/MenuNodesLookupResponse.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class MenuNodesLookupResponse : IResponseElement<MenuNodes>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "MenuNodes")]
|
||||
public MenuNodes ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/Model.cs
Normal file
20
PartSource.Data/Nexpart/Model.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Model
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class Model
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "id")]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
35
PartSource.Data/Nexpart/ModelSearch.cs
Normal file
35
PartSource.Data/Nexpart/ModelSearch.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.ModelSearch
|
||||
// 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 ModelSearch
|
||||
{
|
||||
public ModelSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
this.RegionId = new int[] { 2 };
|
||||
}
|
||||
|
||||
[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 int Year { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "MakeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 3)]
|
||||
public int MakeId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "RegionId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 4)]
|
||||
public int[] RegionId { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "VehicleTypeId", Namespace = "http://whisolutions.com/PartSelectService-v1", Order = 5)]
|
||||
public int[] VehicleTypeId { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/ModelSearchResponse.cs
Normal file
21
PartSource.Data/Nexpart/ModelSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.ModelSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
25
PartSource.Data/Nexpart/Models.cs
Normal file
25
PartSource.Data/Nexpart/Models.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Models
|
||||
// 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 Models
|
||||
{
|
||||
public Models()
|
||||
{
|
||||
Region = 2;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public int Region { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Model", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public PartSource.Data.Nexpart.Model[] Model { get; set; }
|
||||
}
|
||||
}
|
||||
26
PartSource.Data/Nexpart/PSRequestHeader.cs
Normal file
26
PartSource.Data/Nexpart/PSRequestHeader.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PSRequestHeader
|
||||
// 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 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.Data/Nexpart/PSResponseHeader.cs
Normal file
32
PartSource.Data/Nexpart/PSResponseHeader.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PSResponseHeader
|
||||
// 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 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.Data.Nexpart.Exceptions[] Exceptions { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Data/Nexpart/Part.cs
Normal file
29
PartSource.Data/Nexpart/Part.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/PartNumber.cs
Normal file
14
PartSource.Data/Nexpart/PartNumber.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 PartNumber
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
23
PartSource.Data/Nexpart/PartType.cs
Normal file
23
PartSource.Data/Nexpart/PartType.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartType
|
||||
// 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 PartType
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int PositionGroupId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
34
PartSource.Data/Nexpart/PartTypeSearch.cs
Normal file
34
PartSource.Data/Nexpart/PartTypeSearch.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypeSearch
|
||||
// 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 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.Data/Nexpart/PartTypeSearchResponse.cs
Normal file
25
PartSource.Data/Nexpart/PartTypeSearchResponse.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypeSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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.Data/Nexpart/PartTypes.cs
Normal file
17
PartSource.Data/Nexpart/PartTypes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypes
|
||||
// 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 PartTypes
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public PartSource.Data.Nexpart.PartType[] PartType { get; set; }
|
||||
}
|
||||
}
|
||||
28
PartSource.Data/Nexpart/PartTypesValidateLookup.cs
Normal file
28
PartSource.Data/Nexpart/PartTypesValidateLookup.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypesValidateLookup
|
||||
// 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 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; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/PartTypesValidateLookupResponse.cs
Normal file
21
PartSource.Data/Nexpart/PartTypesValidateLookupResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PartTypesValidateLookupResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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.Data/Nexpart/PrimaryImg.cs
Normal file
17
PartSource.Data/Nexpart/PrimaryImg.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.PrimaryImg
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class PrimaryImg
|
||||
{
|
||||
[XmlElement]
|
||||
public string ImgUrl { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/Region.cs
Normal file
14
PartSource.Data/Nexpart/Region.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 Region
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/RegionId.cs
Normal file
14
PartSource.Data/Nexpart/RegionId.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 RegionId
|
||||
{
|
||||
[XmlText]
|
||||
public int Value { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/ResultOption.cs
Normal file
14
PartSource.Data/Nexpart/ResultOption.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 ResultOption
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
25
PartSource.Data/Nexpart/SmartPageDataSearch.cs
Normal file
25
PartSource.Data/Nexpart/SmartPageDataSearch.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.SmartPageDataSearch
|
||||
// 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 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.Data/Nexpart/SmartPageDataSearchResponse.cs
Normal file
21
PartSource.Data/Nexpart/SmartPageDataSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.SmartPageDataSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class SmartPageDataSearchResponse : IResponseElement<Items>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Items")]
|
||||
public Items ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/SubModel.cs
Normal file
20
PartSource.Data/Nexpart/SubModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Item
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class SubModel
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string Id { get; set; }
|
||||
|
||||
[XmlText]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Nexpart/SubModelSearchResponse.cs
Normal file
18
PartSource.Data/Nexpart/SubModelSearchResponse.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using PartSource.Data.Nexpart.Interfaces;
|
||||
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 SubModelSearchResponse : IResponseElement<SubModels>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "SubModels")]
|
||||
public SubModels ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/SubModels.cs
Normal file
14
PartSource.Data/Nexpart/SubModels.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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 SubModels
|
||||
{
|
||||
[XmlElement(ElementName = "SubModel", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public SubModel[] SubModel { get; set; }
|
||||
}
|
||||
}
|
||||
29
PartSource.Data/Nexpart/SubModelsSearch.cs
Normal file
29
PartSource.Data/Nexpart/SubModelsSearch.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class SubModelSearch
|
||||
{
|
||||
public SubModelSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
RegionId = 2;
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public int Year { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public int MakeId { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public int ModelId { get; set; }
|
||||
|
||||
[XmlElement(Order = 5)]
|
||||
public int RegionId { get; set; }
|
||||
}
|
||||
}
|
||||
38
PartSource.Data/Nexpart/VehicleDetail.cs
Normal file
38
PartSource.Data/Nexpart/VehicleDetail.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleDetail
|
||||
// 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 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; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public BaseVehicle BaseVehicle { get; set; }
|
||||
}
|
||||
}
|
||||
38
PartSource.Data/Nexpart/VehicleIdSearch.cs
Normal file
38
PartSource.Data/Nexpart/VehicleIdSearch.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleIdSearch
|
||||
// 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 VehicleIdSearch
|
||||
{
|
||||
public VehicleIdSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
RegionId = new RegionId
|
||||
{
|
||||
Value = 2
|
||||
};
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public Criterion[] Criterion { get; set; }
|
||||
|
||||
[XmlElement(Order = 4)]
|
||||
public RegionId RegionId { get; set; }
|
||||
|
||||
[XmlElement(Order = 5)]
|
||||
public ResultOption[] ResultOption { get; set; }
|
||||
}
|
||||
}
|
||||
21
PartSource.Data/Nexpart/VehicleIdSearchResponse.cs
Normal file
21
PartSource.Data/Nexpart/VehicleIdSearchResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleIdSearchResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
30
PartSource.Data/Nexpart/VehicleIdentifier.cs
Normal file
30
PartSource.Data/Nexpart/VehicleIdentifier.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleIdentifier
|
||||
// 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 VehicleIdentifier
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public int BaseVehicleId { get; set; }
|
||||
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public int EngineConfigId { get; set; }
|
||||
|
||||
public bool ShouldSerializeBaseVehicleId()
|
||||
{
|
||||
return BaseVehicleId != 0;
|
||||
}
|
||||
|
||||
public bool ShouldSerializeEngineConfigId()
|
||||
{
|
||||
return EngineConfigId != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/VehicleType.cs
Normal file
20
PartSource.Data/Nexpart/VehicleType.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleType
|
||||
// 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/PartSelectServ/2011-07-21")]
|
||||
public class VehicleType
|
||||
{
|
||||
[XmlText]
|
||||
public string Value { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
17
PartSource.Data/Nexpart/VehicleTypes.cs
Normal file
17
PartSource.Data/Nexpart/VehicleTypes.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleTypes
|
||||
// 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 VehicleTypes
|
||||
{
|
||||
[XmlElement(ElementName = "VehicleType", Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21", Order = 1)]
|
||||
public PartSource.Data.Nexpart.VehicleType[] VehicleType { get; set; }
|
||||
}
|
||||
}
|
||||
22
PartSource.Data/Nexpart/VehicleTypesGet.cs
Normal file
22
PartSource.Data/Nexpart/VehicleTypesGet.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleTypesGet
|
||||
// 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 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.Data/Nexpart/VehicleTypesGetResponse.cs
Normal file
21
PartSource.Data/Nexpart/VehicleTypesGetResponse.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.VehicleTypesGetResponse
|
||||
// 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 PartSource.Data.Nexpart.Interfaces;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.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; }
|
||||
}
|
||||
}
|
||||
14
PartSource.Data/Nexpart/WHIEngine.cs
Normal file
14
PartSource.Data/Nexpart/WHIEngine.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public class WHIEngine
|
||||
{
|
||||
[XmlAttribute]
|
||||
public int Id { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "Desc")]
|
||||
public string Description{ get; set; }
|
||||
}
|
||||
}
|
||||
32
PartSource.Data/Nexpart/WHIEngineSearch.cs
Normal file
32
PartSource.Data/Nexpart/WHIEngineSearch.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
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 WHIEngineSearch
|
||||
{
|
||||
public WHIEngineSearch()
|
||||
{
|
||||
this.PSRequestHeader = new PSRequestHeader();
|
||||
RegionId = new RegionId[]
|
||||
{
|
||||
new RegionId
|
||||
{
|
||||
Value = 2
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[XmlElement(Order = 1)]
|
||||
public PSRequestHeader PSRequestHeader { get; set; }
|
||||
|
||||
[XmlElement(Order = 2)]
|
||||
public VehicleIdentifier VehicleIdentifier { get; set; }
|
||||
|
||||
[XmlElement(Order = 3)]
|
||||
public RegionId[] RegionId { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/Nexpart/WHIEngineSearchResponse.cs
Normal file
18
PartSource.Data/Nexpart/WHIEngineSearchResponse.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using PartSource.Data.Nexpart.Interfaces;
|
||||
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 WHIEngineSearchResponse : IResponseElement<WHIEngines>
|
||||
{
|
||||
[XmlElement]
|
||||
public PSResponseHeader PSResponseHeader { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "WHIEngines")]
|
||||
public WHIEngines ResponseBody { get; set; }
|
||||
}
|
||||
}
|
||||
11
PartSource.Data/Nexpart/WHIEngines.cs
Normal file
11
PartSource.Data/Nexpart/WHIEngines.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace PartSource.Data.Nexpart
|
||||
{
|
||||
[XmlType(AnonymousType = true, Namespace = "http://whisolutions.com/PartSelectService-v1")]
|
||||
public class WHIEngines
|
||||
{
|
||||
[XmlElement(Namespace = "http://whisolutions.com/PartSelectServ/2011-07-21")]
|
||||
public WHIEngine[] WHIEngine;
|
||||
}
|
||||
}
|
||||
20
PartSource.Data/Nexpart/Years.cs
Normal file
20
PartSource.Data/Nexpart/Years.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: PartSource.Data.Nexpart.Years
|
||||
// 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 Years
|
||||
{
|
||||
[XmlAttribute(AttributeName = "to")]
|
||||
public int To { get; set; }
|
||||
|
||||
[XmlAttribute(AttributeName = "from")]
|
||||
public int From { get; set; }
|
||||
}
|
||||
}
|
||||
18
PartSource.Data/PartSource.Data.csproj
Normal file
18
PartSource.Data/PartSource.Data.csproj
Normal file
@@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Configurations>Debug;Release;Also Debug</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.2.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\ratermania\shopify\Shopify\Shopify.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user