// Path: app/src/main/java/com/asanchezyu/retrofitsoap/domain/interactors/search/SearchCodesByCityInteractor.java
// public interface SearchCodesByCityInteractor extends Interactor{
// 
//     interface Callback{
// 
//         void onSuccess(List<ZipCodeDomain> zipCodes);
// 
//         void onError();
// 
//     }
// 
//     void execute(String cityName, Callback callback );
// 
// 
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/domain/model/ZipCodeDomain.java
// public class ZipCodeDomain {
// 
//     private String city;
// 
//     private String state;
// 
//     private String zipCode;
// 
//     private String areaCode;
// 
//     private String timeZone;
// 
//     public String getAreaCode() {
//         return areaCode;
//     }
// 
//     public void setAreaCode(String areaCode) {
//         this.areaCode = areaCode;
//     }
// 
//     public String getCity() {
//         return city;
//     }
// 
//     public void setCity(String city) {
//         this.city = city;
//     }
// 
//     public String getState() {
//         return state;
//     }
// 
//     public void setState(String state) {
//         this.state = state;
//     }
// 
//     public String getTimeZone() {
//         return timeZone;
//     }
// 
//     public void setTimeZone(String timeZone) {
//         this.timeZone = timeZone;
//     }
// 
//     public String getZipCode() {
//         return zipCode;
//     }
// 
//     public void setZipCode(String zipCode) {
//         this.zipCode = zipCode;
//     }
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/ui/views/CityZipsView.java
// public interface CityZipsView {
// 
//     void setCityZips(List<ZipCodeData> cityZips);
// 
//     void showWaitingDialog();
// 
//     void hideWaitingDialog();
// 
//     void showCityNeededErrorMessage();
// 
//     void showErrorInRequest();
// 
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/util/ZipCodeMapperUi.java
// public class ZipCodeMapperUi extends EntityMapper<ZipCodeData,ZipCodeDomain> {
// 
//     @Inject
//     public ZipCodeMapperUi() {
//     }
// 
//     @Override
//     public ZipCodeDomain map(ZipCodeData element) {
//         ZipCodeDomain element1 = new ZipCodeDomain();
//         element1.setCity(element.getCity());
//         element1.setTimeZone(element.getTimeZone());
//         element1.setAreaCode(element.getAreaCode());
//         element1.setState(element.getState());
//         element1.setZipCode(element.getZipCode());
//         return element1;
//     }
// 
//     @Override
//     public ZipCodeData reverseMap(ZipCodeDomain element) {
//         ZipCodeData codeData = new ZipCodeData();
//         codeData.setCity(element.getCity());
//         codeData.setState(element.getState());
//         codeData.setAreaCode(element.getAreaCode());
//         codeData.setTimeZone(element.getTimeZone());
//         codeData.setZipCode(element.getZipCode());
//         return codeData;
//     }
// 
// }


import com.asanchezyu.retrofitsoap.domain.interactors.search.SearchCodesByCityInteractor;
import com.asanchezyu.retrofitsoap.domain.model.ZipCodeDomain;
import com.asanchezyu.retrofitsoap.ui.views.CityZipsView;
import com.asanchezyu.retrofitsoap.util.ZipCodeMapperUi;
import java.util.List;
import javax.inject.Inject;
/*
 * Copyright 2016. Alejandro Sánchez
 *
 * 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.asanchezyu.retrofitsoap.presenters;




/**
 * Class Description.
 *
 * @author asanchezyu@gmail.com.
 * @version 1.0.
 * @since 15/6/16.
 */
public class ZipCodesPresenterImpl implements ZipCodesPresenter, SearchCodesByCityInteractor.Callback {

    @Inject
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/domain/interactors/search/SearchCodesByCityInteractor.java
// public interface SearchCodesByCityInteractor extends Interactor{
// 
//     interface Callback{
// 
//         void onSuccess(List<ZipCodeDomain> zipCodes);
// 
//         void onError();
// 
//     }
// 
//     void execute(String cityName, Callback callback );
// 
// 
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/domain/model/ZipCodeDomain.java
// public class ZipCodeDomain {
// 
//     private String city;
// 
//     private String state;
// 
//     private String zipCode;
// 
//     private String areaCode;
// 
//     private String timeZone;
// 
//     public String getAreaCode() {
//         return areaCode;
//     }
// 
//     public void setAreaCode(String areaCode) {
//         this.areaCode = areaCode;
//     }
// 
//     public String getCity() {
//         return city;
//     }
// 
//     public void setCity(String city) {
//         this.city = city;
//     }
// 
//     public String getState() {
//         return state;
//     }
// 
//     public void setState(String state) {
//         this.state = state;
//     }
// 
//     public String getTimeZone() {
//         return timeZone;
//     }
// 
//     public void setTimeZone(String timeZone) {
//         this.timeZone = timeZone;
//     }
// 
//     public String getZipCode() {
//         return zipCode;
//     }
// 
//     public void setZipCode(String zipCode) {
//         this.zipCode = zipCode;
//     }
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/ui/views/CityZipsView.java
// public interface CityZipsView {
// 
//     void setCityZips(List<ZipCodeData> cityZips);
// 
//     void showWaitingDialog();
// 
//     void hideWaitingDialog();
// 
//     void showCityNeededErrorMessage();
// 
//     void showErrorInRequest();
// 
// }
// 
// Path: app/src/main/java/com/asanchezyu/retrofitsoap/util/ZipCodeMapperUi.java
// public class ZipCodeMapperUi extends EntityMapper<ZipCodeData,ZipCodeDomain> {
// 
//     @Inject
//     public ZipCodeMapperUi() {
//     }
// 
//     @Override
//     public ZipCodeDomain map(ZipCodeData element) {
//         ZipCodeDomain element1 = new ZipCodeDomain();
//         element1.setCity(element.getCity());
//         element1.setTimeZone(element.getTimeZone());
//         element1.setAreaCode(element.getAreaCode());
//         element1.setState(element.getState());
//         element1.setZipCode(element.getZipCode());
//         return element1;
//     }
// 
//     @Override
//     public ZipCodeData reverseMap(ZipCodeDomain element) {
//         ZipCodeData codeData = new ZipCodeData();
//         codeData.setCity(element.getCity());
//         codeData.setState(element.getState());
//         codeData.setAreaCode(element.getAreaCode());
//         codeData.setTimeZone(element.getTimeZone());
//         codeData.setZipCode(element.getZipCode());
//         return codeData;
//     }
// 
// }


// Path: app/src/main/java/com/asanchezyu/retrofitsoap/presenters/ZipCodesPresenterImpl.java
import com.asanchezyu.retrofitsoap.domain.interactors.search.SearchCodesByCityInteractor;
import com.asanchezyu.retrofitsoap.domain.model.ZipCodeDomain;
import com.asanchezyu.retrofitsoap.ui.views.CityZipsView;
import com.asanchezyu.retrofitsoap.util.ZipCodeMapperUi;
import java.util.List;
import javax.inject.Inject;

/*
 * Copyright 2016. Alejandro Sánchez
 *
 * 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.asanchezyu.retrofitsoap.presenters;




/**
 * Class Description.
 *
 * @author asanchezyu@gmail.com.
 * @version 1.0.
 * @since 15/6/16.
 */
public class ZipCodesPresenterImpl implements ZipCodesPresenter, SearchCodesByCityInteractor.Callback {

    @Inject
    CityZipsView view;