package com.batiaev.vk.api.methods;

/**
 * Created by batiaev on 17/04/15.
 * ---
 * Copyright © 2015. Anton Batiaev. All Rights Reserved.
 * www.batiaev.com
 */

import com.batiaev.vk.api.VKParameters;
import com.batiaev.vk.api.VKRequest;

/**
 * @author batiaev
 *
 * Builds requests for API.stats part
 *
 * @see <a href="https://vk.com/dev/stats">API stats</a>
 */
public class VKApiStats extends VKApiBase {

    /**
     * @param params method parameters
     * @return String with json respond
     * @see <a href="https://vk.com/dev/stats.get">API stats.get()</a>
     *
     * This method doesn't require any specific rights.
     */
    public String get(VKParameters params) {
        return prepareRequest("get", params).getRequest();
    }

    /**
     * @param params method parameters
     * @return String with json respond
     * @see <a href="https://vk.com/dev/stats.trackVisitor">API stats.trackVisitor()</a>
     *
     * This method is available only to standalone-applications.
     */
    public String trackVisitor(VKParameters params) {
        return prepareRequest("trackVisitor", params).getRequest();
    }

    @Override
    protected String getMethodsGroup() {
        return "stats";
    }
}

@@ -942,171 +942,1963 @@
   * 
-This method is available only to standalone-applications.%0A     */%0A    public String trackVisitor(VKParameters params) %7B%0A        return prepareRequest(%22trackVisitor
+Adds information about the current session in the attendance statistics application.%0A     * After the first call of this method in the %22Statistics%22 section of your application settings%0A     * will be available tab %22visitors.%22 It will display information about the number of start-ups%0A     * and unique visitors to your application.%0A     *%0A     * In order to obtain reliable data on attendance application method must be called each time you start.%0A     *%0A     * This method is available only Standalone-applications.%0A     *%0A     * result%0A     * In case of successful processing method will return 1.%0A     */%0A    public String trackVisitor(VKParameters params) %7B%0A        return prepareRequest(%22trackVisitor%22, params).getRequest();%0A    %7D%0A%0A    /**%0A     * Returns statistics for the records on the wall.%0A     * Statistics records currently available only for the community with the number%0A     * of participants from 10,000 and above, as well as official communities.%0A     * This method does not require authorization.%0A     *%0A     * @param params required params:%0A     *  - owner_id community identity - the owner of record. Indicated with a %22minus%22. %5Binteger required parameter%5D%0A     *  - post_id record identifier. %5Bpositive number Required%5D%0A     * Please note - these statistics are only available for the 300 last (most recent) records on the wall of the community.%0A     * @return statistics data records in the form of the object that contains the following fields:%0A     *  - reach_subscribers - coverage of subscribers;%0A     *  - reach_total - total coverage;%0A     *  - links - clicks on;%0A     *  - to_group - transitions in the Community;%0A     *  - join_group - entry into the community;%0A     *  - report - a record number of complaints;%0A     *  - hide - hide the number of entries;%0A     *  - unsubscribe - unsubscribe the number of participants.%0A     */%0A    public String getPostReach(VKParameters params) %7B%0A        return prepareRequest(%22getPostReach
 %22, p

add description for stat methods