280 lines
8.3 KiB
C#
280 lines
8.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace GODATA.Models.Notifications
|
|
{
|
|
/// <summary>
|
|
/// This class contain Notification model properties
|
|
/// </summary>
|
|
public class NotificationsModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set Ticket id
|
|
/// </summary>
|
|
public string TicketId { get; set; }
|
|
/// <summary>
|
|
/// Get or set Ticket Status
|
|
/// </summary>
|
|
public int TicketStatus { get; set; }
|
|
/// <summary>
|
|
/// Get or set Ticket Status Alias
|
|
/// </summary>
|
|
public string TickeStatusAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or set time of notification creation
|
|
/// </summary>
|
|
public string NotificationTime { get; set; }
|
|
/// <summary>
|
|
/// Get or set dealer Name
|
|
/// </summary>
|
|
public string DealerDealerName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Service Van id
|
|
/// </summary>
|
|
public string VanId { get; set; }
|
|
/// <summary>
|
|
/// Get or set Service Van registration no.
|
|
/// </summary>
|
|
public string VanRegistrationNumber { get; set; }
|
|
/// <summary>
|
|
/// Get or set EOS Team member name
|
|
/// </summary>
|
|
public string ServiceEngineerName { get; set; }
|
|
/// <summary>
|
|
/// Get or set Ticket Creation Time
|
|
/// </summary>
|
|
public string CreationTime { get; set; }
|
|
/// <summary>
|
|
/// Get or set Ticket creater name
|
|
/// </summary>
|
|
public string CreatedBy { get; set; }
|
|
/// <summary>
|
|
/// Get or set UTC minutes
|
|
/// </summary>
|
|
public int UtcMinute { get; set; }
|
|
/// <summary>
|
|
/// Get or set Security Token
|
|
/// </summary>
|
|
public object Token { get; set; }
|
|
/// <summary>
|
|
/// Get or set message
|
|
/// </summary>
|
|
public object Message { get; set; }
|
|
/// <summary>
|
|
/// Get or set login user id
|
|
/// </summary>
|
|
public object UserId { get; set; }
|
|
/// <summary>
|
|
/// Get or set notification id
|
|
/// </summary>
|
|
public int NotificationId { get; set; }
|
|
public string TicketIdAlias { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain Notification count properties
|
|
/// </summary>
|
|
public class NotificationDisplayModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set notification id
|
|
/// </summary>
|
|
public string Id { get; set; }
|
|
/// <summary>
|
|
/// Get or set key name Ticket Status
|
|
/// </summary>
|
|
public string KeyName { get; set; }
|
|
/// <summary>
|
|
/// Get or set total count of notification
|
|
/// </summary>
|
|
public int KeyValue { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket status id
|
|
/// </summary>
|
|
public int TicketStatus { get; set; }
|
|
/// <summary>
|
|
/// Get or set security token
|
|
/// </summary>
|
|
public object Token { get; set; }
|
|
/// <summary>
|
|
/// Get or set message
|
|
/// </summary>
|
|
public object Message { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// This class contain Remove Notification properties
|
|
/// </summary>
|
|
public class NotificationRemove
|
|
{
|
|
/// <summary>
|
|
/// Get or set ticket status id
|
|
/// </summary>
|
|
public object TicketStatus { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket id
|
|
/// </summary>
|
|
public object TicketId { get; set; }
|
|
/// <summary>
|
|
/// Get or set security token
|
|
/// </summary>
|
|
public object Token { get; set; }
|
|
/// <summary>
|
|
/// Get or set status
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
/// <summary>
|
|
/// Get or set message
|
|
/// </summary>
|
|
public object Message { get; set; }
|
|
}
|
|
|
|
#region dealer notifications
|
|
|
|
/// <summary>
|
|
/// This class contain Dealer Notification properties
|
|
/// </summary>
|
|
public class DealerNortificationModel
|
|
{
|
|
/// <summary>
|
|
/// Get or set user id
|
|
/// </summary>
|
|
public object UserId { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket id
|
|
/// </summary>
|
|
public string TicketId { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket status id
|
|
/// </summary>
|
|
public int TicketStatus { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket status alias
|
|
/// </summary>
|
|
public string TicketStatusAlias { get; set; }
|
|
/// <summary>
|
|
/// Get or set notification time
|
|
/// </summary>
|
|
public string NotificationTime { get; set; }
|
|
/// <summary>
|
|
/// Get or set utc minutes
|
|
/// </summary>
|
|
public int UtcMinute { get; set; }
|
|
/// <summary>
|
|
/// Get or set dealer name
|
|
/// </summary>
|
|
public string DealerDealerName { get; set; }
|
|
/// <summary>
|
|
/// Get or set service van id
|
|
/// </summary>
|
|
public string VanId { get; set; }
|
|
/// <summary>
|
|
/// Get or set service van registration no.
|
|
/// </summary>
|
|
public string VanRegistrationNumber { get; set; }
|
|
/// <summary>
|
|
/// Get or set service engineer name
|
|
/// </summary>
|
|
public string ServiceEngineerName { get; set; }
|
|
/// <summary>
|
|
/// Get or set creator id of ticket
|
|
/// </summary>
|
|
public string CreatedBy { get; set; }
|
|
/// <summary>
|
|
/// Get or set security token
|
|
/// </summary>
|
|
public object Token { get; set; }
|
|
/// <summary>
|
|
/// Get or set status
|
|
/// </summary>
|
|
public object Status { get; set; }
|
|
/// <summary>
|
|
/// Get or set message
|
|
/// </summary>
|
|
public object Message { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket assigned to(van/dealer)
|
|
/// </summary>
|
|
public string AssignedTo { get; set; }
|
|
/// <summary>
|
|
/// Get or set ticket creation time
|
|
/// </summary>
|
|
public string CreationTime { get; set; }
|
|
/// <summary>
|
|
/// Get or set notification id
|
|
/// </summary>
|
|
public int NotificationId { get; set; }
|
|
public string TicketIdAlias { get; set; }
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region KAM notifications
|
|
|
|
/// <summary>
|
|
/// KAM ticket notification model
|
|
/// </summary>
|
|
public class KamNotificationModel
|
|
{
|
|
public string KamTicketId { get; set; }
|
|
public string NotificationId { get; set; }
|
|
public string KamName { get; set; }
|
|
public string VehicleRegNo { get; set; }
|
|
public string NotificationTime { get; set; }
|
|
public string MobileNo1 { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// KAM ticket notification input model
|
|
/// </summary>
|
|
public class KamNotificationInputModel
|
|
{
|
|
public string Token { get; set; }
|
|
public int UtcMinute { get; set; }
|
|
public string NotificationId { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// KAM ticket notification output model
|
|
/// </summary>
|
|
public class KamNotificationOutputModel
|
|
{
|
|
public string Message { get; set; }
|
|
public string Status { get; set; }
|
|
public List<KamNotificationModel> NotificationList { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// KAM decline ticket model
|
|
/// </summary>
|
|
public class DenyKamTicket
|
|
{
|
|
public object TicketType { get; set; }
|
|
public int KamTicketId { get; set; }
|
|
public object Token { get; set; }
|
|
public string Status { get; set; }
|
|
public string Message { get; set; }
|
|
public object UserId { get; set; }
|
|
public object KamUserId { get; set; }
|
|
public string FromDate { get; set; }
|
|
public string ToDate { get; set; }
|
|
public object Limit { get; set; }
|
|
public object OffSet { get; set; }
|
|
public object TicketList { get; set; }
|
|
public object ConsolidatedReportModelList { get; set; }
|
|
public object TicketCount { get; set; }
|
|
public object Condition { get; set; }
|
|
public object UtcMinute { get; set; }
|
|
public object VehicleType { get; set; }
|
|
public object Organization { get; set; }
|
|
}
|
|
|
|
#endregion
|
|
} |