예제 #1
0
        public override RudderProperty Build()
        {
            if (url == null)
            {
                throw new RudderException("Key \"url\" is required for track event");
            }

            RudderProperty rudderProperty = new RudderProperty();

            if (title != null)
            {
                rudderProperty.AddProperty("title", title);
            }
            rudderProperty.AddProperty("url", url);
            if (url != null)
            {
                rudderProperty.AddProperty("path", path);
            }
            if (referrer != null)
            {
                rudderProperty.AddProperty("referrer", referrer);
            }
            if (search != null)
            {
                rudderProperty.AddProperty("search", search);
            }
            if (keywords != null)
            {
                rudderProperty.AddProperty("keywords", keywords);
            }
            return(rudderProperty);
        }
예제 #2
0
        public override RudderProperty Build()
        {
            if (name == null)
            {
                throw new RudderException("Key \"name\" is required in properties");
            }
            RudderProperty rudderProperty = new RudderProperty();

            rudderProperty.AddProperty("name", name);
            return(rudderProperty);
        }
예제 #3
0
        public override RudderProperty Build()
        {
            if (category == null)
            {
                throw new RudderException("Key \"category\" is required for track event");
            }

            RudderProperty rudderProperty = new RudderProperty();

            rudderProperty.AddProperty("category", this.category);
            rudderProperty.AddProperty("label", this.label);
            rudderProperty.AddProperty("value", this.value);
            return(rudderProperty);
        }