Mini Kabibi Habibi

Current Path : C:/Program Files/McAfee/WebAdvisor/telemetry/serializers/
Upload File :
Current File : C:/Program Files/McAfee/WebAdvisor/telemetry/serializers/productupselltoast.js

var ProductUpsellToast = function(){
    this.elements = {};
    this.elements["category"] = "ProductUpsellToast";
    this.elements["action_type"] = "UNKNOWN";
    this.elements["browser"] = "UNKNOWN";
    this.elements["sequence"] = "UNKNOWN";
    this.elements["product"] = "UNKNOWN";
    this.elements["variation"] = "UKNOWN";
    this.elements["trigger"] = "UNKNOWN";
    this.elements["url"] = "UNKNOWN";
    this.elements["_event_name"] = "ProductUpsellToast";
    this.category = function(val)
    {
        this.elements["category"] = val.toString();
        return this;
    };
    this.action_type = function(val)
    {
        this.elements["action_type"] = val.toString();
        return this;
    };
    this.browser = function(val)
    {
        this.elements["browser"] = val.toString();
        return this;
    };
    this.sequence = function(val)
    {
        this.elements["sequence"] = val.toString();
        return this;
    };
    this.product = function(val)
    {
        this.elements["product"] = val.toString();
        return this;
    };
    this.variation = function(val)
    {
        this.elements["variation"] = val.toString();
        return this;
    };
    this.trigger = function(val)
    {
        this.elements["trigger"] = val.toString();
        return this;
    };
    this.url = function(val)
    {
        this.elements["url"] = val.toString();
        return this;
    };
    this.Serialize = function()
    {
        return JSON.stringify(this.elements);
    };
}
//F46D5819070D6FE3C89938F8DCD5800B3C30804D094E3C84834E98BF0ED8BFC6CA3D4AB75418CE56C3FBDAD95ECB7DB7CDBB38B609ED23D3188741EB433257B1++