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