package droid.nucleo.moduleintegrations.app.activities;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import com.github.paolorotolo.appintro.AppIntro;

import droid.nucleo.moduleintegrations.R;
import droid.nucleo.moduleintegrations.app.pages.defaultintro.DefaultIntroSampleSlide;
import droid.nucleo.moduleintegrations.system.modules.Router;

public class DefaultIntroMainActivity extends AppIntro {
    @Override
    public void init(Bundle savedInstanceState) {

        addSlide(DefaultIntroSampleSlide.newInstance(R.layout.default_intro_page1));
        addSlide(DefaultIntroSampleSlide.newInstance(R.layout.default_intro_page2));
        addSlide(DefaultIntroSampleSlide.newInstance(R.layout.default_intro_page3));
        addSlide(DefaultIntroSampleSlide.newInstance(R.layout.default_intro_page4));

    }

    private void loadMainActivity(){
        Router.newInstance(this).goToActivity("Main");
    }

    @Override
    public void onSkipPressed() {
        loadMainActivity();
        Toast.makeText(getApplicationContext(),getString(R.string.skip),Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onDonePressed() {

        loadMainActivity();

    }

    public void getStarted(View v){

        loadMainActivity();

    }

}