Subversion Repositories SmartDukaan

Rev

Rev 33510 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33510 tejus.loha 1
package com.spice.profitmandi.dao.service;
21285 kshitij.so 2
 
33510 tejus.loha 3
public class OTPResponse {
4
 
5
    private long reference_id;
6
    private String message;
7
    private boolean result;
8
    private String otp;
37194 aman 9
    /**
10
     * True only when an SMS/email dispatch was actually attempted for this request. A request can be
11
     * successful (result=true) without anything being sent - the 2-minute resend throttle returns the
12
     * still-valid previous OTP without contacting the gateway. Callers that report "OTP sent" to a user
13
     * must check this, not result.
14
     */
15
    private boolean sent;
33510 tejus.loha 16
 
17
    public long getReference_id() {
18
        return reference_id;
19
    }
20
 
21
    public void setReference_id(long reference_id) {
22
        this.reference_id = reference_id;
23
    }
24
 
25
    public String getMessage() {
26
        return message;
27
    }
28
 
29
    public void setMessage(String message) {
30
        this.message = message;
31
    }
32
 
33
    public boolean isResult() {
34
        return result;
35
    }
36
 
37
    public void setResult(boolean result) {
38
        this.result = result;
39
    }
40
 
41
    public String getOtp() {
42
        return otp;
43
    }
44
 
45
    public void setOtp(String otp) {
46
        this.otp = otp;
47
    }
48
 
37194 aman 49
    public boolean isSent() {
50
        return sent;
51
    }
52
 
53
    public void setSent(boolean sent) {
54
        this.sent = sent;
55
    }
56
 
21285 kshitij.so 57
}