Subversion Repositories SmartDukaan

Rev

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

Rev 11514 Rev 11516
Line 1... Line 1...
1
	package in.shop2020.mobileapi.serving.controllers;
1
	package in.shop2020.mobileapi.serving.controllers;
2
 
2
 
-
 
3
import in.shop2020.mobileapi.serving.pojos.CartPojo;
3
import in.shop2020.mobileapi.serving.pojos.RedirectPojo;
4
import in.shop2020.mobileapi.serving.pojos.RedirectPojo;
4
import in.shop2020.mobileapi.serving.services.ContentServingService;
5
import in.shop2020.mobileapi.serving.services.ContentServingService;
5
import in.shop2020.mobileapi.serving.utils.PojoPopulator;
6
import in.shop2020.mobileapi.serving.utils.PojoPopulator;
6
import in.shop2020.mobileapi.serving.utils.SnippetType;
7
import in.shop2020.mobileapi.serving.utils.SnippetType;
7
import in.shop2020.model.v1.catalog.CatalogService.Client;
8
import in.shop2020.model.v1.catalog.CatalogService.Client;
Line 49... Line 50...
49
    private String insuranceResult;
50
    private String insuranceResult;
50
    
51
    
51
    private boolean toInsure;
52
    private boolean toInsure;
52
    
53
    
53
    
54
    
54
    private long id; //CartId
55
    private long id =-1; //CartId
55
    private String cartPojoJson;
56
    private String cartPojoJson;
56
    private long quantity;
57
    private long quantity;
57
    private int insuranceType;
58
    private int insuranceType;
58
    UserContextService.Client userClient;
59
    UserContextService.Client userClient;
59
    
60
    
Line 108... Line 109...
108
            } catch (Exception e) {
109
            } catch (Exception e) {
109
                TTransportException te = (TTransportException)e;
110
                TTransportException te = (TTransportException)e;
110
                log.warn(e.getLocalizedMessage() + " " + te.getType());
111
                log.warn(e.getLocalizedMessage() + " " + te.getType());
111
                log.warn("Unable to validate the cart: ", e);
112
                log.warn("Unable to validate the cart: ", e);
112
            }
113
            }
-
 
114
        } else {
-
 
115
        	cartPojoJson = new Gson().toJson(new CartPojo());
113
        }
116
        }
114
        return "index";
117
        return "index";
115
    }
118
    }
116
 
119
 
117
    public String create() {
120
    public String create() {