// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/BloombergRate.java
// public class BloombergRate extends AvgRate {
// 
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         switch (type) {
//             case "USDTRY Curncy":
//                 rateType = USD;
//                 break;
//             case "EURTRY Curncy":
//                 rateType = EUR;
//                 break;
//             case "EURUSD Curncy":
//                 rateType = EUR_USD;
//                 break;
//             case "XAU Curncy":
//                 rateType = ONS;
//                 break;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         avg_val = avg_val.replace(".", "").replace(',', '.');
//         val_real_avg = Float.parseFloat(avg_val);
//     }
// }


import java.util.List;
import dynoapps.exchange_rates.model.rates.BloombergRate;
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 BloombergService {

    @Headers({
            "Content-Type:text/html; charset=utf-8"
    })
    @GET("/")
// Path: app/src/main/java/dynoapps/exchange_rates/model/rates/BloombergRate.java
// public class BloombergRate extends AvgRate {
// 
//     @Override
//     public void toRateType() {
//         if (TextUtils.isEmpty(type)) rateType = UNKNOWN;
//         int rateType = UNKNOWN;
//         switch (type) {
//             case "USDTRY Curncy":
//                 rateType = USD;
//                 break;
//             case "EURTRY Curncy":
//                 rateType = EUR;
//                 break;
//             case "EURUSD Curncy":
//                 rateType = EUR_USD;
//                 break;
//             case "XAU Curncy":
//                 rateType = ONS;
//                 break;
//         }
//         this.rateType = rateType;
//     }
// 
//     @Override
//     public void setRealValues() {
//         if (rateType == UNKNOWN) return;
//         avg_val = avg_val.replace(".", "").replace(',', '.');
//         val_real_avg = Float.parseFloat(avg_val);
//     }
// }


// Path: app/src/main/java/dynoapps/exchange_rates/network/BloombergService.java
import java.util.List;
import dynoapps.exchange_rates.model.rates.BloombergRate;
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 BloombergService {

    @Headers({
            "Content-Type:text/html; charset=utf-8"
    })
    @GET("/")
    Observable<List<BloombergRate>> rates();