// Path: robotlegs4android/src/main/java/com/camnter/robotlegs4android/mvcs/Actor.java
// public class Actor {
// 
//     /**
//      * private
//      */
//     protected IEventDispatcher _eventDispatcher;
// 
//     /**
//      * private
//      */
//     protected IEventMap _eventMap;
// 
//     // ---------------------------------------------------------------------
//     // Constructor
//     // ---------------------------------------------------------------------
// 
//     public Actor() {
// 
//     }
// 
//     // ---------------------------------------------------------------------
//     // API
//     // ---------------------------------------------------------------------
// 
//     /**
//      * @return <code>com.camnter.robotlegs4android.core.IEventDispatcher</code>
//      */
//     public IEventDispatcher getEventDispatcher() {
//         return this._eventDispatcher;
//     }
// 
//     /**
//      * @param value <code>com.camnter.robotlegs4android.core.IEventDispatcher</code>
//      */
//     @Inject
//     public void setEventDispatcher(IEventDispatcher value) {
//         this._eventDispatcher = value;
//     }
// 
//     // ---------------------------------------------------------------------
//     // Internal
//     // ---------------------------------------------------------------------
// 
//     /**
//      * Local EventMap
//      *
//      * @return The EventMap for this Actor
//      */
//     public IEventMap getEventMap() {
//         if (this._eventMap == null) {
//             this._eventMap = new EventMap(this.getEventDispatcher());
//         }
//         return this._eventMap;
//     }
// 
//     /**
//      * Dispatch helper method
//      * 调度辅助方法
//      *
//      * @param event The <code>Event</code> to dispatch on the
//      *              <code>IContext</code>'s <code>IEventDispatcher</code>
//      *              Event分派IContext的IEventDispatcher
//      * @return Boolean
//      */
//     protected Boolean dispatch(Event event) {
//         if (this.getEventDispatcher().hasEventListener(event.getType()))
//             return this.getEventDispatcher().dispatchEvent(event);
// 
//         return false;
//     }
// 
// }
// 
// Path: app/src/main/java/com/camnter/robotlegs4android/test/bean/User.java
// public class User implements Serializable {
// 
//     public String name;
// 
//     public String sign;
// 
// }
// 
// Path: app/src/main/java/com/camnter/robotlegs4android/test/event/LoginEvent.java
// public class LoginEvent extends Event {
// 
//     public static final String USER_LOGIN = "user_login";
//     public static final String USER_LOGOUT = "user_logout";
// 
//     public static final String USER_LOGIN_SUCCESS_FROM_MODEL_TO_CONTROLLER = "user_login_success_from_model_to_controller";
//     public static final String USER_LOGIN_SUCCESS_FROM_MODEL_TO_VIEW = "user_login_success_from_model_to_view";
//     public static final String USER_LOGIN_SUCCESS_FROM_CONTROLLER_TO_VIEW = "user_login_success_from_controller_to_view";
// 
//     public String name;
//     public String password;
// 
//     public User user;
// 
//     public LoginEvent(String type) {
//         super(type);
//     }
// 
// }


import com.camnter.robotlegs4android.mvcs.Actor;
import com.camnter.robotlegs4android.test.bean.User;
import com.camnter.robotlegs4android.test.event.LoginEvent;
/*
 * Copyright (C) 2015 CaMnter 421482590@qq.com
 *
 * 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.camnter.robotlegs4android.test.model;


/**
 * Description：UserModel
 * Created by：CaMnter
 * Time：2015-11-07 22:58
 */
public class UserModel extends Actor {

    public void login(String name,String password) {

        // TODO Do you want to network requests

// Path: robotlegs4android/src/main/java/com/camnter/robotlegs4android/mvcs/Actor.java
// public class Actor {
// 
//     /**
//      * private
//      */
//     protected IEventDispatcher _eventDispatcher;
// 
//     /**
//      * private
//      */
//     protected IEventMap _eventMap;
// 
//     // ---------------------------------------------------------------------
//     // Constructor
//     // ---------------------------------------------------------------------
// 
//     public Actor() {
// 
//     }
// 
//     // ---------------------------------------------------------------------
//     // API
//     // ---------------------------------------------------------------------
// 
//     /**
//      * @return <code>com.camnter.robotlegs4android.core.IEventDispatcher</code>
//      */
//     public IEventDispatcher getEventDispatcher() {
//         return this._eventDispatcher;
//     }
// 
//     /**
//      * @param value <code>com.camnter.robotlegs4android.core.IEventDispatcher</code>
//      */
//     @Inject
//     public void setEventDispatcher(IEventDispatcher value) {
//         this._eventDispatcher = value;
//     }
// 
//     // ---------------------------------------------------------------------
//     // Internal
//     // ---------------------------------------------------------------------
// 
//     /**
//      * Local EventMap
//      *
//      * @return The EventMap for this Actor
//      */
//     public IEventMap getEventMap() {
//         if (this._eventMap == null) {
//             this._eventMap = new EventMap(this.getEventDispatcher());
//         }
//         return this._eventMap;
//     }
// 
//     /**
//      * Dispatch helper method
//      * 调度辅助方法
//      *
//      * @param event The <code>Event</code> to dispatch on the
//      *              <code>IContext</code>'s <code>IEventDispatcher</code>
//      *              Event分派IContext的IEventDispatcher
//      * @return Boolean
//      */
//     protected Boolean dispatch(Event event) {
//         if (this.getEventDispatcher().hasEventListener(event.getType()))
//             return this.getEventDispatcher().dispatchEvent(event);
// 
//         return false;
//     }
// 
// }
// 
// Path: app/src/main/java/com/camnter/robotlegs4android/test/bean/User.java
// public class User implements Serializable {
// 
//     public String name;
// 
//     public String sign;
// 
// }
// 
// Path: app/src/main/java/com/camnter/robotlegs4android/test/event/LoginEvent.java
// public class LoginEvent extends Event {
// 
//     public static final String USER_LOGIN = "user_login";
//     public static final String USER_LOGOUT = "user_logout";
// 
//     public static final String USER_LOGIN_SUCCESS_FROM_MODEL_TO_CONTROLLER = "user_login_success_from_model_to_controller";
//     public static final String USER_LOGIN_SUCCESS_FROM_MODEL_TO_VIEW = "user_login_success_from_model_to_view";
//     public static final String USER_LOGIN_SUCCESS_FROM_CONTROLLER_TO_VIEW = "user_login_success_from_controller_to_view";
// 
//     public String name;
//     public String password;
// 
//     public User user;
// 
//     public LoginEvent(String type) {
//         super(type);
//     }
// 
// }


// Path: app/src/main/java/com/camnter/robotlegs4android/test/model/UserModel.java
import com.camnter.robotlegs4android.mvcs.Actor;
import com.camnter.robotlegs4android.test.bean.User;
import com.camnter.robotlegs4android.test.event.LoginEvent;

/*
 * Copyright (C) 2015 CaMnter 421482590@qq.com
 *
 * 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.camnter.robotlegs4android.test.model;


/**
 * Description：UserModel
 * Created by：CaMnter
 * Time：2015-11-07 22:58
 */
public class UserModel extends Actor {

    public void login(String name,String password) {

        // TODO Do you want to network requests

        User user = new User();