Subversion Repositories SmartDukaan

Rev

Rev 23418 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23418 Rev 33509
Line 1... Line 1...
1
package com.spice.profitmandi.dao.enumuration.dtr;
1
package com.spice.profitmandi.dao.enumuration.dtr;
2
 
2
 
3
public enum OtpType{
3
public enum OtpType {
4
	REGISTRATION(0),
4
    REGISTRATION(0),
5
	PREBOOKING_ORDER(1);
5
    PREBOOKING_ORDER(1),
-
 
6
    LOI_ACCEPTANCE(2);
6
 
7
 
7
	private final int value;
8
    private final int value;
8
 
9
 
9
	private OtpType(int value) {
10
    private OtpType(int value) {
10
		this.value = value;
11
        this.value = value;
11
	}
12
    }
12
 
13
 
-
 
14
    public static OtpType findByValue(int value) {
13
	public int getValue() {
15
        switch (value) {
-
 
16
            case 0:
-
 
17
                return REGISTRATION;
-
 
18
            case 1:
-
 
19
                return PREBOOKING_ORDER;
-
 
20
            case 2:
-
 
21
                return LOI_ACCEPTANCE;
-
 
22
            default:
14
		return value;
23
                return null;
-
 
24
        }
15
	}
25
    }
16
 
26
 
17
	public static OtpType findByValue(int value) { 
-
 
18
		switch (value) {
27
    public int getValue() {
19
		case 0:
-
 
20
			return REGISTRATION;
-
 
21
		case 1:
-
 
22
			return PREBOOKING_ORDER;
-
 
23
		default:
-
 
24
			return null;
28
        return value;
25
		}
29
    }
26
	}
-
 
27
}
30
}
28
31