// Path: app/src/main/java/com/bruce/demo/mvp/model/CalculateTwoNumbers.java
// public class CalculateTwoNumbers {
//     public int n1, n2;
// 
//     public int addResult() {
//         return n1 + n2;
//     }
// 
//     public int subtractResult() {
//         return n1 - n2;
//     }
// 
//     public int multiplyResult() {
//         return n1 * n2;
//     }
// 
//     public double divideResult() {
//         return n1 / n2;
//     }
// }
// 
// Path: app/src/main/java/com/bruce/demo/mvp/view/IResult.java
// public interface IResult {
//     void showAdd(int result);
// 
//     void showSubtract(int result);
// 
//     void showMultiply(int result);
// 
//     void showDivide(double result);
// }


import com.bruce.demo.mvp.model.CalculateTwoNumbers;
import com.bruce.demo.mvp.view.IResult;
import com.bruceutils.utils.LogUtils;
/*
 * BruceHurrican
 * Copyright (c) 2016.
 *  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.
 *
 *    This document is Bruce's individual learning the android demo, wherein the use of the code from the Internet, only to use as a learning exchanges.
 *   And where any person can download and use, but not for commercial purposes.
 *   Author does not assume the resulting corresponding disputes.
 *   If you have good suggestions for the code, you can contact BurrceHurrican@foxmail.com
 *   本文件为Bruce's个人学习android的demo, 其中所用到的代码来源于互联网，仅作为学习交流使用。
 *   任和何人可以下载并使用, 但是不能用于商业用途。
 *   作者不承担由此带来的相应纠纷。
 *   如果对本代码有好的建议，可以联系BurrceHurrican@foxmail.com
 */

package com.bruce.demo.mvp.presenter;


/**
 * Created by BruceHurrican on 16-3-23.
 */
public class CalculatePresenter implements ICalculate {
    private IResult iResult;
// Path: app/src/main/java/com/bruce/demo/mvp/model/CalculateTwoNumbers.java
// public class CalculateTwoNumbers {
//     public int n1, n2;
// 
//     public int addResult() {
//         return n1 + n2;
//     }
// 
//     public int subtractResult() {
//         return n1 - n2;
//     }
// 
//     public int multiplyResult() {
//         return n1 * n2;
//     }
// 
//     public double divideResult() {
//         return n1 / n2;
//     }
// }
// 
// Path: app/src/main/java/com/bruce/demo/mvp/view/IResult.java
// public interface IResult {
//     void showAdd(int result);
// 
//     void showSubtract(int result);
// 
//     void showMultiply(int result);
// 
//     void showDivide(double result);
// }


// Path: app/src/main/java/com/bruce/demo/mvp/presenter/CalculatePresenter.java
import com.bruce.demo.mvp.model.CalculateTwoNumbers;
import com.bruce.demo.mvp.view.IResult;
import com.bruceutils.utils.LogUtils;

/*
 * BruceHurrican
 * Copyright (c) 2016.
 *  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.
 *
 *    This document is Bruce's individual learning the android demo, wherein the use of the code from the Internet, only to use as a learning exchanges.
 *   And where any person can download and use, but not for commercial purposes.
 *   Author does not assume the resulting corresponding disputes.
 *   If you have good suggestions for the code, you can contact BurrceHurrican@foxmail.com
 *   本文件为Bruce's个人学习android的demo, 其中所用到的代码来源于互联网，仅作为学习交流使用。
 *   任和何人可以下载并使用, 但是不能用于商业用途。
 *   作者不承担由此带来的相应纠纷。
 *   如果对本代码有好的建议，可以联系BurrceHurrican@foxmail.com
 */

package com.bruce.demo.mvp.presenter;


/**
 * Created by BruceHurrican on 16-3-23.
 */
public class CalculatePresenter implements ICalculate {
    private IResult iResult;
    private CalculateTwoNumbers calculateTwoNumbers;