684 lines
19 KiB
C#
684 lines
19 KiB
C#
#region Namespaces
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Xml.Serialization;
|
|
|
|
#endregion
|
|
|
|
namespace VECV_WebApi.Models.EmailServices
|
|
{
|
|
#region Model Classes
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class StateModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set state id
|
|
/// </summary>
|
|
public string StateId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set state alias
|
|
/// </summary>
|
|
public string StateAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or Set state id param
|
|
/// </summary>
|
|
public string StateIdParam { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class CityModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set State Id
|
|
/// </summary>
|
|
public string StateId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set state alias
|
|
/// </summary>
|
|
public string StateAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or Set city id
|
|
/// </summary>
|
|
public string CityId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set city name
|
|
/// </summary>
|
|
public string CityName { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class CHASSIS_SRCH_Model
|
|
{
|
|
public string ChassisNo { get; set; }
|
|
|
|
public string ChassisSearch { get; set; }
|
|
public string VehRegNo { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
public string VehicleType { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class Engine_SRCH_Model
|
|
{
|
|
public string EngineNo { get; set; }
|
|
public string ChassisNo { get; set; }
|
|
public string EngineSearch { get; set; }
|
|
public string VehRegNo { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
public string VehicleType { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class CHASSIS_ODOMETER_Model
|
|
{
|
|
public string ChassisNo { get; set; }
|
|
|
|
public string TicketID { get; set; }
|
|
public string TicketIdAlias { get; set; }
|
|
public string OdoMeterReading { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
public string Message1 { get; set; }
|
|
|
|
public string VehicleType { get; set; }
|
|
|
|
public string Status { get; set; }
|
|
|
|
public string CSRF_Token { get; set; }
|
|
public string CookieVal1 { get; set; }
|
|
public string CookieVal2 { get; set; }
|
|
public string CookieVal3 { get; set; }
|
|
|
|
public string[] CookiesName { get; set; }
|
|
public string[] CookiesValues { get; set; }
|
|
public List<TEMP_CHASSIS_ODOMETER_Model> d { get; set; }
|
|
|
|
}
|
|
|
|
public class TEMP_CHASSIS_ODOMETER_Model
|
|
{
|
|
|
|
public string Message { get; set; }
|
|
public string Status { get; set; }
|
|
public string TicketId { get; set; }
|
|
public string Vhvin { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class RegionModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set region name
|
|
/// </summary>
|
|
public string RegionName { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class OrgganizationModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set id
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
/// <summary>
|
|
/// Get or Set organization name
|
|
/// </summary>
|
|
public string OrganizationName { get; set; }
|
|
/// <summary>
|
|
/// Get or Set alias
|
|
/// </summary>
|
|
public string Alias { get; set; }
|
|
/// <summary>
|
|
/// Get or Set city
|
|
/// </summary>
|
|
public string City { get; set; }
|
|
/// <summary>
|
|
/// Get or Set state
|
|
/// </summary>
|
|
public string State { get; set; }
|
|
/// <summary>
|
|
/// Get or Set country
|
|
/// </summary>
|
|
public string Country { get; set; }
|
|
/// <summary>
|
|
/// Get or Set decription
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
/// <summary>
|
|
/// Get or Set path
|
|
/// </summary>
|
|
public string Path { get; set; }
|
|
/// <summary>
|
|
/// Get or Set depth
|
|
/// </summary>
|
|
public string Depth { get; set; }
|
|
/// <summary>
|
|
/// Get or Set color
|
|
/// </summary>
|
|
public string Color { get; set; }
|
|
/// <summary>
|
|
/// Get or Set region
|
|
/// </summary>
|
|
public string Region { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set parent
|
|
/// </summary>
|
|
public string Parent { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class TimeZoneModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set time zone id
|
|
/// </summary>
|
|
public Int64 TimeZoneId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set timezone name
|
|
/// </summary>
|
|
public string TimeZoneName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set utc minute
|
|
/// </summary>
|
|
public double? UtcMinute { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set display id
|
|
/// </summary>
|
|
public string DisplayId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of Vehicle Type details.
|
|
/// </summary>
|
|
public class VehicleTypeModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set vehicle type id
|
|
/// </summary>
|
|
public string VehicleTypeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set vehicle type name
|
|
/// </summary>
|
|
public string VehicleTypeName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set vehicle type tagging
|
|
/// </summary>
|
|
public string VehicleTypeTagging { 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 operation
|
|
/// </summary>
|
|
public string Operation { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set isDeleted bit
|
|
/// </summary>
|
|
public Boolean IsDeleted { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set isDeleted bit
|
|
/// </summary>
|
|
public string VehicleRegistrationNumber { get; set; }
|
|
|
|
|
|
public string udanVehicleProductId { get; set; }
|
|
|
|
|
|
public string udanVehicleProductName { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class SendNotificationModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set device GCM id
|
|
/// </summary>
|
|
public string DeviceGcmId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set device FCM id
|
|
/// </summary>
|
|
public string DeviceFcmId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set google app id
|
|
/// </summary>
|
|
public string GoogleAppID { get; set; }
|
|
/// <summary>
|
|
/// Get or Set sender id
|
|
/// </summary>
|
|
public string SenderId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set notification code
|
|
/// </summary>
|
|
public string NotificationCode { get; set; }
|
|
/// <summary>
|
|
/// Get or Set notification message
|
|
/// </summary>
|
|
public string NotificationMessage { get; set; }
|
|
/// <summary>
|
|
/// Get or Set ticket id
|
|
/// </summary>
|
|
public string TicketId { get; set; }
|
|
public string PrevTicketStatus { get; set; }
|
|
public string TicketStatus { get; set; }
|
|
|
|
public string title { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class ReasonsModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or Set reason name
|
|
/// </summary>
|
|
public string ReasonName { get; set; }
|
|
/// <summary>
|
|
/// Get or Set reason alias
|
|
/// </summary>
|
|
public string ReasonAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or Set type id
|
|
/// </summary>
|
|
public string TypeId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
/// <summary>
|
|
/// Get or Set status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
/// <summary>
|
|
/// Get or Set isDeleted bit
|
|
/// </summary>
|
|
public Boolean? IsDeleted { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class EstimateCostModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or Set cost range
|
|
/// </summary>
|
|
public string CostRange { get; set; }
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class DealerModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set dealer id
|
|
/// </summary>
|
|
public string DealerId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer organization id
|
|
/// </summary>
|
|
public int? DealerOrganizationId { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer name
|
|
/// </summary>
|
|
public string DealerDealerName { get; set; }
|
|
/// <summary>
|
|
/// Get or Set city
|
|
/// </summary>
|
|
public string DealerCity { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer state
|
|
/// </summary>
|
|
public string DealerState { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer latitude
|
|
/// </summary>
|
|
public string DealerDealerDefaultLattitude { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer longitude
|
|
/// </summary>
|
|
public string DealerDealerDefaultLongitude { get; set; }
|
|
/// <summary>
|
|
/// Get or Set dealer contact number
|
|
/// </summary>
|
|
public string DealerContactNo { get; set; }
|
|
/// <summary>
|
|
/// Get or Set delaer contact number 2
|
|
/// </summary>
|
|
public string DealerContactNo2 { get; set; }
|
|
/// <summary>
|
|
/// Get or Set status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
/// <summary>
|
|
/// Get or Set isDeleted bit
|
|
/// </summary>
|
|
public bool? IsDeleted { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
|
|
public string current_latitude { get; set; }
|
|
public string current_longitude { get; set; }
|
|
/// Get or Set dealer contact number
|
|
/// </summary>
|
|
public string VanContactNo { get; set; }
|
|
|
|
public string FuelType { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// this class contain properties of state details.
|
|
/// </summary>
|
|
public class SlaModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set id
|
|
/// </summary>
|
|
public Int64? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or Set sla time
|
|
/// </summary>
|
|
public int? SlaTime { 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>
|
|
/// This class contain language properties
|
|
/// </summary>
|
|
public class LanguageModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set Id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or set Language Name
|
|
/// </summary>
|
|
public string LanguageName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Language Alias
|
|
/// </summary>
|
|
public string LanguageAlias { get; set; }
|
|
}
|
|
|
|
//----------------------------- added on 25-11-2020 (start) -------------------------------------
|
|
|
|
/// <summary>
|
|
/// This class contain closed ticket reason properties
|
|
/// </summary>
|
|
public class ClosedTicketReason
|
|
{
|
|
/// <summary>
|
|
/// Get or set Warrenty id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or set Warrenty name
|
|
/// </summary>
|
|
public string ReasonName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Warrenty alias
|
|
/// </summary>
|
|
public string ReasonAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or set Warrenty type id
|
|
/// </summary>
|
|
public string TypeId { get; set; }
|
|
/// <summary>
|
|
/// Get or set Warrenty type alias
|
|
/// </summary>
|
|
public string TypeAlias { get; set; }
|
|
}
|
|
|
|
//----------------------------- added on 25-11-2020 (end) -------------------------------------
|
|
|
|
|
|
/// <summary>
|
|
/// This class contain Toll Free No Source properties
|
|
/// </summary>
|
|
public class TollFreeNoSourceModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set Id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or set Reason Name
|
|
/// </summary>
|
|
public string ReasonName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Reason Alias
|
|
/// </summary>
|
|
public string ReasonAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or set Type Id
|
|
/// </summary>
|
|
public string TypeId { get; set; }
|
|
/// <summary>
|
|
/// Get or set Type Alias
|
|
/// </summary>
|
|
public string TypeAlias { get; set; }
|
|
}
|
|
|
|
public class NatureOfProblemModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set Id
|
|
/// </summary>
|
|
public int? Id { get; set; }
|
|
/// <summary>
|
|
/// Get or set Reason Name
|
|
/// </summary>
|
|
public string ReasonName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Reason Alias
|
|
/// </summary>
|
|
public string ReasonAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or set Type Id
|
|
/// </summary>
|
|
public string TypeId { get; set; }
|
|
/// <summary>
|
|
/// Get or set Type Alias
|
|
/// </summary>
|
|
public string TypeAlias { get; set; }
|
|
}
|
|
|
|
|
|
public class AppModel
|
|
{
|
|
/// <summary>
|
|
/// Get or Set security token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
/// <summary>
|
|
/// Get or Set message
|
|
/// </summary>
|
|
public string Message { get; set; }
|
|
/// <summary>
|
|
/// Get or Set status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
public string AppCode { get; set; }
|
|
|
|
public string AppName { get; set; }
|
|
|
|
public string AppVersion { get; set; }
|
|
|
|
public DateTime? ModifiedDate { get; set; }
|
|
}
|
|
public class EngineDetailModel
|
|
{
|
|
public string creation_time { get; set; }
|
|
public string isdeleted { get; set; }
|
|
public string serial_no { get; set; }
|
|
public string vehiclenumber{ get; set; }
|
|
public string regno{ get; set; }
|
|
public string engine_class{ get; set; }
|
|
public string chassis { get; set; }
|
|
public string engine_number { get; set; }
|
|
public string vehiclemanufacturername { get; set; }
|
|
public string model { get; set; }
|
|
public string vehiclecolour { get; set; }
|
|
public string type { get; set; }
|
|
public string owner_name { get; set; }
|
|
public string mobilenumber { get; set; }
|
|
public string status { get; set; }
|
|
public string statusason { get; set; }
|
|
}
|
|
|
|
#endregion
|
|
[XmlRoot(ElementName = "field", Namespace = "http://ns.adobe.com/xfdf/")]
|
|
public class Field
|
|
{
|
|
[XmlElement(ElementName = "value", Namespace = "http://ns.adobe.com/xfdf/")]
|
|
public string Value { get; set; }
|
|
[XmlAttribute(AttributeName = "name")]
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
[XmlRoot(ElementName = "fields", Namespace = "http://ns.adobe.com/xfdf/")]
|
|
public class Fields
|
|
{
|
|
[XmlElement(ElementName = "field", Namespace = "http://ns.adobe.com/xfdf/")]
|
|
public List<Field> Field { get; set; }
|
|
}
|
|
|
|
} |