Webiant Logo Webiant Logo
  1. No results found.

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

EventRequest.cs

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

namespace Nop.Plugin.Widgets.GoogleAnalytics.Api.Models;

[JsonObject]
[Serializable]
public class EventRequest
{
    /// 
    /// Required. Uniquely identifies a user instance of a web client
    /// 
    [JsonProperty("client_id")]
    public string ClientId { get; set; }

    /// 
    /// Optional. A unique identifier for a user. See User-ID for cross-platform analysis for more information on this identifier
    /// 
    [JsonProperty("user_id")]
    public string UserId { get; set; }

    /// 
    /// Optional. A Unix timestamp (in microseconds) for the time to associate with the event
    /// 
    [JsonProperty("timestamp_micros")]
    public long TimestampMicros { get; set; }

    /// 
    /// Required. An array of event items. Up to 25 events can be sent per request. See the events reference for all valid events
    /// 
    [JsonProperty("events")]
    public List Events { get; set; }

    /// 
    /// Gets the request method
    /// 
    [JsonIgnore]
    public string Method => HttpMethods.Post;
}