Project

General

Profile

1
package eu.dnetlib.uoaadmintools.entities;
2

    
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
import org.springframework.data.annotation.Id;
5

    
6
import java.util.List;
7

    
8
/**
9
 * Created by argirok on 2/3/2018.
10
 */
11
public class Subscriber {
12
    @Id
13
    @JsonProperty("_id")
14
    private String id;
15

    
16
    private String email;
17

    
18
    public Subscriber() {}
19
    public Subscriber(String email) {
20
        this.email = email;
21
    }
22

    
23
    public String getId() {
24
        return id;
25
    }
26

    
27
    public void setId(String id) {
28
        this.id = id;
29
    }
30

    
31
    public String getEmail() {
32
        return email;
33
    }
34

    
35
    public void setEmail(String email) {
36
        this.email = email;
37
    }
38

    
39
    @Override
40
    public String toString() {
41
        return "Subscriber{" +
42
                "id='" + id + '\'' +
43
                ", email='" + email + '\'' +
44
                '}';
45
    }
46
}
(26-26/28)