package com.example.myapplication.model;

import com.google.gson.annotations.SerializedName;

// Project.java
public class Project {
    @SerializedName("projectId")
    private String projectId;

    @SerializedName("projectName")
    private String projectName;

    @SerializedName("status")
    private int status;

    @SerializedName("client")
    private String client;

    @SerializedName("clientContact")
    private String clientContact;

    @SerializedName("clientPhone")
    private String clientPhone;

    @SerializedName("constructorIds")
    private String constructorIds;

    @SerializedName("constructorName")
    private String constructorName;

    @SerializedName("coverUrl")
    private String coverUrl;

    @SerializedName("createTime")
    private String createTime;

    @SerializedName("farmAddress")
    private String farmAddress;

    @SerializedName("farmName")
    private String farmName;

    @SerializedName("inspectionContact")
    private String inspectionContact;

    @SerializedName("inspectionPhone")
    private String inspectionPhone;

    @SerializedName("inspectionUnit")
    private String inspectionUnit;

    @SerializedName("projectManagerId")
    private String projectManagerId;

    @SerializedName("projectManagerName")
    private String projectManagerName;

    @SerializedName("scale")
    private String scale;

    @SerializedName("statusLabel")
    private String statusLabel;

    @SerializedName("turbineModel")
    private String turbineModel;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getClientPhone() {
        return clientPhone;
    }

    public void setClientPhone(String clientPhone) {
        this.clientPhone = clientPhone;
    }

    public String getConstructorIds() {
        return constructorIds;
    }

    public void setConstructorIds(String constructorIds) {
        this.constructorIds = constructorIds;
    }

    public String getClientContact() {
        return clientContact;
    }

    public void setClientContact(String clientContact) {
        this.clientContact = clientContact;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getConstructorName() {
        return constructorName;
    }

    public void setConstructorName(String constructorName) {
        this.constructorName = constructorName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getFarmName() {
        return farmName;
    }

    public void setFarmName(String farmName) {
        this.farmName = farmName;
    }

    public String getFarmAddress() {
        return farmAddress;
    }

    public void setFarmAddress(String farmAddress) {
        this.farmAddress = farmAddress;
    }

    public String getInspectionPhone() {
        return inspectionPhone;
    }

    public void setInspectionPhone(String inspectionPhone) {
        this.inspectionPhone = inspectionPhone;
    }

    public String getInspectionContact() {
        return inspectionContact;
    }

    public void setInspectionContact(String inspectionContact) {
        this.inspectionContact = inspectionContact;
    }

    public String getInspectionUnit() {
        return inspectionUnit;
    }

    public void setInspectionUnit(String inspectionUnit) {
        this.inspectionUnit = inspectionUnit;
    }

    public String getProjectManagerId() {
        return projectManagerId;
    }

    public void setProjectManagerId(String projectManagerId) {
        this.projectManagerId = projectManagerId;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getProjectManagerName() {
        return projectManagerName;
    }

    public void setProjectManagerName(String projectManagerName) {
        this.projectManagerName = projectManagerName;
    }

    public String getStatusLabel() {
        return statusLabel;
    }

    public void setStatusLabel(String statusLabel) {
        this.statusLabel = statusLabel;
    }

    public String getTurbineModel() {
        return turbineModel;
    }

    public void setTurbineModel(String turbineModel) {
        this.turbineModel = turbineModel;
    }

    // Getters and Setters
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }
    public Project(String projectId, String projectName) {
        this.projectId = projectId;
        this.projectName = projectName;
    }
    // 其他字段的 getter/setter 按需添加...
    // 建议使用 Android Studio 的 "Generate" -> "Getter and Setter" 自动生成


    @Override
    public String toString() {
        return projectName + " (" + projectId + ")";
    }
}