Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

TrackEventRequest.cs

using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;

namespace Nop.Plugin.Misc.Brevo.MarketingAutomation;

/// 
/// Represents request to track an event
/// 
public class TrackEventRequest : Request
{
    /// 
    /// Gets or sets the email address of the user
    /// 
    [JsonProperty(PropertyName = "email")]
    public string Email { get; set; }

    /// 
    /// Gets or sets the event name
    /// 
    [JsonProperty(PropertyName = "event")]
    public string EventName { get; set; }

    /// 
    /// Gets or sets the object that contents all custom fields. Keep in mind that those user properties will populate your database on the Marketing Automation platform to create rich scenarios
    /// 
    [JsonProperty(PropertyName = "properties")]
    public object Properties { get; set; }

    /// 
    /// Gets or sets the object that contents all additional data, it has three filed id of type string contain a unique number and data which contain information which which one can be send in smtp template
    /// 
    [JsonProperty(PropertyName = "eventdata")]
    public object EventData { get; set; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => "trackEvent";

    /// 
    /// Gets the request method
    /// 
    public override string Method => HttpMethods.Post;
}