// Path: src/main/java/com/sugarcrm/api/SugarSession.java
// public interface SugarSession {
// 	
//   public String getSessionID();
//   public User getUser();
// 
// }
// 
// Path: src/main/java/com/sugarcrm/api/User.java
// public interface User extends SugarEntity {
//   
//   public String getUserId();
//   public String getUserName();
//   public String getUserLanguage();
// 
// }


import com.sugarcrm.api.SugarSession;
import com.sugarcrm.api.User;
package com.sugarcrm.api.v4.impl;




/**
 * Sugar login API response in v4
 * @author mmarum
 */
public class SugarLoginResponse extends SugarBean implements SugarSession
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1676345351737529385L;


	@Override
	public String getSessionID()
	{
		return this.id;
	}


	@Override
	public User getUser()
	{
		final User user = new UsersResponse(this.values, this.moduleName);
// Path: src/main/java/com/sugarcrm/api/SugarSession.java
// public interface SugarSession {
// 	
//   public String getSessionID();
//   public User getUser();
// 
// }
// 
// Path: src/main/java/com/sugarcrm/api/User.java
// public interface User extends SugarEntity {
//   
//   public String getUserId();
//   public String getUserName();
//   public String getUserLanguage();
// 
// }


// Path: src/main/java/com/sugarcrm/api/v4/impl/SugarLoginResponse.java
import com.sugarcrm.api.SugarSession;
import com.sugarcrm.api.User;

package com.sugarcrm.api.v4.impl;




/**
 * Sugar login API response in v4
 * @author mmarum
 */
public class SugarLoginResponse extends SugarBean implements SugarSession
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1676345351737529385L;


	@Override
	public String getSessionID()
	{
		return this.id;
	}


	@Override
	public User getUser()
	{
		final User user = new UsersResponse(this.values, this.moduleName);
		return user;