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.
70 lines
1.5 KiB
70 lines
1.5 KiB
using Newtonsoft.Json;
|
|
|
|
namespace DealerSelection.Api.Models;
|
|
|
|
public class WebEngageEventData
|
|
{
|
|
public WebEngageEventData( string phoneNumber)
|
|
{
|
|
|
|
PhoneNumber = phoneNumber;
|
|
|
|
}
|
|
|
|
|
|
[JsonProperty("Booking ID")]
|
|
public string BookingID { get; }
|
|
|
|
[JsonProperty("Booking Status")]
|
|
public string BookingStatus { get; }
|
|
|
|
[JsonProperty("Booking Amount")]
|
|
public string BookingAmount { 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("Booking Receipt Link")]
|
|
public string BookingReceiptLink { get; }
|
|
|
|
[JsonProperty("Landing page URL")]
|
|
public string LandingPageURL { 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; }
|
|
}
|