531 lines
14 KiB
C#
531 lines
14 KiB
C#
namespace VECV_WebApi.Models.ServiceEngineer
|
|
{
|
|
#region Namespaces
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
#endregion
|
|
|
|
#region Model Classes
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration request model
|
|
/// </summary>
|
|
public class ServiceEngineerRegistrationRequestModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set registration Number
|
|
/// </summary>
|
|
public string RegistrationNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public Int64? DeviceAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device pin
|
|
/// </summary>
|
|
public string DevicePin { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set imei no
|
|
/// </summary>
|
|
public string Imei { get; set; }
|
|
|
|
/// <summary>
|
|
/// get or set device GCm id
|
|
/// </summary>
|
|
public string DeviceGcmId { get; set; }
|
|
|
|
|
|
// get or set device GCm id
|
|
/// </summary>
|
|
public string DeviceId { get; set; }
|
|
|
|
public string MobileInfo { get; set; }
|
|
public string AppVersion { get; set; }
|
|
|
|
public string licenseNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// get or set device PushNotificationBit
|
|
/// </summary>
|
|
public int? PushNotificationBit { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration response model
|
|
/// </summary>
|
|
public class ServiceEngineerRegistrationResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public Int64? DeviceAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string Massage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration response model
|
|
/// </summary>
|
|
public class ServiceEngineerRegistrationConfirmationResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public string ContactNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string DealerCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string DealerName { get; set; }
|
|
|
|
public string State { get; set; }
|
|
public string City { get; set; }
|
|
public string LicenseKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string Massage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration response model
|
|
/// </summary>
|
|
public class RegistrationResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public string DeviceAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string Massage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
public string UserId { get; set; }
|
|
public string UserName { get; set; }
|
|
public string City { get; set; }
|
|
public string State { get; set; }
|
|
public string Contact1 { get; set; }
|
|
public string Contact2 { get; set; }
|
|
public string Address { get; set; }
|
|
public string Email { get; set; }
|
|
public string UserType { get; set; }
|
|
public string IsPasswordExist { get; set; }
|
|
|
|
public string OTP { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// contains properties for Van-Details
|
|
/// </summary>
|
|
public class VanModel
|
|
{
|
|
private string _van_start_working_hours = "";
|
|
private string _van_end_working_hours = "";
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer id
|
|
/// </summary>
|
|
public string DealerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set deale rorganization id
|
|
/// </summary>
|
|
public Int32? DealerOrganizationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer name
|
|
/// </summary>
|
|
public string DealerDealerName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer city
|
|
/// </summary>
|
|
public string DealerCity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer state
|
|
/// </summary>
|
|
public string DealerState { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set latitude
|
|
/// </summary>
|
|
public string DealerDealerDefaultLattitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set longitude
|
|
/// </summary>
|
|
public string DealerDealerDefaultLongitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van id
|
|
/// </summary>
|
|
public string VanId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van alias
|
|
/// </summary>
|
|
public string VanAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van latitude
|
|
/// </summary>
|
|
public string VanVanDefaultLattitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van longitude
|
|
/// </summary>
|
|
public string VanVanDefaultLongitude { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van city
|
|
/// </summary>
|
|
public string VanCity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van state
|
|
/// </summary>
|
|
public string VanState { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van model
|
|
/// </summary>
|
|
public string VanVanModel { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van registration number
|
|
/// </summary>
|
|
public string VanRegistrationNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van registered as
|
|
/// </summary>
|
|
public string VanVanRegisteredAs { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization name
|
|
/// </summary>
|
|
public string OrganizationName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization alias
|
|
/// </summary>
|
|
public string OrganizationOrganizationAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization city
|
|
/// </summary>
|
|
public string OrganizationOrganizationCity { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization state
|
|
/// </summary>
|
|
public string OrganizationOrganizationState { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization country
|
|
/// </summary>
|
|
public string OrganizationOrganizationCountry { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization description
|
|
/// </summary>
|
|
public string OrganizationOrganizationDescription { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization path
|
|
/// </summary>
|
|
public string OrganizationOrganizationPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization depth
|
|
/// </summary>
|
|
public string OrganizationOrganizationDepth { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization color
|
|
/// </summary>
|
|
public string OrganizationOrganizationColor { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set organization region
|
|
/// </summary>
|
|
public string OrganizationOrganizationRegion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer id
|
|
/// </summary>
|
|
public string ServiceEngineerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer name
|
|
/// </summary>
|
|
public string ServiceEngineerName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer alias
|
|
/// </summary>
|
|
public string ServiceEngineerAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer IMEI number
|
|
/// </summary>
|
|
public string ServiceEngineerImeiNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer contact number
|
|
/// </summary>
|
|
public string ServiceEngineerContactNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer app license key
|
|
/// </summary>
|
|
public string ServiceEngineerApplicationLicenseKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer mobile application blocked
|
|
/// </summary>
|
|
public Boolean? ServiceEngineerMobileApplicationBlocked { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer device alias
|
|
/// </summary>
|
|
public Int64? ServiceEngineerDeviceAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer PIN password
|
|
/// </summary>
|
|
public string ServiceEngineerPinPassword { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer van id
|
|
/// </summary>
|
|
public string ServiceEngineerVanVanId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set service engineer van id
|
|
/// </summary>
|
|
public string ServiceEngineerVanServiceEngineerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set battery status
|
|
/// </summary>
|
|
public string BatteryStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set GPS status
|
|
/// </summary>
|
|
public string GpsStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set Is charging
|
|
/// </summary>
|
|
public string IsCharging { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set Is connected
|
|
/// </summary>
|
|
public bool IsConnected { 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 user id
|
|
/// </summary>
|
|
public Int64 UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set utc minute
|
|
/// </summary>
|
|
public int UtcMinute { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer name
|
|
/// </summary>
|
|
public string DealerNameParam { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van city
|
|
/// </summary>
|
|
public string VanCityParam { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set van state
|
|
/// </summary>
|
|
public string VanStateParam { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer city
|
|
/// </summary>
|
|
public string DealerCityParam { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or Set dealer state
|
|
/// </summary>
|
|
public string DealerStateParam { get; set; }
|
|
|
|
public string current_latitude { get; set; }
|
|
public string current_longitude { get; set; }
|
|
|
|
public string van_start_working_hours { get { return _van_start_working_hours; } set { _van_start_working_hours = value; } }
|
|
public string van_end_working_hours { get { return _van_end_working_hours; } set { _van_end_working_hours = value; } }
|
|
|
|
public string van_working_hours
|
|
{
|
|
get
|
|
{
|
|
return _van_start_working_hours + " to " + _van_end_working_hours;
|
|
}
|
|
}
|
|
|
|
public string emails { get; set; }
|
|
|
|
public string fuel_type { get; set; }
|
|
|
|
public string mobile_number { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration response model
|
|
/// </summary>
|
|
public class MechanicServiceEngineerLoginResponseModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public string ContactNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string DealerCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string DealerName { get; set; }
|
|
|
|
public string State { get; set; }
|
|
public string City { get; set; }
|
|
public string LicenseKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set token
|
|
/// </summary>
|
|
public string Token { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Get or set Message
|
|
/// </summary>
|
|
public string Massage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set Status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set device alias
|
|
/// </summary>
|
|
public string DeviceAlias { get; set; }
|
|
|
|
/// <summary>
|
|
/// Get or set IMEI Number
|
|
/// </summary>
|
|
public string IMEINumber { get; set; }
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain service engineer registration request model for mechanic app
|
|
/// </summary>
|
|
public class MechanicServiceEngineerLoginRequestModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set userName (to Test git commits)
|
|
/// </summary>
|
|
public string userName { get; set; }
|
|
}
|
|
#endregion
|
|
}
|
|
|