Subversion Repositories SmartDukaan

Rev

Rev 23418 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.enumuration.dtr;

public enum OtpType {
    REGISTRATION(0),
    PREBOOKING_ORDER(1),
    LOI_ACCEPTANCE(2);

    private final int value;

    private OtpType(int value) {
        this.value = value;
    }

    public static OtpType findByValue(int value) {
        switch (value) {
            case 0:
                return REGISTRATION;
            case 1:
                return PREBOOKING_ORDER;
            case 2:
                return LOI_ACCEPTANCE;
            default:
                return null;
        }
    }

    public int getValue() {
        return value;
    }
}