#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
///
/// contains Open ticket sync properties
///
public class SyncOpenModel
{
///
/// Get or Set open ticket list
///
public List TicketOpenList { get; set; }
///
/// Get or Set open ticket activity list
///
public List TicketActivityOpenList { get; set; }
///
/// Get or Set device alias
///
public string DeviceAlias { get; set; }
///
/// Get or Set last DB sync time
///
public DateTime? DbSynLastTime { get; set; }
///
/// Get or Set security token
///
public string Token { get; set; }
///
/// Get or Set status
///
public string Status { get; set; }
///
/// Get or Set message
///
public string Message { get; set; }
}
///
/// contains Close ticket sync properties
///
public class SyncCloseModel
{
///
/// Get or Set close ticket list
///
public List TicketCloseList { get; set; }
///
/// Get or Set close ticket activity list
///
public List TicketActivityCloseList { get; set; }
///
/// Get or Set device alias
///
public string DeviceAlias { get; set; }
///
/// Get or Set sync time in DB
///
public DateTime? DbSynLastTime { get; set; }
///
/// Get or Set security token
///
public string Token { get; set; }
///
/// Get or Set status
///
public string Status { get; set; }
///
/// Get or Set message
///
public string Message { get; set; }
///
/// Get or Set UTC minute
///
public int UtcMinute { get; set; }
}
///
/// contains Open ticket activity properties
///
public class TicketActivityOpenModel
{
///
/// Get or Set ticket id
///
public string TicketId { get; set; }
///
/// Get or Set id
///
public Int64? Id { get; set; }
///
/// Get or Set activity created by
///
public string ActivityTicketsOpenCreatedBy { get; set; }
///
/// Get or Set activity creation time
///
public string ActivityTicketsOpenCreationTime { get; set; }
///
/// Get or Set remarks
///
public string Remarks { get; set; }
///
/// Get or Set activity status
///
public int? TicketActivityStatus { get; set; }
}
///
/// contains properties for Close ticket activity
///
public class TicketActivityCloseModel
{
///
/// Get or Set ticket id
///
public string TicketId { get; set; }
///
/// Get or Set id
///
public Int64? Id { get; set; }
///
/// Get or Set activity created by
///
public string ActivityTicketsOpenCreatedBy { get; set; }
///
/// Get or Set activity creation date
///
public string ActivityTicketsOpenCreationTime { get; set; }
///
/// Get or Set remarks
///
public string Remarks { get; set; }
///
/// Get or Set activity status
///
public int? TicketActivityStatus { get; set; }
}
///
/// contains properties for open ticket details
///
public class CustomerOpenTicketDetail
{
///
/// Get or Set ticket id
///
public string TicketId { get; set; }
///
/// Get or Set ticket id alias
///
public string TicketIdAlias { get; set; }
///
/// Get or Set description
///
public string Description { get; set; }
///
/// Get or Set assigned to
///
public string AssignedTo { get; set; }
///
/// Get or Set reported via
///
public string ReportedVia { get; set; }
///
/// Get or Set ticket status
///
public int? TicketStatus { get; set; }
///
/// Get or Set priority
///
public int? Priority { get; set; }
///
/// Get or Set customer score
///
public string CustomerScore { get; set; }
///
/// Get or Set created by
///
public string CreatedBy { get; set; }
///
/// Get or Set creation time
///
public string CreationTime { get; set; }
///
/// Get or Set last odified by
///
public string LastModifiedBy { get; set; }
///
/// Get or Set last modified time
///
public string LastModifiedTime { get; set; }
///
/// Get or Set breakdown location
///
public string BreakdownLocation { get; set; }
///
/// Get or Set breakdown longitude
///
public string BreakdownLongitude { get; set; }
///
/// Get or Set breakdown latitude
///
public string BreakdownLattitude { get; set; }
///
/// Get or Set assigned to user id
///
public string AssignedToUserId { get; set; }
///
/// Get or Set user latitude
///
public string AssignedToUserLattitude { get; set; }
///
/// Get or Set user longitude
///
public string AssignedToUserLongitude { get; set; }
///
/// Get or Set IsDeclined
///
public Boolean? Isdeclined { get; set; }
///
/// Get or Set estimated time for job completion
///
public int? EstimatedTimeForJobCompletion { get; set; }
///
/// Get or Set ticket life cycle time
///
public int? TotalTicketLifecycleTimeSla { get; set; }
///
/// Get or Set estimated time for job completion
///
public string EstimatedTimeForJobCompletionSubmitTime { get; set; }
///
/// Get or Set vehicle registration number
///
public string VehicleRegisterNumber { get; set; }
///
/// Get or Set breakdown landmark
///
public string BreakdownLocationLandmark { get; set; }
///
/// Get or Set route id
///
public int? RouteId { get; set; }
///
/// Get or Set customer contact number
///
public string CustomerContactNo { get; set; }
///
/// Get or Set repair cost
///
public string RepairCost { get; set; }
///
/// Get or Set default sla time
///
public int? DefaultSlaTime { get; set; }
///
/// Get or Set sla missed reason
///
public string SlaMissedReason { get; set; }
///
/// Get or Set suggestion comment
///
public string SuggestionComment { get; set; }
///
/// Get or Set job completed response time
///
public string JobCompleteResponseTime { get; set; }
///
/// Get or Set extra column
///
public string DefaultCol2 { get; set; }
///
/// Get or Set extra column
///
public string DefaultCol3 { get; set; }
///
/// Get or Set estimated dustance
///
public string EstimatedDistance { get; set; }
///
/// Get or Set owner contact no
///
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 -------------------
}
///
/// contains properties for customer close tickets
///
public class CustomerCloseTicketDetail
{
///
/// get or set ticket id
///
public string TicketId { get; set; }
///
/// Get or Set ticket id alias
///
public string TicketIdAlias { get; set; }
///
/// Get or Set decription
///
public string Description { get; set; }
///
/// Get or Set assigned to
///
public string AssignedTo { get; set; }
///
/// Get or Set rported via
///
public string ReportedVia { get; set; }
///
/// Get or Set ticket status
///
public int? TicketStatus { get; set; }
///
/// Get or Set priority
///
public int? Priority { get; set; }
///
/// Get or Set customer source
///
public string CustomerScore { get; set; }
///
/// Get or Set created by
///
public string CreatedBy { get; set; }
///
/// Get or Set creation time
///
public string CreationTime { get; set; }
///
/// Get or Set last time by
///
public string LastModifiedBy { get; set; }
///
/// Get or Set last modified time
///
public string LastModifiedTime { get; set; }
///
/// Get or Set breakdown location
///
public string BreakdownLocation { get; set; }
///
/// Get or Set breakdown longitude
///
public string BreakdownLongitude { get; set; }
///
/// Get or Set breakdown latitude
///
public string BreakdownLattitude { get; set; }
///
/// Get or Set assigned to user id
///
public string AssignedToUserId { get; set; }
///
/// Get or Set assigned to user latitude
///
public string AssignedToUserLattitude { get; set; }
///
/// Get or Set assigned to user longitude
///
public string AssignedToUserLongitude { get; set; }
///
/// Get or Set IsDeclined bit
///
public Boolean? Isdeclined { get; set; }
///
/// Get or Set estimated time for job completion
///
public int? EstimatedTimeForJobCompletion { get; set; }
///
/// Get or Set ticket life cycle time
///
public int? TotalTicketLifecycleTimeSla { get; set; }
///
/// Get or Set estimated time for job completion submit time
///
public string EstimatedTimeForJobCompletionSubmitTime { get; set; }
///
/// Get or Set vehicle registration number
///
public string VehicleRegisterNumber { get; set; }
///
/// Get or Set breakdown landmark
///
public string BreakdownLocationLandmark { get; set; }
///
/// Get or Set route id
///
public int? RouteId { get; set; }
///
/// Get or Set customer contact number
///
public string CustomerContactNo { get; set; }
///
/// Get or Set repair cost
///
public string RepairCost { get; set; }
///
/// Get or Set default sla time
///
public int? DefaultSlaTime { get; set; }
///
/// Get or Set sla missed reason
///
public string SlaMissedReason { get; set; }
///
/// Get or Set suggestion comment
///
public string SuggestionComment { get; set; }
///
/// Get or Set job complete response time
///
public string JobCompleteResponseTime { get; set; }
///
/// Get or Set extra column
///
public string DefaultCol2 { get; set; }
///
/// Get or Set extra column
///
public string DefaultCol3 { get; set; }
///
/// Get or Set estimated distance
///
public string EstimatedDistance { get; set; }
///
/// Get or Set owner contact number
///
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
{
///
/// Get or Set ticket id alias
///
public string TicketIdAlias { get; set; }
public Boolean? IsTripStart { get; set; }
///
/// Get or Set ticket status
///
public int? TicketStatus { get; set; }
///
/// Get or Set status
///
public string Status { get; set; }
/* ///
/// Get or Set ticket id
///
public string TicketId { get; set; }
public bool IsTripEnd { get; set; }
public string ChassisNo { get; set; }
public Boolean? IsTripStart { get; set; }
///
/// Get or Set device alias
///
public string DeviceAlias { get; set; }
///
/// Get or Set dealer code
///
public string DealerCode { get; set; }
///
/// Get or Set IMEI number
///
public string Ieminumber { get; set; }
///
/// Get or Set DB sync time
///
public string DbSynLastTime { get; set; }
///
/// Get or Set security token
///
public string Token { get; set; }
///
/// Get or Set status
///
public string Status { get; set; }
///
/// Get or Set message
///
public string Message { get; set; }
///
/// Get or Set KAM Id / Customer Id
///
public string KamUserId { get; set; }*/
}
///
/// contains properties for open and close ticket sync details
///
public class SyncModel
{
///
/// Get or Set open ticket list
///
public List TicketOpenList { get; set; }
///
/// Get or Set close ticket list
///
public List TicketCloseList { get; set; }
///
/// Get or Set device alias
///
public string DeviceAlias { get; set; }
///
/// Get or Set dealer code
///
public string DealerCode { get; set; }
///
/// Get or Set IMEI number
///
public string Ieminumber { get; set; }
///
/// Get or Set DB sync time
///
public string DbSynLastTime { get; set; }
///
/// Get or Set security token
///
public string Token { get; set; }
///
/// Get or Set status
///
public string Status { get; set; }
///
/// Get or Set message
///
public string Message { get; set; }
///
/// Get or Set KAM Id / Customer Id
///
public string KamUserId { get; set; }
///
/// Get or Set KAM Id / Customer Id
///
public string ticketId { get; set; }
public string mobileNumber { get; set; }
}
///
/// contains properties for open and close ticket sync details
///
public class DTCDataModel
{
///
/// Get or Set open ticket list
///
public string ControlUnit { get; set; }
///
/// Get or Set close ticket list
///
public string Description { get; set; }
///
/// Get or Set device alias
///
public string Status { get; set; }
///
/// Get or Set dealer code
///
public string FirstOccurrence { get; set; }
///
/// Get or Set dealer code
///
public string LastOccurrence { get; set; }
///
/// Get or Set dealer code
///
public string FaultTypeValue { get; set; }
///
/// Get or Set dealer code
///
public string PIDCode { get; set; }
///
/// Get or Set dealer code
///
public string Count { get; set; }
///
/// Get or Set dealer code
///
public string DTCCode { get; set; }
}
/// contains properties for open and close ticket sync details
///
public class DTCRawDataModel
{
///
/// Get or Set open ticket list
///
public string chassisNo { get; set; }
///
/// Get or Set close ticket list
///
public string emissionNorms { get; set; }
///
/// Get or Set device alias
///
public string segment { get; set; }
///
/// Get or Set dealer code
///
public string engineNo { get; set; }
///
/// Get or Set dealer code
///
public string model { get; set; }
///
/// Get or Set dealer code
///
public int chassisid { get; set; }
///
/// Get or Set dealer code
///
public string dtccode { get; set; }
///
/// Get or Set dealer code
///
public string dtcStatus { get; set; }
///
/// Get or Set dealer code
///
public string description { get; set; }
///
/// Get or Set dealer code
///
public string occuranceCount { get; set; }
///
/// Get or Set dealer code
///
public string firstFailureTime { get; set; }
///
/// Get or Set dealer code
///
public string lastFailureTime { get; set; }
///
/// Get or Set dealer code
///
public string mainSoftware { get; set; }
///
/// Get or Set dealer code
///
public string packetDateTime { get; set; }
}
public class DTCRawDataModelWabco
{
///
/// Get or Set open ticket list
///
public string chassisNo { get; set; }
///
/// Get or Set close ticket list
///
public string emissionNorms { get; set; }
///
/// Get or Set device alias
///
public string segment { get; set; }
///
/// Get or Set dealer code
///
public string engineNo { get; set; }
///
/// Get or Set dealer code
///
public string model { get; set; }
///
/// Get or Set dealer code
///
public int chassisid { get; set; }
///
/// Get or Set dealer code
///
public string deviceID { get; set; }
///
/// Get or Set dealer code
///
public string occuranceCount { get; set; }
///
/// Get or Set dealer code
///
public string spn { get; set; }
///
/// Get or Set dealer code
///
public string dtccode { get; set; }
///
/// Get or Set dealer code
///
public string dtcOccuranceDate { get; set; }
///
/// Get or Set dealer code
///
public string caseNumber { get; set; }
///
/// Get or Set dealer code
///
public string dtcStatus { get; set; }
///
/// Get or Set dealer code
///
public string packetDateTime { get; set; }
///
/// Get or Set open ticket list
///
public string description { get; set; }
}
public class DTCCodeMaster
{
///
/// Get or Set ticket id
///
public string DTCCode { get; set; }
///
/// Get or Set description
///
public string Description { get; set; }
}
public class TechModel
{
///
/// Get or Set open ticket list
///
public string TicketId { get; set; }
public string Tech_Number { get; set; }
public string Message { get; set; }
}
#endregion
}