package ru.VirtaMarketAnalyzer.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by cobr123 on 08.02.2019.
 */
final public class TradeGuide {
    @SerializedName("ci")
    final private String countryId;
    @SerializedName("ri")
    final private String regionId;
    @SerializedName("ti")
    final private String townId;
    @SerializedName("tgp")
    final private List<TradeGuideProduct> tradeGuideProduct;

    public TradeGuide(
            final String countryId,
            final String regionId,
            final String townId,
            final List<TradeGuideProduct> tradeGuideProduct
    ) {
        this.countryId = countryId;
        this.regionId = regionId;
        this.townId = townId;
        this.tradeGuideProduct = tradeGuideProduct;
    }
}

@@ -481,43 +481,118 @@
 ide(
-%0A            final String c
+final City city, final List%3CTradeGuideProduct%3E tradeGuideProduct) %7B%0A        this.countryId = city.getC
 ountryId
 ,%0A  
@@ -587,17 +587,19 @@
 ountryId
-,
+();
 %0A       
@@ -603,44 +603,52 @@
     
-    final String r
+this.regionId = city.getR
 egionId
-,%0A 
+();%0A
         
    f
@@ -647,56 +647,50 @@
     
-   final String townId,%0A            final List%3CT
+this.townId = city.getId();%0A        this.t
 rade
@@ -693,33 +693,34 @@
 radeGuideProduct
-%3E
+ =
  tradeGuideProdu
@@ -725,41 +725,66 @@
 duct
+;
 %0A    
-) %7B%0A        this.countryId =
+%7D%0A%0A    public String getCountryId() %7B%0A        return
  cou
@@ -795,35 +795,67 @@
 Id;%0A    
+%7D%0A%0A
     
-this.regionId =
+public String getRegionId() %7B%0A        return
  regionI
@@ -861,33 +861,65 @@
 Id;%0A    
+%7D%0A%0A
     
-this.townId =
+public String getTownId() %7B%0A        return
  townId;
@@ -919,34 +919,44 @@
 townId;%0A    
+%7D%0A%0A
     
-this.t
+public List%3CT
 radeGuidePro
@@ -951,34 +951,73 @@
 radeGuideProduct
- =
+%3E getTradeGuideProduct() %7B%0A        return
  tradeGuideProdu

City вместо отдельных параметров