1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.opencastproject.userdirectory.moodle;
23
24 import java.util.Objects;
25
26 public class MoodleUser {
27 private String id;
28 private String username;
29 private String fullname;
30 private String idnumber;
31 private String email;
32 private String auth;
33
34 public String getId() {
35 return id;
36 }
37
38 public void setId(String id) {
39 this.id = id;
40 }
41
42 public String getUsername() {
43 return username;
44 }
45
46 public void setUsername(String username) {
47 this.username = username;
48 }
49
50 public String getFullname() {
51 return fullname;
52 }
53
54 public void setFullname(String fullname) {
55 this.fullname = fullname;
56 }
57
58 public String getIdnumber() {
59 return idnumber;
60 }
61
62 public void setIdnumber(String idnumber) {
63 this.idnumber = idnumber;
64 }
65
66 public String getEmail() {
67 return email;
68 }
69
70 public void setEmail(String email) {
71 this.email = email;
72 }
73
74 public String getAuth() {
75 return auth;
76 }
77
78 public void setAuth(String auth) {
79 this.auth = auth;
80 }
81
82 @Override
83 public boolean equals(Object o) {
84 if (this == o) {
85 return true;
86 }
87 if (o == null || getClass() != o.getClass()) {
88 return false;
89 }
90 MoodleUser that = (MoodleUser) o;
91 return Objects.equals(id, that.id) && Objects.equals(username, that.username) && Objects
92 .equals(fullname, that.fullname) && Objects.equals(idnumber, that.idnumber) && Objects
93 .equals(email, that.email) && Objects.equals(auth, that.auth);
94 }
95
96 @Override
97 public int hashCode() {
98 return Objects.hash(id, username, fullname, idnumber, email, auth);
99 }
100
101 @Override
102 public String toString() {
103 return "MoodleUser{" + "id=" + id + ", username='" + username + '\'' + ", fullname='" + fullname + '\''
104 + ", idnumber='" + idnumber + '\'' + ", email='" + email + '\'' + ", auth='" + auth + '\'' + '}';
105 }
106 }