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

nl.vpro.domain.api.suggest.Suggest Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
/*
 * Copyright (C) 2014 All rights reserved
 * VPRO The Netherlands
 */
package nl.vpro.domain.api.suggest;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Roelof Jan Koekoek
 * @since 3.2
 */
public class Suggest {

    @JsonProperty
    private String input;

    @JsonProperty
    private String output;

    @JsonProperty
    private Integer weight;

    public Suggest() {
    }

    public Suggest(Query query) {
        input = query.getId();
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy