// Path: domain/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/Rate.java
// public class Rate {
//     @SerializedName("from")
//     private String fromCurrency;
//     @SerializedName("rate")
//     private String rate;
//     @SerializedName("to")
//     private String toCurrency;
// 
//     public String getFromCurrency() {
//         return fromCurrency;
//     }
// 
//     public String getRate() {
//         return rate;
//     }
// 
//     public String getToCurrency() {
//         return toCurrency;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/RateUI.java
// public class RateUI implements Parcelable {
//     private String fromCurrency;
//     private String toCurrency;
//     private String rate;
// 
//     public RateUI(String fromCurrency, String toCurrency, String rate) {
//         this.fromCurrency = fromCurrency;
//         this.toCurrency = toCurrency;
//         this.rate = rate;
//     }
// 
//     private RateUI(Parcel in) {
//         fromCurrency = in.readString();
//         toCurrency = in.readString();
//         rate = in.readString();
//     }
// 
//     public static final Creator<RateUI> CREATOR = new Creator<RateUI>() {
//         @Override
//         public RateUI createFromParcel(Parcel in) {
//             return new RateUI(in);
//         }
// 
//         @Override
//         public RateUI[] newArray(int size) {
//             return new RateUI[size];
//         }
//     };
// 
//     public String getFromCurrency() {
//         return fromCurrency;
//     }
// 
//     public String getRate() {
//         return rate;
//     }
// 
//     public String getToCurrency() {
//         return toCurrency;
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(fromCurrency);
//         dest.writeString(toCurrency);
//         dest.writeString(rate);
//     }
// }


import com.raulh82vlc.TransactionsViewer.di.scopes.ActivityScope;
import com.raulh82vlc.TransactionsViewer.domain.models.Rate;
import com.raulh82vlc.TransactionsViewer.domain.models.RateUI;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.domain.interactors.mappers;




/**
 * As a Mapper, means it is a converter between different domains
 *
 * @author Raul Hernandez Lopez
 */
@ActivityScope
public class RatesListModelDataMapper {

    @Inject
    RatesListModelDataMapper() {

    }

    /**
     * Transforms a List of {@link Rate} into a List of Rates
     *
     * @param ratesList to be transformed.
     * @return Graph composed by a dictionary of rate to others
     */
// Path: domain/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/Rate.java
// public class Rate {
//     @SerializedName("from")
//     private String fromCurrency;
//     @SerializedName("rate")
//     private String rate;
//     @SerializedName("to")
//     private String toCurrency;
// 
//     public String getFromCurrency() {
//         return fromCurrency;
//     }
// 
//     public String getRate() {
//         return rate;
//     }
// 
//     public String getToCurrency() {
//         return toCurrency;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/RateUI.java
// public class RateUI implements Parcelable {
//     private String fromCurrency;
//     private String toCurrency;
//     private String rate;
// 
//     public RateUI(String fromCurrency, String toCurrency, String rate) {
//         this.fromCurrency = fromCurrency;
//         this.toCurrency = toCurrency;
//         this.rate = rate;
//     }
// 
//     private RateUI(Parcel in) {
//         fromCurrency = in.readString();
//         toCurrency = in.readString();
//         rate = in.readString();
//     }
// 
//     public static final Creator<RateUI> CREATOR = new Creator<RateUI>() {
//         @Override
//         public RateUI createFromParcel(Parcel in) {
//             return new RateUI(in);
//         }
// 
//         @Override
//         public RateUI[] newArray(int size) {
//             return new RateUI[size];
//         }
//     };
// 
//     public String getFromCurrency() {
//         return fromCurrency;
//     }
// 
//     public String getRate() {
//         return rate;
//     }
// 
//     public String getToCurrency() {
//         return toCurrency;
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(fromCurrency);
//         dest.writeString(toCurrency);
//         dest.writeString(rate);
//     }
// }


// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/domain/interactors/mappers/RatesListModelDataMapper.java
import com.raulh82vlc.TransactionsViewer.di.scopes.ActivityScope;
import com.raulh82vlc.TransactionsViewer.domain.models.Rate;
import com.raulh82vlc.TransactionsViewer.domain.models.RateUI;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;

/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.domain.interactors.mappers;




/**
 * As a Mapper, means it is a converter between different domains
 *
 * @author Raul Hernandez Lopez
 */
@ActivityScope
public class RatesListModelDataMapper {

    @Inject
    RatesListModelDataMapper() {

    }

    /**
     * Transforms a List of {@link Rate} into a List of Rates
     *
     * @param ratesList to be transformed.
     * @return Graph composed by a dictionary of rate to others
     */
    public List<RateUI> transform(List<Rate> ratesList) {