/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dhaval.android.appstat.service;

import android.content.Context;
import android.telephony.TelephonyManager;
import com.dhaval.android.appstat.model.Identity;

/**
 *
 * @author dhaval
 */
public class IdentityManager {

    private Context context;
    private Identity identity;

    public IdentityManager(Context context) {
        this.context = context;

        TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        identity = new Identity(telephonyManager.getDeviceId());
    }

    public Identity getIdentity(){
        return identity;
    }
}
