package CoreClasses;

/**
 * Created by alireza on 2/4/16.
 * Mobile Application Developer Base on Mashhad
 * Email : Alireza.karimi.67@gmail.com
 * Tell : +989362397176
 * Website : www.Alirezakarimi.ir
 */

/**
 * <p>Constant Class</p>
 * All Constant Data Represent in this class
 */
public class classesConstant {

    public static String[] lblSliderMenu={
            "فاز مخاطبین",
            "فازهای خودت",
            "فاز جدید",
            "فوکیشن",
            "همه چیز در باره فازیلازور",
            "بروز رسانی"
    };

    /**
     * Ripple Button Config
     */
    public static int rippleType = 0;
    public static boolean hasToZoom = false;
    public static boolean isCentered = false;
    public static int DURATION = 250;
    public static int FRAME_RATE = 20;
    public static int PAINT_ALPHA = 90;
    public static int ripplePadding = 0;
    public static float zoomScale = 1.03f;
    public static int zoomDuration = 100;

    /**
     * DataBase Config
     */
    public static final String DATABASE_NAME="mydatabase";

    public static final int DATABASE_VERSION_NEW=6;

    /**
     * Table MyAccount
     */
    public static final String TABLE_ACCOUNT="_tbluser";
    public static final String COLUMN_ACCOUNT_ID="_id";
    public static final String COLUMN_ACCOUNT_NAME="_name";
    public static final String COLUMN_ACCOUNT_ACTIVECODE="_activecode";
    public static final String COLUMN_ACCOUNT_PHONENUMBER="_phonenumber";
    public static final String COLUMN_ACCOUNT_FAZ="_faz";
    public static final String COLUMN_ACCOUNT_FAZTEXT="_faztext";
    public static final String CREATE_TABLE_ACCOUNT = "CREATE TABLE "
            + classesConstant.TABLE_ACCOUNT + " (" + classesConstant.COLUMN_ACCOUNT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
            + classesConstant.COLUMN_ACCOUNT_ACTIVECODE + " TEXT,"
            + classesConstant.COLUMN_ACCOUNT_PHONENUMBER + " TEXT,"
            + classesConstant.COLUMN_ACCOUNT_FAZ + " NUMBER,"
            + classesConstant.COLUMN_ACCOUNT_FAZTEXT + " TEXT,"
            + classesConstant.COLUMN_ACCOUNT_NAME + " TEXT " + ");";


    /**
     * Table Phone Book
     */
    public static final String TABLE_PHONE_CONTACT="_tblphonecontact";
    public static final String COLUMN_PHONE_CONTACT_ID="_id";
    public static final String COLUMN_PHONE_CONTACT_NAME="_name";
    public static final String COLUMN_PHONE_CONTACT_PHONE="_phone";
    public static final String COLUMN_PHONE_CONTACT_AVATAR="_avatar";
    public static final String CREATE_PHONE_CONTACT = "CREATE TABLE "
            + classesConstant.TABLE_PHONE_CONTACT + " (" + classesConstant.COLUMN_PHONE_CONTACT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
            + classesConstant.COLUMN_PHONE_CONTACT_AVATAR + " TEXT,"
            + classesConstant.COLUMN_PHONE_CONTACT_PHONE + " TEXT,"
            + classesConstant.COLUMN_PHONE_CONTACT_NAME + " TEXT " + ");";

    /**
     * Table Fazy contact
     */
    public static final String TABLE_FAZY_CONTACT="_tblfazycontact";
    public static final String COLUMN_FAZY_CONTACT_ID="_id";
    public static final String COLUMN_FAZY_CONTACT_NAME="_name";
    public static final String COLUMN_FAZY_CONTACT_PHONE="_phone";
    public static final String COLUMN_FAZY_CONTACT_AVATAR="_avatar";
    public static final String COLUMN_FAZY_CONTACT_FAZ="_faz";
    public static final String COLUMN_FAZY_CONTACT_FAZ_TEXT="_faztext";
    public static final String COLUMN_FAZY_CONTACT_FAZ_DATE="_fazdate";
    public static final String CREATE_FAZY_CONTACT = "CREATE TABLE "
            + classesConstant.TABLE_FAZY_CONTACT + " (" + classesConstant.COLUMN_FAZY_CONTACT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
            + classesConstant.COLUMN_FAZY_CONTACT_AVATAR + " TEXT,"
            + classesConstant.COLUMN_FAZY_CONTACT_NAME + " TEXT,"
            + classesConstant.COLUMN_FAZY_CONTACT_PHONE + " TEXT,"
            + classesConstant.COLUMN_FAZY_CONTACT_FAZ_TEXT + " TEXT,"
            + classesConstant.COLUMN_FAZY_CONTACT_FAZ_DATE + " TEXT,"
            + classesConstant.COLUMN_FAZY_CONTACT_FAZ + " NUMBER " + ");";

    /**
     * Table my faz history
     */
    public static final String TABLE_MYFAZY_CONTACT="_tblmyfazy";
    public static final String COLUMN_MYFAZY_CONTACT_ID="_id";
    public static final String COLUMN_MYFAZY_CONTACT_FAZ="_faz";
    public static final String COLUMN_MYFAZY_CONTACT_FAZ_TEXT="_faztext";
    public static final String COLUMN_MYFAZY_CONTACT_FAZ_DATE="_fazdate";
    public static final String CREATE_MYFAZY_CONTACT = "CREATE TABLE "
            + classesConstant.TABLE_MYFAZY_CONTACT + " ("
            + classesConstant.COLUMN_MYFAZY_CONTACT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
            + classesConstant.COLUMN_MYFAZY_CONTACT_FAZ_TEXT + " TEXT,"
            + classesConstant.COLUMN_MYFAZY_CONTACT_FAZ_DATE + " TEXT,"
            + classesConstant.COLUMN_MYFAZY_CONTACT_FAZ + " NUMBER " + ");";

    public static final String JSON_OBJECT_DIALOG_TITLE = "title";
    public static final String JSON_OBJECT_DIALOG_MESSAGE = "message";
    public static final String JSON_OBJECT_DIALOG_PAGE = "page";
    public static final String JSON_OBJECT_DIALOG_BUTTON_OK_ENABLE = "btnokenable";
    public static final String JSON_OBJECT_DIALOG_BUTTON_CANCEL_ENABLE = "btncancelenable";
    public static final String JSON_OBJECT_DIALOG_BUTTON_OK_LABLE = "btnoklable";
    public static final String JSON_OBJECT_DIALOG_BUTTON_CANCEL_LABEL = "btncancellable";

    public static final String REGEX_PHONENUMBER = "^09\\d{9}";

}
