package com.toshibabd.customermanagement.model;

public class Customer {

    private int id;
    private String name;
    private String mobileNumber;
    private String productLabel;
    private String category;
    private String note; // ⭐️ NEW FIELD
    private boolean isSent;
    private String sentDate;

    // Default constructor (Needed for Retrofit/JSON deserialization)
    public Customer() {
    }

    // Constructor for adding new customer (without ID, isSent, sentDate)
    // ⭐️ UPDATED CONSTRUCTOR
    public Customer(String name, String mobileNumber, String productLabel, String category, String note) {
        this.name = name;
        this.mobileNumber = mobileNumber;
        this.productLabel = productLabel;
        this.category = category;
        this.note = note;
        this.isSent = false;
        this.sentDate = null;
    }

    // Constructor for all fields (mainly used internally or by DB loading)
    public Customer(int id, String name, String mobileNumber, String productLabel, String category, String note, boolean isSent, String sentDate) {
        this.id = id;
        this.name = name;
        this.mobileNumber = mobileNumber;
        this.productLabel = productLabel;
        this.category = category;
        this.note = note;
        this.isSent = isSent;
        this.sentDate = sentDate;
    }

    // --- Getters ---
    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public String getProductLabel() {
        return productLabel;
    }

    public String getCategory() {
        return category;
    }

    // ⭐️ NEW GETTER
    public String getNote() {
        return note;
    }

    public boolean isSent() {
        return isSent;
    }

    public String getSentDate() {
        return sentDate;
    }

    // --- Setters ---
    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public void setProductLabel(String productLabel) {
        this.productLabel = productLabel;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    // ⭐️ NEW SETTER
    public void setNote(String note) {
        this.note = note;
    }

    public void setSent(boolean sent) {
        isSent = sent;
    }

    public void setSentDate(String sentDate) {
        this.sentDate = sentDate;
    }
}