Subversion Repositories SmartDukaan

Rev

Rev 3024 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3024 Rev 4793
Line 7... Line 7...
7
 * Domain class for Agents in CRM.
7
 * Domain class for Agents in CRM.
8
 *
8
 *
9
 * @author mandeep
9
 * @author mandeep
10
 */
10
 */
11
public class Agent {
11
public class Agent {
12
    private long   id;
12
    private long    id;
13
    private String emailId;
13
    private String  emailId;
14
    private String password;
14
    private String  password;
15
    private String name;
15
    private String  name;
16
    private long   managerId;
16
    private long    managerId;
-
 
17
    private boolean is_active;
17
 
18
 
-
 
19
 
18
    /**
20
	/**
19
     * Converts our domain model object from its thrift object representation.
21
     * Converts our domain model object from its thrift object representation.
20
     * @param tAgent
22
     * @param tAgent
21
     * @return
23
     * @return
22
     */
24
     */
23
    public static Agent create(in.shop2020.crm.Agent tAgent)
25
    public static Agent create(in.shop2020.crm.Agent tAgent)
Line 26... Line 28...
26
        agent.id = tAgent.getId();
28
        agent.id = tAgent.getId();
27
        agent.name = tAgent.getName();
29
        agent.name = tAgent.getName();
28
        agent.emailId = tAgent.getEmailId();
30
        agent.emailId = tAgent.getEmailId();
29
        agent.managerId = tAgent.getManagerId();
31
        agent.managerId = tAgent.getManagerId();
30
        agent.password = tAgent.getPassword();
32
        agent.password = tAgent.getPassword();
-
 
33
        agent.is_active = tAgent.isIs_active();
31
        return agent;
34
        return agent;
32
    }
35
    }
33
 
36
 
34
    /**
37
    /**
35
     * Converts this model object to corresponding thrift object representation.
38
     * Converts this model object to corresponding thrift object representation.
Line 41... Line 44...
41
        tAgent.setEmailId(emailId);
44
        tAgent.setEmailId(emailId);
42
        tAgent.setId(id);
45
        tAgent.setId(id);
43
        tAgent.setName(name);
46
        tAgent.setName(name);
44
        tAgent.setManagerId(managerId);
47
        tAgent.setManagerId(managerId);
45
        tAgent.setPassword(password);
48
        tAgent.setPassword(password);
-
 
49
        tAgent.setIs_active(is_active);
46
        return tAgent;
50
        return tAgent;
47
    }
51
    }
48
 
52
 
49
    public long getId() {
53
    public long getId() {
50
        return id;
54
        return id;
Line 83... Line 87...
83
    }
87
    }
84
 
88
 
85
    public void setManagerId(long managerId) {
89
    public void setManagerId(long managerId) {
86
        this.managerId = managerId;
90
        this.managerId = managerId;
87
    }
91
    }
-
 
92
    
-
 
93
    public boolean isIs_active() {
-
 
94
		return is_active;
-
 
95
	}
-
 
96
 
-
 
97
	public void setIs_active(boolean is_active) {
-
 
98
		this.is_active = is_active;
-
 
99
	}
88
}
100
}