64 lines
1.5 KiB
Java
64 lines
1.5 KiB
Java
package com.gzzn.omms.msgexchangeapi.msghandler;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import com.gzzn.omms.msgexchangeapi.entity.msg.SCHD;
|
|
|
|
public class HandlerResult {
|
|
private Boolean isSuccess;//是否更新成功
|
|
private List<SCHD.FLTR> fltrs; //影响的航班动态信息
|
|
|
|
public Boolean getIsSuccess() {
|
|
return isSuccess;
|
|
}
|
|
public void setIsSuccess(Boolean isSuccess) {
|
|
this.isSuccess = isSuccess;
|
|
}
|
|
public List<SCHD.FLTR> getFltrs() {
|
|
return fltrs;
|
|
}
|
|
public void setFltrs(List<SCHD.FLTR> fltrs) {
|
|
this.fltrs = fltrs;
|
|
}
|
|
|
|
public static HandlerResult success()
|
|
{
|
|
HandlerResult handlerResult = new HandlerResult();
|
|
handlerResult.isSuccess = true;
|
|
|
|
return handlerResult;
|
|
}//end function
|
|
|
|
|
|
public static HandlerResult success(SCHD.FLTR fltr)
|
|
{
|
|
HandlerResult handlerResult = new HandlerResult();
|
|
handlerResult.isSuccess = true;
|
|
|
|
List<SCHD.FLTR> fltrs = new ArrayList();
|
|
fltrs.add(fltr);
|
|
|
|
handlerResult.fltrs = fltrs;
|
|
|
|
return handlerResult;
|
|
}//end function
|
|
|
|
public static HandlerResult success(List<SCHD.FLTR> fltrs)
|
|
{
|
|
HandlerResult handlerResult = new HandlerResult();
|
|
handlerResult.isSuccess = true;
|
|
handlerResult.fltrs = fltrs;
|
|
|
|
return handlerResult;
|
|
}//end function
|
|
|
|
public static HandlerResult failure()
|
|
{
|
|
HandlerResult handlerResult = new HandlerResult();
|
|
handlerResult.isSuccess = false;
|
|
|
|
return handlerResult;
|
|
}//end function
|
|
}
|