Commit e23bf0dc by zhouhaibao

[+]包结构调整

2 parents 7f29c4cb 0d9c080d
package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base;
import lombok.Getter;
import lombok.Setter;
/**
* 由平台向终端推送通知
*
* @author kome
* @date 2023年11月3日 下午3:58:59
* @param <D>
*/
@Getter
@Setter
public class TcpNotify<D extends TcpData> extends TcpBase<D> {
public TcpNotify(byte type) {
super(type);
}
public TcpNotify() {
this(TcpMapper.CMD_BLANK.getType());
}
}
package cn.com.glsx.charging.modules.gbt.ocpp16.tcp.handler.notify;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpBase;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpData;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpHandler;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.base.TcpNotify;
import io.netty.channel.Channel;
public class DefaultNotifyHandler implements TcpHandler<TcpNotify<TcpData>, TcpBase<TcpData>> {
@Override
public TcpBase<TcpData> handle(Channel channel, TcpNotify<TcpData> notify) {
// TODO client端收到notify后怎么处理
return null;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!