package com.adins.mss.base.commons;

import android.app.Activity;
import android.view.Menu;

/**
 * Created by kusnendi.muhamad on 31/07/2017.
 */

public class ViewImpl extends CommonImpl implements ViewInterface, TaskListener {

    public Activity activity;

    public ViewImpl(Activity activity) {
        this.activity = activity;
    }

    @Override
    public void publish() {

    }

    @Override
    public void onCreate() {
        //Initialize GPS Setting
        checkGPS(true);
    }

    @Override
    public void onResume() {
        //Initialize GPS Setting
        checkGPS(true);
    }

    @Override
    public void onDestroy() {

    }

    @Override
    public void onCreateOptionsMenu(Menu menu) {

    }

    @Override
    public void onOptionsItemSelected(int id) {

    }

    @Override
    public void onCompleteTask(Object result) {

    }

    @Override
    public void onCancelTask(boolean value) {

    }

    @Override
    public void onLocalData(Object result) {
    }

    @Override
    public void checkGPS(boolean value) {
//        if (value) showGPSAlert(activity);
    }
}
