Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.saholic.profittill.Volley;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.saholic.profittill.main.GoogleAnalyticsTracker;

/**
 * Created by kshitij on 24/7/15.
 */
public class AnalyticsSingleton {

    private static AnalyticsSingleton mInstance=null;
    private RequestQueue mRequestQueue;
    private AnalyticsSingleton(){
        mRequestQueue= Volley.newRequestQueue(GoogleAnalyticsTracker.getAppContext());
    }

    public static AnalyticsSingleton getmInstance(){
        if(mInstance==null){
            mInstance=new AnalyticsSingleton();

        }
        return mInstance;
    }

    public RequestQueue getRequestQueue(){
        return mRequestQueue;
    }
}