// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/BaseRate.java
// public abstract class BaseRate implements IConvertable, IRate {
// 
//     public String type;
// 
//     @RateDef
//     protected int rateType;
// 
//     BaseRate() {
//     }
// 
//     @Override
//     public int getRateType() {
//         return rateType;
//     }
// 
//     public String getFormatted(float val) {
//         return RateUtils.valueToUI(val, rateType);
//     }
// }
// 
// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/YorumlarRate.java
// public class YorumlarRate extends AvgRate {
// 
//     public String time;
// 
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         switch (type) {
//             case "dolar_guncelle":
//                 rateType = USD;
//                 break;
//             case "euro_guncelle":
//                 rateType = EUR;
//                 break;
//             case "parite_guncelle":
//                 rateType = EUR_USD;
//                 break;
//             case "ons_guncelle":
//                 rateType = ONS;
//                 break;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         String val = avg_val.replace("'", "").replace("$", "").trim();
//         val_real_avg = Float.parseFloat(val);
//     }
// 
//     @Override
//     @NonNull
//     public String toString() {
//         return type.split("_")[0] + " -> : " + val_real_avg + " : Time -> " + time.replace("'", "");
//     }
// 
// }


import android.text.TextUtils;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import dynoapps.exchange_rates.model.rates.BaseRate;
import dynoapps.exchange_rates.model.rates.YorumlarRate;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
package dynoapps.exchange_rates.converters;




/**
 * Created by erdemmac on 24/11/2016.
 */

public class YorumlarConverter implements Converter<ResponseBody, List<BaseRate>> {

    private static final YorumlarConverter INSTANCE = new YorumlarConverter();

    private YorumlarConverter() {
    }

    /**
     * Sample response body <p> <p> dolar_guncelle('3.4047','13:01:36');euro_guncelle('3.6012','13:01:36');sterlin_guncelle('4.2431','13:01:36');gumus_guncelle('1.7921','1.7941','13:01:36');parite_guncelle('1.0570','13:01:36');ons_guncelle('$1190.0000','13:01:36');ySi('[5164806,5388042,5387395,5387090]');
     * </p>
     **/
    @Override
    public List<BaseRate> convert(@NonNull ResponseBody value) throws IOException {

// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/BaseRate.java
// public abstract class BaseRate implements IConvertable, IRate {
// 
//     public String type;
// 
//     @RateDef
//     protected int rateType;
// 
//     BaseRate() {
//     }
// 
//     @Override
//     public int getRateType() {
//         return rateType;
//     }
// 
//     public String getFormatted(float val) {
//         return RateUtils.valueToUI(val, rateType);
//     }
// }
// 
// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/YorumlarRate.java
// public class YorumlarRate extends AvgRate {
// 
//     public String time;
// 
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         switch (type) {
//             case "dolar_guncelle":
//                 rateType = USD;
//                 break;
//             case "euro_guncelle":
//                 rateType = EUR;
//                 break;
//             case "parite_guncelle":
//                 rateType = EUR_USD;
//                 break;
//             case "ons_guncelle":
//                 rateType = ONS;
//                 break;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         String val = avg_val.replace("'", "").replace("$", "").trim();
//         val_real_avg = Float.parseFloat(val);
//     }
// 
//     @Override
//     @NonNull
//     public String toString() {
//         return type.split("_")[0] + " -> : " + val_real_avg + " : Time -> " + time.replace("'", "");
//     }
// 
// }


// Path: app/src/main/java/dynoapps/exchange_rates/converters/YorumlarConverter.java
import android.text.TextUtils;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.NonNull;
import dynoapps.exchange_rates.model.rates.BaseRate;
import dynoapps.exchange_rates.model.rates.YorumlarRate;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;

package dynoapps.exchange_rates.converters;




/**
 * Created by erdemmac on 24/11/2016.
 */

public class YorumlarConverter implements Converter<ResponseBody, List<BaseRate>> {

    private static final YorumlarConverter INSTANCE = new YorumlarConverter();

    private YorumlarConverter() {
    }

    /**
     * Sample response body <p> <p> dolar_guncelle('3.4047','13:01:36');euro_guncelle('3.6012','13:01:36');sterlin_guncelle('4.2431','13:01:36');gumus_guncelle('1.7921','1.7941','13:01:36');parite_guncelle('1.0570','13:01:36');ons_guncelle('$1190.0000','13:01:36');ySi('[5164806,5388042,5387395,5387090]');
     * </p>
     **/
    @Override
    public List<BaseRate> convert(@NonNull ResponseBody value) throws IOException {

        ArrayList<BaseRate> rates = new ArrayList<>();