/*
 * Copyright (C) 2000 - 2025 Silverpeas
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * As a special exception to the terms and conditions of version 3.0 of
 * the GPL, you may redistribute this Program in connection with Free/Libre
 * Open Source Software ("FLOSS") applications as described in Silverpeas's
 * FLOSS exception.  You should have received a copy of the text describing
 * the FLOSS exception, and it is also available here:
 * "https://www.silverpeas.org/legal/floss_exception.html"
 *
 * 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.silverpeas.mobile.shared.dto;

import org.silverpeas.mobile.shared.dto.almanach.CalendarEventDTO;
import org.silverpeas.mobile.shared.dto.documents.PublicationDTO;
import org.silverpeas.mobile.shared.dto.navigation.aurora.AuroraSpaceHomePageConfig;
import org.silverpeas.mobile.shared.dto.navigation.SilverpeasObjectDTO;
import org.silverpeas.mobile.shared.dto.news.NewsDTO;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class HomePageDTO extends BaseDTO implements Serializable{

  private static final long serialVersionUID = 5388415881024885835L;

  private String spaceName;

  private AuroraSpaceHomePageConfig auroraConfig;

  private List<SilverpeasObjectDTO> spacesAndApps;
  private List<NewsDTO> news = new ArrayList<NewsDTO>();
  private List<MyLinkDTO> favorites = new ArrayList<MyLinkDTO>();
  private List<PublicationDTO> lastPublications = new ArrayList<PublicationDTO>();
  private List<CalendarEventDTO> lastEvents = new ArrayList<CalendarEventDTO>();
  private List<ShortCutLinkDTO> shortCuts = new ArrayList<>();
  private List<ShortCutLinkDTO> tools = new ArrayList<>();
  private String htmlFreeZone;
  private String newsDisplayer;

  public final static String NEWS_DISPLAYER_CARROUSEL = "carrousel";
  public final static String NEWS_DISPLAYER_LIST = "list";

  public String getHtmlFreeZoneThin() {
    return htmlFreeZoneThin;
  }

  public void setHtmlFreeZoneThin(final String htmlFreeZoneThin) {
    this.htmlFreeZoneThin = htmlFreeZoneThin;
  }

  private String htmlFreeZoneThin;

  public List<PublicationDTO> getLastPublications() {
    return lastPublications;
  }

  public void setLastPublications(final List<PublicationDTO> lastPublications) {
    this.lastPublications = lastPublications;
  }

  public List<NewsDTO> getNews() {
    return news;
  }

  public void setNews(final List<NewsDTO> news) {
    this.news = news;
  }

  public List<MyLinkDTO> getFavorites() {
    return favorites;
  }

  public void setFavorites(final List<MyLinkDTO> favorites) {
    this.favorites = favorites;
  }

  public List<SilverpeasObjectDTO> getSpacesAndApps() {
    return spacesAndApps;
  }

  public void setSpacesAndApps(final List<SilverpeasObjectDTO> spacesAndApps) {
    this.spacesAndApps = spacesAndApps;
  }

  public String getSpaceName() {
    return spaceName;
  }

  public void setSpaceName(final String spaceName) {
    this.spaceName = spaceName;
  }

  public void setLastEvents(final List<CalendarEventDTO> lastEvents) {
    this.lastEvents = lastEvents;
  }
  public List<CalendarEventDTO> getLastEvents() {
    return lastEvents;
  }

  public List<ShortCutLinkDTO> getShortCuts() {
    return shortCuts;
  }

  public void setShortCuts(final List<ShortCutLinkDTO> shortCuts) {
    this.shortCuts = shortCuts;
  }

  public String getHtmlFreeZone() {
    return htmlFreeZone;
  }

  public void setHtmlFreeZone(final String htmlFreeZone) {
    this.htmlFreeZone = htmlFreeZone;
  }

  public List<ShortCutLinkDTO> getTools() {
    return tools;
  }

  public void setTools(final List<ShortCutLinkDTO> tools) {
    this.tools = tools;
  }

  public String getNewsDisplayer() {
    return newsDisplayer;
  }

  public void setNewsDisplayer(final String newsDisplayer) {
    this.newsDisplayer = newsDisplayer;
  }

  public AuroraSpaceHomePageConfig getAuroraConfig() {
    return auroraConfig;
  }

  public void setAuroraConfig(AuroraSpaceHomePageConfig auroraConfig) {
    this.auroraConfig = auroraConfig;
  }
}
