Esempio n. 1
0
 private MessageData GetMessageDataObject(
     MessagePropetiesRules messagePropetiesRules = MessagePropetiesRules.None,
     SuperPropertiesRules superPropertiesRules   = SuperPropertiesRules.All)
 {
     return(new MessageData(
                SpecialPropsBindings,
                DistinctIdPropsBindings,
                messagePropetiesRules,
                superPropertiesRules));
 }
Esempio n. 2
0
        public MessageData(
            IDictionary <string, string> specialPropsBindings,
            IDictionary <string, string> distinctIdPropsBindings,
            MessagePropetiesRules messagePropetiesRules,
            SuperPropertiesRules superPropertiesRules,
            MixpanelConfig config = null)
        {
            _specialPropsBindings    = specialPropsBindings ?? new Dictionary <string, string>();
            _distinctIdPropsBindings = distinctIdPropsBindings ?? new Dictionary <string, string>();
            _messagePropetiesRules   = messagePropetiesRules;
            _superPropertiesRules    = superPropertiesRules;
            _valueParser             = new ValueParser();
            _nameFormatter           = new PropertyNameFormatter(config);
            _propertiesDigger        = new PropertiesDigger();

            SpecialProps = new Dictionary <string, object>();
            Props        = new Dictionary <string, object>();
        }
Esempio n. 3
0
        public MessageData(
            IDictionary<string, string> specialPropsBindings,
            IDictionary<string, string> distinctIdPropsBindings,
            MessagePropetiesRules messagePropetiesRules,
            SuperPropertiesRules superPropertiesRules,
            MixpanelConfig config = null)
        {
            _specialPropsBindings = specialPropsBindings ?? new Dictionary<string, string>();
            _distinctIdPropsBindings = distinctIdPropsBindings ?? new Dictionary<string, string>();
            _messagePropetiesRules = messagePropetiesRules;
            _superPropertiesRules = superPropertiesRules;
            _valueParser = new ValueParser();
            _nameFormatter = new PropertyNameFormatter(config);
            _propertiesDigger = new PropertiesDigger();

            SpecialProps = new Dictionary<string, object>();
            Props = new Dictionary<string, object>();
        }
 private MessageData GetMessageDataObject(
     MessagePropetiesRules messagePropetiesRules = MessagePropetiesRules.None, 
     SuperPropertiesRules superPropertiesRules = SuperPropertiesRules.All)
 {
     return new MessageData(
         SpecialPropsBindings,
         DistinctIdPropsBindings,
         messagePropetiesRules,
         superPropertiesRules);
 }