// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/EnparaRate.java
// public class EnparaRate extends BuySellRate {
// 
//     @Override
//     public void toRateType() {
//         int rateType = UNKNOWN;
//         String plain_type = type.replace("\n", "");
//         plain_type = plain_type.toLowerCase();
//         if (plain_type.contains("parite")) {
//             rateType = EUR_USD;
//         } else if (plain_type.contains("usd")) {
//             rateType = USD;
//         } else if (plain_type.contains("eur")) {
//             rateType = EUR;
//         } else if (plain_type.contains("altın (gram)")) {
//             rateType = ONS_TRY;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         String val = valueSell.replace(" TL", "").replace(",", ".").trim();
//         valueSellReal = Float.valueOf(val);
// 
//         val = valueBuy.replace(" TL", "").replace(",", ".").trim();
//         valueBuyReal = Float.valueOf(val);
//     }
// }


import java.util.List;
import dynoapps.exchange_rates.model.rates.EnparaRate;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Headers;
package dynoapps.exchange_rates.network;



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

public interface EnparaService {

    @Headers({
            "Content-Type:text/html; charset=utf-8"
    })
    @GET("doviz-kur-bilgileri/doviz-altin-kurlari.aspx")
// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/EnparaRate.java
// public class EnparaRate extends BuySellRate {
// 
//     @Override
//     public void toRateType() {
//         int rateType = UNKNOWN;
//         String plain_type = type.replace("\n", "");
//         plain_type = plain_type.toLowerCase();
//         if (plain_type.contains("parite")) {
//             rateType = EUR_USD;
//         } else if (plain_type.contains("usd")) {
//             rateType = USD;
//         } else if (plain_type.contains("eur")) {
//             rateType = EUR;
//         } else if (plain_type.contains("altın (gram)")) {
//             rateType = ONS_TRY;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         String val = valueSell.replace(" TL", "").replace(",", ".").trim();
//         valueSellReal = Float.valueOf(val);
// 
//         val = valueBuy.replace(" TL", "").replace(",", ".").trim();
//         valueBuyReal = Float.valueOf(val);
//     }
// }


// Path: app/src/main/java/dynoapps/exchange_rates/network/EnparaService.java
import java.util.List;
import dynoapps.exchange_rates.model.rates.EnparaRate;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Headers;

package dynoapps.exchange_rates.network;



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

public interface EnparaService {

    @Headers({
            "Content-Type:text/html; charset=utf-8"
    })
    @GET("doviz-kur-bilgileri/doviz-altin-kurlari.aspx")
    Observable<List<EnparaRate>> rates();