Mini Kabibi Habibi

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

var Secure_Search_Toast = function(){
    this.elements = {};
    this.elements["category"] = "SecureSearchToast";
    this.elements["action_type"] = "default";
    this.elements["browser"] = "default";
    this.elements["provider"] = "UNKNOWN";
    this.elements["toastType"] = "RegularToast";
    this.elements["metadata"] = "default";
    this.elements["response_time"] = "default";
    this.elements["toggle_count"] = "-1";
    this.elements["_event_name"] = "Secure_Search_Toast";
    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.provider = function(val)
    {
        this.elements["provider"] = val.toString();
        return this;
    };
    this.toastType = function(val)
    {
        this.elements["toastType"] = val.toString();
        return this;
    };
    this.metadata = function(val)
    {
        this.elements["metadata"] = val.toString();
        return this;
    };
    this.response_time = function(val)
    {
        this.elements["response_time"] = val.toString();
        return this;
    };
    this.toggle_count = function(val)
    {
        this.elements["toggle_count"] = val.toString();
        return this;
    };
    this.Serialize = function()
    {
        return JSON.stringify(this.elements);
    };
}
//FA5A23617D0D5E20F469D4EEFE822D17190E617CD891838C40F87A682A712A2D58BB2644BDC1D27FD5B5C5E6B52F7BAB8D3CAF0E045FA33B232C733182F1CF9F++