Subversion Repositories SmartDukaan

Rev

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

Rev 6684 Rev 6727
Line 250... Line 250...
250
	
250
	
251
	public List<String> getArguments(Coupon coupon){
251
	public List<String> getArguments(Coupon coupon){
252
		List<String> result = new ArrayList<String>();
252
		List<String> result = new ArrayList<String>();
253
		try {
253
		try {
254
			JSONObject obj = new JSONObject(coupon.getArguments());
254
			JSONObject obj = new JSONObject(coupon.getArguments());
255
			result.add(obj.getJSONArray("emails").getString(0));
255
			result.add(obj.getString("emails"));
256
			result.add(obj.getString("discount"));
256
			result.add(obj.getString("discount"));
257
		} catch (JSONException e) {
257
		} catch (JSONException e) {
258
			// TODO Auto-generated catch block
258
			// TODO Auto-generated catch block
259
			e.printStackTrace();
259
			e.printStackTrace();
260
		}
260
		}