All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tsugi.shared.objects.Contact Maven / Gradle / Ivy

The newest version!

package org.tsugi.shared.objects;

// This is used in LTI2 and CASA but differently

import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonPropertyOrder({
    "name",
    "email"
})
public class Contact extends org.tsugi.jackson.objects.JacksonBase {

    @JsonProperty("name")
    private String name;

    @JsonProperty("email")
    private String email;

    public Contact(String name, String email) {
        this.name = name;
        this.email = email;
    }

    @JsonProperty("name")
    public String getName() {
        return name;
    }

    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    @JsonProperty("email")
    public String getEmail() {
        return email;
    }

    @JsonProperty("email")
    public void setEmail(String email) {
        this.email = email;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy