Rev 13213 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.serving.controllers;import in.shop2020.thrift.clients.HelperClient;import in.shop2020.utils.Campaigns;public class GosfController extends BaseController{/****/private static final long serialVersionUID = 1L;public static final String INDEX = "index";private String email;private String newStatus;public String index(){return INDEX;}public String notifyGosf(){HelperClient helperServiceClient = null;try {helperServiceClient = new HelperClient();in.shop2020.utils.HelperService.Client client = helperServiceClient.getClient();String msg = client.addCampaignNotification(email,Campaigns.GOSF.getValue());setNewStatus(msg);} catch (Exception e) {setNewStatus("OOPS!!!Please try again.");}return "recharge-status";}public void setEmail(String email) {this.email = email;}public String getEmail() {return email;}public void setNewStatus(String newStatus) {this.newStatus = newStatus;}public String getNewStatus() {return newStatus;}}