EOS-WebAPI/Models/Sync/SyncModel.cs
Nidhi Bhargava d0ac8a7790 Code Commit
2025-09-04 17:30:22 +05:30

896 lines
26 KiB
C#

#region Namespaces
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using VECV_WebApi.Models.Activity;
using VECV_WebApi.Models.Ticket;
#endregion
namespace VECV_WebApi.Models.Sync
{
#region Model Classes
/// <summary>
/// contains Open ticket sync properties
/// </summary>
public class SyncOpenModel
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public List<CustomerOpenTicketDetail> TicketOpenList { get; set; }
/// <summary>
/// Get or Set open ticket activity list
/// </summary>
public List<TicketActivityOpenModel> TicketActivityOpenList { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string DeviceAlias { get; set; }
/// <summary>
/// Get or Set last DB sync time
/// </summary>
public DateTime? DbSynLastTime { get; set; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
public string Message { get; set; }
}
/// <summary>
/// contains Close ticket sync properties
/// </summary>
public class SyncCloseModel
{
/// <summary>
/// Get or Set close ticket list
/// </summary>
public List<CustomerOpenTicketDetail> TicketCloseList { get; set; }
/// <summary>
/// Get or Set close ticket activity list
/// </summary>
public List<TicketActivityCloseModel> TicketActivityCloseList { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string DeviceAlias { get; set; }
/// <summary>
/// Get or Set sync time in DB
/// </summary>
public DateTime? DbSynLastTime { get; set; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or Set UTC minute
/// </summary>
public int UtcMinute { get; set; }
}
/// <summary>
/// contains Open ticket activity properties
/// </summary>
public class TicketActivityOpenModel
{
/// <summary>
/// Get or Set ticket id
/// </summary>
public string TicketId { get; set; }
/// <summary>
/// Get or Set id
/// </summary>
public Int64? Id { get; set; }
/// <summary>
/// Get or Set activity created by
/// </summary>
public string ActivityTicketsOpenCreatedBy { get; set; }
/// <summary>
/// Get or Set activity creation time
/// </summary>
public string ActivityTicketsOpenCreationTime { get; set; }
/// <summary>
/// Get or Set remarks
/// </summary>
public string Remarks { get; set; }
/// <summary>
/// Get or Set activity status
/// </summary>
public int? TicketActivityStatus { get; set; }
}
/// <summary>
/// contains properties for Close ticket activity
/// </summary>
public class TicketActivityCloseModel
{
/// <summary>
/// Get or Set ticket id
/// </summary>
public string TicketId { get; set; }
/// <summary>
/// Get or Set id
/// </summary>
public Int64? Id { get; set; }
/// <summary>
/// Get or Set activity created by
/// </summary>
public string ActivityTicketsOpenCreatedBy { get; set; }
/// <summary>
/// Get or Set activity creation date
/// </summary>
public string ActivityTicketsOpenCreationTime { get; set; }
/// <summary>
/// Get or Set remarks
/// </summary>
public string Remarks { get; set; }
/// <summary>
/// Get or Set activity status
/// </summary>
public int? TicketActivityStatus { get; set; }
}
/// <summary>
/// contains properties for open ticket details
/// </summary>
public class CustomerOpenTicketDetail
{
/// <summary>
/// Get or Set ticket id
/// </summary>
public string TicketId { get; set; }
/// <summary>
/// Get or Set ticket id alias
/// </summary>
public string TicketIdAlias { get; set; }
/// <summary>
/// Get or Set description
/// </summary>
public string Description { get; set; }
/// <summary>
/// Get or Set assigned to
/// </summary>
public string AssignedTo { get; set; }
/// <summary>
/// Get or Set reported via
/// </summary>
public string ReportedVia { get; set; }
/// <summary>
/// Get or Set ticket status
/// </summary>
public int? TicketStatus { get; set; }
/// <summary>
/// Get or Set priority
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// Get or Set customer score
/// </summary>
public string CustomerScore { get; set; }
/// <summary>
/// Get or Set created by
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// Get or Set creation time
/// </summary>
public string CreationTime { get; set; }
/// <summary>
/// Get or Set last odified by
/// </summary>
public string LastModifiedBy { get; set; }
/// <summary>
/// Get or Set last modified time
/// </summary>
public string LastModifiedTime { get; set; }
/// <summary>
/// Get or Set breakdown location
/// </summary>
public string BreakdownLocation { get; set; }
/// <summary>
/// Get or Set breakdown longitude
/// </summary>
public string BreakdownLongitude { get; set; }
/// <summary>
/// Get or Set breakdown latitude
/// </summary>
public string BreakdownLattitude { get; set; }
/// <summary>
/// Get or Set assigned to user id
/// </summary>
public string AssignedToUserId { get; set; }
/// <summary>
/// Get or Set user latitude
/// </summary>
public string AssignedToUserLattitude { get; set; }
/// <summary>
/// Get or Set user longitude
/// </summary>
public string AssignedToUserLongitude { get; set; }
/// <summary>
/// Get or Set IsDeclined
/// </summary>
public Boolean? Isdeclined { get; set; }
/// <summary>
/// Get or Set estimated time for job completion
/// </summary>
public int? EstimatedTimeForJobCompletion { get; set; }
/// <summary>
/// Get or Set ticket life cycle time
/// </summary>
public int? TotalTicketLifecycleTimeSla { get; set; }
/// <summary>
/// Get or Set estimated time for job completion
/// </summary>
public string EstimatedTimeForJobCompletionSubmitTime { get; set; }
/// <summary>
/// Get or Set vehicle registration number
/// </summary>
public string VehicleRegisterNumber { get; set; }
/// <summary>
/// Get or Set breakdown landmark
/// </summary>
public string BreakdownLocationLandmark { get; set; }
/// <summary>
/// Get or Set route id
/// </summary>
public int? RouteId { get; set; }
/// <summary>
/// Get or Set customer contact number
/// </summary>
public string CustomerContactNo { get; set; }
/// <summary>
/// Get or Set repair cost
/// </summary>
public string RepairCost { get; set; }
/// <summary>
/// Get or Set default sla time
/// </summary>
public int? DefaultSlaTime { get; set; }
/// <summary>
/// Get or Set sla missed reason
/// </summary>
public string SlaMissedReason { get; set; }
/// <summary>
/// Get or Set suggestion comment
/// </summary>
public string SuggestionComment { get; set; }
/// <summary>
/// Get or Set job completed response time
/// </summary>
public string JobCompleteResponseTime { get; set; }
/// <summary>
/// Get or Set extra column
/// </summary>
public string DefaultCol2 { get; set; }
/// <summary>
/// Get or Set extra column
/// </summary>
public string DefaultCol3 { get; set; }
/// <summary>
/// Get or Set estimated dustance
/// </summary>
public string EstimatedDistance { get; set; }
/// <summary>
/// Get or Set owner contact no
/// </summary>
public string Owner_Contact_no { get; set; }
public bool IsTripEnd { get; set; }
public string ChassisNo { get; set; }
public double OdoMeter { get; set; }
public string ChassisNumber { get; set; }
public double OdometerReading { get; set; }
public double PreviousOdometerReading { get; set; }
public string VehicleType { get; set; }
//-added on 31-12-2020 start -----------------
public string VehicleWarranty { get; set; }
public string VehicleAMC { get; set; }
public string VehicleSalesDate { get; set; }
public string TicketSource { get; set; }
public string OwnerName { get; set; }
public string CustomerId { get; set; }
public string CustomerType { get; set; }
public Boolean? IsKam { get; set; }
// priya 15 oct 2022
public Boolean? IsTripStart { get; set; }
public string Product_Variant { get; set; }
public string Vehicle_Emission_Norms { get; set; }
//--- added on 31-12-2020 end -------------------
}
/// <summary>
/// contains properties for customer close tickets
/// </summary>
public class CustomerCloseTicketDetail
{
/// <summary>
/// get or set ticket id
/// </summary>
public string TicketId { get; set; }
/// <summary>
/// Get or Set ticket id alias
/// </summary>
public string TicketIdAlias { get; set; }
/// <summary>
/// Get or Set decription
/// </summary>
public string Description { get; set; }
/// <summary>
/// Get or Set assigned to
/// </summary>
public string AssignedTo { get; set; }
/// <summary>
/// Get or Set rported via
/// </summary>
public string ReportedVia { get; set; }
/// <summary>
/// Get or Set ticket status
/// </summary>
public int? TicketStatus { get; set; }
/// <summary>
/// Get or Set priority
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// Get or Set customer source
/// </summary>
public string CustomerScore { get; set; }
/// <summary>
/// Get or Set created by
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// Get or Set creation time
/// </summary>
public string CreationTime { get; set; }
/// <summary>
/// Get or Set last time by
/// </summary>
public string LastModifiedBy { get; set; }
/// <summary>
/// Get or Set last modified time
/// </summary>
public string LastModifiedTime { get; set; }
/// <summary>
/// Get or Set breakdown location
/// </summary>
public string BreakdownLocation { get; set; }
/// <summary>
/// Get or Set breakdown longitude
/// </summary>
public string BreakdownLongitude { get; set; }
/// <summary>
/// Get or Set breakdown latitude
/// </summary>
public string BreakdownLattitude { get; set; }
/// <summary>
/// Get or Set assigned to user id
/// </summary>
public string AssignedToUserId { get; set; }
/// <summary>
/// Get or Set assigned to user latitude
/// </summary>
public string AssignedToUserLattitude { get; set; }
/// <summary>
/// Get or Set assigned to user longitude
/// </summary>
public string AssignedToUserLongitude { get; set; }
/// <summary>
/// Get or Set IsDeclined bit
/// </summary>
public Boolean? Isdeclined { get; set; }
/// <summary>
/// Get or Set estimated time for job completion
/// </summary>
public int? EstimatedTimeForJobCompletion { get; set; }
/// <summary>
/// Get or Set ticket life cycle time
/// </summary>
public int? TotalTicketLifecycleTimeSla { get; set; }
/// <summary>
/// Get or Set estimated time for job completion submit time
/// </summary>
public string EstimatedTimeForJobCompletionSubmitTime { get; set; }
/// <summary>
/// Get or Set vehicle registration number
/// </summary>
public string VehicleRegisterNumber { get; set; }
/// <summary>
/// Get or Set breakdown landmark
/// </summary>
public string BreakdownLocationLandmark { get; set; }
/// <summary>
/// Get or Set route id
/// </summary>
public int? RouteId { get; set; }
/// <summary>
/// Get or Set customer contact number
/// </summary>
public string CustomerContactNo { get; set; }
/// <summary>
/// Get or Set repair cost
/// </summary>
public string RepairCost { get; set; }
/// <summary>
/// Get or Set default sla time
/// </summary>
public int? DefaultSlaTime { get; set; }
/// <summary>
/// Get or Set sla missed reason
/// </summary>
public string SlaMissedReason { get; set; }
/// <summary>
/// Get or Set suggestion comment
/// </summary>
public string SuggestionComment { get; set; }
/// <summary>
/// Get or Set job complete response time
/// </summary>
public string JobCompleteResponseTime { get; set; }
/// <summary>
/// Get or Set extra column
/// </summary>
public string DefaultCol2 { get; set; }
/// <summary>
/// Get or Set extra column
/// </summary>
public string DefaultCol3 { get; set; }
/// <summary>
/// Get or Set estimated distance
/// </summary>
public string EstimatedDistance { get; set; }
/// <summary>
/// Get or Set owner contact number
/// </summary>
public string Owner_Contact_no { get; set; }
public bool? IsTripEnd { get; set; }
public string ChassisNo { get; set; }
//public double OdoMeter { get; set; } //commented existing parameter on 31-12-2020
public double OdometerReading { get; set; } //added new parameter on 31-12-2020
public double PreviousOdometerReading { get; set; }
public string VehicleType { get; set; }
//-added on 31-12-2020 start -----------------
public string VehicleWarranty { get; set; }
public string VehicleAMC { get; set; }
public string VehicleSalesDate { get; set; }
public string TicketSource { get; set; }
public string OwnerName { get; set; }
public string CustomerId { get; set; }
public string CustomerType { get; set; }
public Boolean? IsKam { get; set; }
// priya 15 oct 2022
public Boolean? IsTripStart { get; set; }
//--- added on 31-12-2020 end -------------------
}
public class TicketStatusModel
{
/// <summary>
/// Get or Set ticket id alias
/// </summary>
public string TicketIdAlias { get; set; }
public Boolean? IsTripStart { get; set; }
/// <summary>
/// Get or Set ticket status
/// </summary>
public int? TicketStatus { get; set; }
/// <summary>
/// Get or Set status
/// </summary>
public string Status { get; set; }
/* /// <summary>
/// Get or Set ticket id
/// </summary>
public string TicketId { get; set; }
public bool IsTripEnd { get; set; }
public string ChassisNo { get; set; }
public Boolean? IsTripStart { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string DeviceAlias { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string DealerCode { get; set; }
/// <summary>
/// Get or Set IMEI number
/// </summary>
public string Ieminumber { get; set; }
/// <summary>
/// Get or Set DB sync time
/// </summary>
public string DbSynLastTime { get; set; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or Set KAM Id / Customer Id
/// </summary>
public string KamUserId { get; set; }*/
}
/// <summary>
/// contains properties for open and close ticket sync details
/// </summary>
public class SyncModel
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public List<CustomerOpenTicketDetail> TicketOpenList { get; set; }
/// <summary>
/// Get or Set close ticket list
/// </summary>
public List<CustomerCloseTicketDetail> TicketCloseList { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string DeviceAlias { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string DealerCode { get; set; }
/// <summary>
/// Get or Set IMEI number
/// </summary>
public string Ieminumber { get; set; }
/// <summary>
/// Get or Set DB sync time
/// </summary>
public string DbSynLastTime { get; set; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or Set KAM Id / Customer Id
/// </summary>
public string KamUserId { get; set; }
/// <summary>
/// Get or Set KAM Id / Customer Id
/// </summary>
public string ticketId { get; set; }
public string mobileNumber { get; set; }
}
/// <summary>
/// contains properties for open and close ticket sync details
/// </summary>
public class DTCDataModel
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public string ControlUnit { get; set; }
/// <summary>
/// Get or Set close ticket list
/// </summary>
public string Description { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string FirstOccurrence { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string LastOccurrence { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string FaultTypeValue { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string PIDCode { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string Count { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string DTCCode { get; set; }
}
/// contains properties for open and close ticket sync details
/// </summary>
public class DTCRawDataModel
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public string chassisNo { get; set; }
/// <summary>
/// Get or Set close ticket list
/// </summary>
public string emissionNorms { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string segment { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string engineNo { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string model { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public int chassisid { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string dtccode { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string dtcStatus { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string description { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string occuranceCount { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string firstFailureTime { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string lastFailureTime { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string mainSoftware { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string packetDateTime { get; set; }
}
public class DTCRawDataModelWabco
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public string chassisNo { get; set; }
/// <summary>
/// Get or Set close ticket list
/// </summary>
public string emissionNorms { get; set; }
/// <summary>
/// Get or Set device alias
/// </summary>
public string segment { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string engineNo { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string model { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public int chassisid { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string deviceID { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string occuranceCount { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string spn { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string dtccode { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string dtcOccuranceDate { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string caseNumber { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string dtcStatus { get; set; }
/// <summary>
/// Get or Set dealer code
/// </summary>
public string packetDateTime { get; set; }
/// <summary>
/// Get or Set open ticket list
/// </summary>
public string description { get; set; }
}
public class DTCCodeMaster
{
/// <summary>
/// Get or Set ticket id
/// </summary>
public string DTCCode { get; set; }
/// <summary>
/// Get or Set description
/// </summary>
public string Description { get; set; }
}
public class TechModel
{
/// <summary>
/// Get or Set open ticket list
/// </summary>
public string TicketId { get; set; }
public string Tech_Number { get; set; }
public string Message { get; set; }
}
#endregion
}