package com.marshalchen.ultimaterecyclerview.demo.loadmoredemo;
import android.content.Context;
import android.content.Intent;
/**
* Created by hesk on 24/2/16.
*/
public enum Route {
LineNodeActivity("LineNodeActivity", LineNodeActivity.class),
STAGGER_LOAD_MORE("Stagger LoadMore", StaggerLoadMoreActivity.class),
LOADLOADING_CUT("Stop loading", FirstPageCancelLoadMore.class),
LOADMORE_TEST("No Header", DebugNoHeaderLoadMoreActivity.class),
FinalEmptyViewDisplayActivity("Empty View", FinalEmptyViewDisplayActivity.class),
SLIDER_HEADER("Header of Slider", SliderHeader.class),
SWIPE_LIST("Swipe List View Example", SwipeListViewExampleActivity.class),
LOADMORE_HEADER("Header Pallx", DebugLoadMoreActivity.class),;
private String name;
private Class<?> clazzna;
Route(String name, Class<?> clazz) {
this.name = name;
this.clazzna = clazz;
}
public Route getAnimator() {
return this;
}
public String getNameDisplay() {
return name;
}
public void start(final Context ctx) {
Intent intent = new Intent(ctx, clazzna);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
ctx.startActivity(intent);
}
}