package com.its.vds.xnettcp.vds.process;

import com.its.vds.dto.TbVdsCtlrDto;
import io.netty.channel.ChannelHandlerContext;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TcpServerRecvData {
    public static final int DATA_TYPE_REQ_PACKET = 0;
    public static final int DATA_TYPE_RES_PACKET = 1;

    private int type;
    private TbVdsCtlrDto obj;
    private ChannelHandlerContext ctx;
    private Object data;

    public TcpServerRecvData(int type, TbVdsCtlrDto obj, ChannelHandlerContext ctx, Object data) {
        this.type = type;
        this.obj  = obj;
        this.ctx  = ctx;
        this.data = data;
    }
}
