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

io.ultreia.gc.model.GcFieldNote Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package io.ultreia.gc.model;

/*-
 * #%L
 * GC toolkit :: API
 * %%
 * Copyright (C) 2017 Ultreia.io
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

/**
 * Created by tchemit on 15/04/17.
 *
 * @author Tony Chemit - [email protected]
 */
public class GcFieldNote {

    private final String name;
    private final String url;
    private final String composeUrl;
    private final String date;
    private final String logType;
    private boolean favorite;
    private boolean selected;

    public GcFieldNote(String name, String url, String composeUrl, String date, String logType) {
        this.name = name;
        this.url = url;
        this.composeUrl = composeUrl;
        this.date = date;
        this.logType = logType;
    }

    public String getDate() {
        return date;
    }

    public String getLogType() {
        return logType;
    }

    public String getName() {
        return name;
    }

    public String getUrl() {
        return url;
    }

    public boolean isFavorite() {
        return favorite;
    }

    public void setFavorite(boolean favorite) {
        this.favorite = favorite;
    }

    public String getComposeUrl() {
        return composeUrl;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    @Override
    public String toString() {
        return String.format("%s - %s (%s)", name, date, logType);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy