Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31604 tejbeer 1
package com.spice.profitmandi.dao.service.solr;
2
 
3
import java.util.List;
4
 
5
import org.springframework.beans.factory.annotation.Autowired;
6
 
7
import com.google.gson.Gson;
8
 
9
public class Catalog {
10
 
11
	@Autowired
12
	private Gson gson;
13
 
14
	private int id;
15
	private int rank;
16
	private String title;
17
	private List<?> _childDocuments_;
18
 
19
	public Catalog(int id, int rank, String title, List<?> items) {
20
		this.id = id;
21
		this.rank = rank;
22
		this.title = title;
23
		this._childDocuments_ = items;
24
	}
25
 
26
	public String toJSON() {
27
		return gson.toJson(this);
28
	}
29
}