// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/YahooRate.java
// public class YahooRate extends AvgRate {
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         if (type.contains("USDTRY")) {
//             rateType = USD;
//         } else if (type.contains("EURTRY")) {
//             rateType = EUR;
//         } else if (type.contains("EURUSD")) {
//             rateType = EUR_USD;
//         } else if (type.contains("GC")) {
//             rateType = ONS;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         val_real_avg = Float.parseFloat(avg_val);
//     }
// }


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



/**
 * Created by @Erdem OLKUN on 10/12/2016.
 */

public interface YahooService {

    @GET("d/quotes.csv?e=.csv&f=sl1d1t1&s=USDTRY=X,EURTRY=X,EURUSD=X,GC=F")
// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/YahooRate.java
// public class YahooRate extends AvgRate {
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         if (type.contains("USDTRY")) {
//             rateType = USD;
//         } else if (type.contains("EURTRY")) {
//             rateType = EUR;
//         } else if (type.contains("EURUSD")) {
//             rateType = EUR_USD;
//         } else if (type.contains("GC")) {
//             rateType = ONS;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         val_real_avg = Float.parseFloat(avg_val);
//     }
// }


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

package dynoapps.exchange_rates.network;



/**
 * Created by @Erdem OLKUN on 10/12/2016.
 */

public interface YahooService {

    @GET("d/quotes.csv?e=.csv&f=sl1d1t1&s=USDTRY=X,EURTRY=X,EURUSD=X,GC=F")
    Observable<List<YahooRate>> rates();