Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
import java.util.ArrayList;
7
 
8
 
9
 
10
public class GosfController extends BaseController{
11
 
12
    public static final String INDEX = "index";
13
    private String email;
14
    private String newStatus;
15
 
16
    public String index(){
17
        return INDEX;
18
    }
19
 
20
    public String notifyGosf(){
21
        HelperClient helperServiceClient = null;
22
        try {
23
            helperServiceClient = new HelperClient();
24
            in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();
25
            String msg = client.addCampaignNotification(email,Campaigns.GOSF.getValue());
26
            setNewStatus(msg);
27
        } catch (Exception e) {
28
            setNewStatus("OOPS!!!Please try again.");
29
        }
30
        return "recharge-status";
31
    }
32
 
33
    public void setEmail(String email) {
34
        this.email = email;
35
    }
36
 
37
    public String getEmail() {
38
        return email;
39
    }
40
 
41
    public void setNewStatus(String newStatus) {
42
        this.newStatus = newStatus;
43
    }
44
 
45
    public String getNewStatus() {
46
        return newStatus;
47
    }
48
 
49
}