Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13213 kshitij.so 1
package in.shop2020.serving.controllers;
2
 
3
import in.shop2020.thrift.clients.HelperClient;
4
import in.shop2020.utils.Campaigns;
5
 
6
 
7
public class GosfController extends BaseController{
8
 
13220 kshitij.so 9
    /**
10
     * 
11
     */
12
    private static final long serialVersionUID = 1L;
13213 kshitij.so 13
    public static final String INDEX = "index";
14
    private String email;
15
    private String newStatus;
16
 
17
    public String index(){
18
        return INDEX;
19
    }
20
 
21
    public String notifyGosf(){
22
        HelperClient helperServiceClient = null;
23
        try {
24
            helperServiceClient = new HelperClient();
25
            in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();
26
            String msg = client.addCampaignNotification(email,Campaigns.GOSF.getValue());
27
            setNewStatus(msg);
28
        } catch (Exception e) {
29
            setNewStatus("OOPS!!!Please try again.");
30
        }
31
        return "recharge-status";
32
    }
33
 
34
    public void setEmail(String email) {
35
        this.email = email;
36
    }
37
 
38
    public String getEmail() {
39
        return email;
40
    }
41
 
42
    public void setNewStatus(String newStatus) {
43
        this.newStatus = newStatus;
44
    }
45
 
46
    public String getNewStatus() {
47
        return newStatus;
48
    }
49
 
50
}