You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.3 KiB
85 lines
2.3 KiB
using Newtonsoft.Json;
|
|
|
|
namespace DealerSelection.Api.Models;
|
|
|
|
public class WebEngageEventData
|
|
{
|
|
public WebEngageEventData(string bookingID, string bookingStatus, string bookingAmount, string bookingReceiptLink,string dealerFlag, string fullName, string phoneNumber,
|
|
string motorcycleName, string motorcycleCode, string location, string dealerName,
|
|
string dealerPhoneNumber,string bookingCompletionDate)
|
|
{
|
|
BookingID = bookingID;
|
|
BookingStatus = bookingStatus;
|
|
BookingAmount = bookingAmount;
|
|
BookingReceiptLink = bookingReceiptLink;
|
|
DealerFlag = dealerFlag;
|
|
FullName = fullName;
|
|
PhoneNumber = phoneNumber;
|
|
MotorcycleName = motorcycleName;
|
|
MotorcycleCode = motorcycleCode;
|
|
Location = location;
|
|
DealerName = dealerName;
|
|
DealerPhoneNumber = dealerPhoneNumber;
|
|
BookingCompletionDate= bookingCompletionDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
[JsonProperty("Booking ID")]
|
|
public string BookingID { get; }
|
|
|
|
[JsonProperty("Booking Status")]
|
|
public string BookingStatus { get; }
|
|
|
|
[JsonProperty("Booking Amount")]
|
|
public string BookingAmount { get; }
|
|
|
|
[JsonProperty("Booking Receipt Link")]
|
|
public string BookingReceiptLink { get; }
|
|
|
|
[JsonProperty("Dealer Flag")]
|
|
public string DealerFlag { get; }
|
|
|
|
[JsonProperty("Full Name")]
|
|
public string FullName { get; }
|
|
|
|
[JsonProperty("Phone Number")]
|
|
public string PhoneNumber { get; }
|
|
|
|
[JsonProperty("Motorcycle Name")]
|
|
public string MotorcycleName { get; }
|
|
|
|
[JsonProperty("Motorcycle Code")]
|
|
public string MotorcycleCode { get; }
|
|
|
|
[JsonProperty("Location")]
|
|
public string Location { get; }
|
|
|
|
[JsonProperty("Dealer Name")]
|
|
public string DealerName { get; }
|
|
|
|
[JsonProperty("Dealer Phone Number")]
|
|
public string DealerPhoneNumber { get; }
|
|
|
|
[JsonProperty("BookingCompletionDate")]
|
|
public string BookingCompletionDate { get; }
|
|
|
|
}
|
|
public class WebEngageEvent
|
|
{
|
|
public WebEngageEvent(string userId, string eventName, WebEngageEventData data)
|
|
{
|
|
UserId = userId;
|
|
EventName = eventName;
|
|
EventData = data;
|
|
}
|
|
[JsonProperty("userId")]
|
|
public string UserId { get; }
|
|
|
|
[JsonProperty("eventName")]
|
|
public string EventName { get; }
|
|
|
|
[JsonProperty("eventData")]
|
|
public WebEngageEventData EventData { get; }
|
|
}
|