/*
* Symphony - A modern community (forum/SNS/blog) platform written in Java.
* Copyright (C) 2012-2017, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.b3log.symphony.model;
/**
* This class defines all verifycode model relevant keys.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.1, Jul 3, 2016
* @since 1.3.0
*/
public final class Verifycode {
/**
* Verifycode.
*/
public static final String VERIFYCODE = "verifycode";
/**
* Verifycodes.
*/
public static final String VERIFYCODES = "verifycodes";
/**
* Key of user id.
*/
public static final String USER_ID = "userId";
/**
* Key of type.
*/
public static final String TYPE = "type";
/**
* Key of business type.
*/
public static final String BIZ_TYPE = "bizType";
/**
* Key of receiver.
*/
public static final String RECEIVER = "receiver";
/**
* Key of code.
*/
public static final String CODE = "code";
/**
* Key of status.
*/
public static final String STATUS = "status";
/**
* Key of expired.
*/
public static final String EXPIRED = "expired";
// Type constants
/**
* Type - Email.
*/
public static final int TYPE_C_EMAIL = 0;
// Business type constants
/**
* Business type - Register.
*/
public static final int BIZ_TYPE_C_REGISTER = 0;
/**
* Business type - Reset password.
*/
public static final int BIZ_TYPE_C_RESET_PWD = 1;
// Status constants
/**
* Status - Unsent.
*/
public static final int STATUS_C_UNSENT = 0;
/**
* Status - Sent.
*/
public static final int STATUS_C_SENT = 1;
/**
* Private constructor.
*/
private Verifycode() {
}
}