package com.its.vms.xnettcp.vms.process;

import com.its.vms.dto.TbVmsCtlrDto;
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 TbVmsCtlrDto obj;
    private ChannelHandlerContext ctx;
    private Object data;

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