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

org.imsglobal.lti2.objects.consumer.ServiceOffered Maven / Gradle / Ivy

Go to download

BasicLTI Utilities are a set of utility classes to aid in the development of BasicLTI consumers and providers. They deal with much of the heavy lifting and make the process more opaque to the developer.

The newest version!

package org.imsglobal.lti2.objects.consumer;

import java.util.HashMap;
import java.util.Map;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
import javax.annotation.Generated;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("com.googlecode.jsonschema2pojo")
@JsonPropertyOrder({
    "@type",
    "@id",
    "endpoint",
    "format",
    "action"
})
public class ServiceOffered {

    @JsonProperty("@type")
    private String _type;
    @JsonProperty("@id")
    private String _id;
    @JsonProperty("endpoint")
    private String endpoint;
    @JsonProperty("format")
    private List format = new ArrayList();
    @JsonProperty("action")
    private List action = new ArrayList();
    private Map additionalProperties = new HashMap();

    public ServiceOffered() { }

    public ServiceOffered(String endpoint, String id, String type, String format, String action) {
        this.endpoint = endpoint;
        this._id = id;
        this._type = type;
        this.format.add(format);
        this.action.add(action);
    }

    public ServiceOffered(String endpoint, String id, String type, String[] format, String[] action) {
        this.endpoint = endpoint;
        this._id = id;
        this._type = type;
        Collections.addAll(this.format, format);
        Collections.addAll(this.action, action);
    }
    
    @JsonProperty("@type")
    public String get_type() {
        return _type;
    }

    @JsonProperty("@type")
    public void set_type(String _type) {
        this._type = _type;
    }

    @JsonProperty("@id")
    public String get_id() {
        return _id;
    }

    @JsonProperty("@id")
    public void set_id(String _id) {
        this._id = _id;
    }

    @JsonProperty("endpoint")
    public String getEndpoint() {
        return endpoint;
    }

    @JsonProperty("endpoint")
    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    @JsonProperty("format")
    public List getFormat() {
        return format;
    }

    @JsonProperty("format")
    public void setFormat(List format) {
        this.format = format;
    }

    @JsonProperty("action")
    public List getAction() {
        return action;
    }

    @JsonProperty("action")
    public void setAction(List action) {
        this.action = action;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperties(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy