Пример #1
0
        /// <summary>
        /// Returns the number of unique click events based on the specified parameters
        /// </summary>
        /// <param name="options">the options for this query</param>
        /// <returns>the number of unique click events</returns>
        public long GetClicksUniqueCount(ClickParameters options)
        {
            QueryParameters parameters = options.GetQueryParameters();
            ResponseWrapper response   = Get("reports/clicks/unique/count", parameters);

            return(SerializationUtils <long> .FromXmlString(response.Body, "count"));
        }
Пример #2
0
        /// <summary>
        /// Returns a page of unique click events based on the specified parameters
        /// </summary>
        /// <param name="options">the options for this query</param>
        /// <param name="pageIndex">the index of the page</param>
        /// <param name="pageSize">the size of the page</param>
        /// <returns>a page of unqiue click events</returns>
        public Page <Click> GetClicksUnique(ClickParameters options, int pageIndex, int pageSize)
        {
            QueryParameters parameters = CreatePageQueryParameters(pageIndex, pageSize, options);

            ResponseWrapper response = Get("reports/clicks/unique", parameters);

            Page <Click> page = new Page <Click>(pageIndex, pageSize, response);

            page.Items = SerializationUtils <ClickCollection> .FromXmlString(response.Body);

            return(page);
        }