Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21478 rajender 1
package com.saholic.profittill.Volley;
2
 
3
import com.android.volley.RequestQueue;
4
import com.android.volley.toolbox.Volley;
5
import com.saholic.profittill.main.GoogleAnalyticsTracker;
6
 
7
/**
8
 * Created by kshitij on 24/7/15.
9
 */
10
public class AnalyticsSingleton {
11
 
12
    private static AnalyticsSingleton mInstance=null;
13
    private RequestQueue mRequestQueue;
14
    private AnalyticsSingleton(){
15
        mRequestQueue= Volley.newRequestQueue(GoogleAnalyticsTracker.getAppContext());
16
    }
17
 
18
    public static AnalyticsSingleton getmInstance(){
19
        if(mInstance==null){
20
            mInstance=new AnalyticsSingleton();
21
 
22
        }
23
        return mInstance;
24
    }
25
 
26
    public RequestQueue getRequestQueue(){
27
        return mRequestQueue;
28
    }
29
}