package com.example.pap_teste.models;

import java.io.Serializable;

public class Restaurant implements Serializable {
    private String name;
    private String category;
    private String email;
    private boolean available;
    private String logoUrl;
    private Double ratingAvg;
    private Integer ratingCount;
    private boolean fechadoWebsite;

    // No-argument constructor required for Firebase
    public Restaurant() {
    }

    public Restaurant(String name, String category, String email, boolean available) {
        this.name = name;
        this.category = category;
        this.email = email;
        this.available = available;
    }

    public Restaurant(String name, String category, String email, boolean available, String logoUrl) {
        this.name = name;
        this.category = category;
        this.email = email;
        this.available = available;
        this.logoUrl = logoUrl;
    }

    public String getName() { return name; }
    public String getCategory() { return category; }
    public String getEmail() { return email; }
    public boolean isAvailable() { return available; }
    public String getLogoUrl() { return logoUrl; }

    public void setName(String name) { this.name = name; }
    public void setCategory(String category) { this.category = category; }
    public void setEmail(String email) { this.email = email; }
    public void setAvailable(boolean available) { this.available = available; }
    public void setLogoUrl(String logoUrl) { this.logoUrl = logoUrl; }
    public boolean isFechadoWebsite() { return fechadoWebsite; }
    public void setFechadoWebsite(boolean fechadoWebsite) { this.fechadoWebsite = fechadoWebsite; }
    
    public Double getRatingAvg() { return ratingAvg; }
    public void setRatingAvg(Double ratingAvg) { this.ratingAvg = ratingAvg; }
    public Integer getRatingCount() { return ratingCount; }
    public void setRatingCount(Integer ratingCount) { this.ratingCount = ratingCount; }
    
    private java.util.Map<String, ScheduleDay> schedule;
    public java.util.Map<String, ScheduleDay> getSchedule() { return schedule; }
    public void setSchedule(java.util.Map<String, ScheduleDay> schedule) { this.schedule = schedule; }
}
