package com.kym.entity.queryParams;

import com.kym.entity.common.PageParams;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceQueryParams extends PageParams {

    private Long id;
    private String shortId;
    private String stationId;
    private String productKey;
    private String deviceName;
    private Boolean hasFoam;
    private Boolean hasWater;
    private Boolean hasPa;

    public DeviceQueryParams(String shortId, String productKey, String deviceName) {
        this.shortId = shortId;
        this.stationId = shortId.substring(0, 3);
        this.productKey = productKey;
        this.deviceName = deviceName;
    }
}
