Subversion Repositories SmartDukaan

Rev

Rev 21719 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21719 Rev 23418
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
 
6
 
6
	private final int value;
7
	private final int value;
7
 
8
 
8
	private OtpType(int value) {
9
	private OtpType(int value) {
9
		this.value = value;
10
		this.value = value;
Line 15... Line 16...
15
 
16
 
16
	public static OtpType findByValue(int value) { 
17
	public static OtpType findByValue(int value) { 
17
		switch (value) {
18
		switch (value) {
18
		case 0:
19
		case 0:
19
			return REGISTRATION;
20
			return REGISTRATION;
-
 
21
		case 1:
-
 
22
			return PREBOOKING_ORDER;
20
		default:
23
		default:
21
			return null;
24
			return null;
22
		}
25
		}
23
	}
26
	}
24
}
27
}
25
28