package com.handset.serialportsensor.bean;

import android.support.annotation.DrawableRes;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.handset.serialportsensor.adapter.LeftAdapter;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LeftHeadBean extends AbstractExpandableItem<LeftDetailBean> implements MultiItemEntity {
    @DrawableRes
    private int imageRes;
    private String title;
    private String value;
    private String spKey;

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
        return LeftAdapter.TYPE_HEAD;
    }
}
