| 31604 |
tejbeer |
1 |
package com.spice.profitmandi.dao.service.solr;
|
|
|
2 |
|
|
|
3 |
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
4 |
|
|
|
5 |
import com.google.gson.Gson;
|
|
|
6 |
|
|
|
7 |
public class SkuInfo {
|
|
|
8 |
|
|
|
9 |
@Autowired
|
|
|
10 |
private Gson gson;
|
|
|
11 |
|
|
|
12 |
private String id;
|
|
|
13 |
private String[] ids;
|
|
|
14 |
private String brand;
|
|
|
15 |
private String model_name;
|
|
|
16 |
private String category_id;
|
|
|
17 |
private String subCategoryId;
|
|
|
18 |
private String thumbnail;
|
|
|
19 |
private String title;
|
|
|
20 |
private String[] brand_synonyms;
|
|
|
21 |
private String[] model_name_synonyms;
|
|
|
22 |
private String[] source_product_names;
|
|
|
23 |
private String category;
|
|
|
24 |
private String subCategory;
|
|
|
25 |
|
|
|
26 |
public SkuInfo(String id, String[] ids, String brand, String model_name, String category_id, String subCategoryId,
|
|
|
27 |
String thumbnail, String title, String[] brand_synonyms, String[] model_name_synonyms,
|
|
|
28 |
String[] source_product_names, String category, String subCategory) {
|
|
|
29 |
this.id = id;
|
|
|
30 |
this.ids = ids;
|
|
|
31 |
this.brand = brand;
|
|
|
32 |
this.model_name = model_name;
|
|
|
33 |
this.category_id = category_id;
|
|
|
34 |
this.subCategoryId = subCategoryId;
|
|
|
35 |
this.thumbnail = thumbnail;
|
|
|
36 |
this.title = title;
|
|
|
37 |
this.brand_synonyms = brand_synonyms;
|
|
|
38 |
this.model_name_synonyms = model_name_synonyms;
|
|
|
39 |
this.source_product_names = source_product_names;
|
|
|
40 |
this.category = category;
|
|
|
41 |
this.subCategory = subCategory;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
public String toJSON() {
|
|
|
45 |
return gson.toJson(this);
|
|
|
46 |
}
|
|
|
47 |
}
|