use of com.qcloud.cos.model.ciModel.auditing.AbuseInfo in project cos-java-sdk-v5 by tencentyun.
the class AuditingResultUtil method getAuditingInfoList.
public static List<AuditingInfo> getAuditingInfoList(AuditingJobsDetail jobsDetail) {
List<AuditingInfo> list = new ArrayList<>();
List<SnapshotInfo> snapshotList = jobsDetail.getSnapshotList();
for (SnapshotInfo snapshotInfo : snapshotList) {
AdsInfo adsInfo = snapshotInfo.getAdsInfo();
PoliticsInfo politicsInfo = snapshotInfo.getPoliticsInfo();
PornInfo pornInfo = snapshotInfo.getPornInfo();
TerroristInfo terroristInfo = snapshotInfo.getTerroristInfo();
addAuditingInfoList(list, DetectType.Ads, adsInfo);
addAuditingInfoList(list, DetectType.Politics, politicsInfo);
addAuditingInfoList(list, DetectType.Porn, pornInfo);
addAuditingInfoList(list, DetectType.Terrorism, terroristInfo);
}
List<SectionInfo> sectionList = jobsDetail.getSectionList();
for (SectionInfo sectionInfo : sectionList) {
AdsInfo adsInfo = sectionInfo.getAdsInfo();
PoliticsInfo politicsInfo = sectionInfo.getPoliticsInfo();
PornInfo pornInfo = sectionInfo.getPornInfo();
TerroristInfo terroristInfo = sectionInfo.getTerroristInfo();
IllegalInfo illegalInfo = sectionInfo.getIllegalInfo();
AbuseInfo abuseInfo = sectionInfo.getAbuseInfo();
addAuditingInfoList(list, DetectType.Ads, adsInfo);
addAuditingInfoList(list, DetectType.Politics, politicsInfo);
addAuditingInfoList(list, DetectType.Porn, pornInfo);
addAuditingInfoList(list, DetectType.Terrorism, terroristInfo);
addAuditingInfoList(list, DetectType.Illegal, illegalInfo);
addAuditingInfoList(list, DetectType.Abuse, abuseInfo);
}
return list;
}
use of com.qcloud.cos.model.ciModel.auditing.AbuseInfo in project cos-java-sdk-v5 by tencentyun.
the class AuditingResultUtil method parsingAuditingResult.
private static void parsingAuditingResult(AuditingJobsDetail jobsDetail, AuditingResult result) {
AdsInfo adsInfo = jobsDetail.getAdsInfo();
addHitMapAndUpdateHitFlag("Ads", adsInfo);
PoliticsInfo politicsInfo = jobsDetail.getPoliticsInfo();
addHitMapAndUpdateHitFlag("Politics", politicsInfo);
PornInfo pornInfo = jobsDetail.getPornInfo();
addHitMapAndUpdateHitFlag("Porn", pornInfo);
TerroristInfo terroristInfo = jobsDetail.getTerroristInfo();
addHitMapAndUpdateHitFlag("Terrorism", terroristInfo);
AbuseInfo abuseInfo = jobsDetail.getAbuseInfo();
addHitMapAndUpdateHitFlag("Abuse", abuseInfo);
IllegalInfo illegalInfo = jobsDetail.getIllegalInfo();
addHitMapAndUpdateHitFlag("Illegal", illegalInfo);
List<SectionInfo> sectionList = jobsDetail.getSectionList();
List<SnapshotInfo> snapshotList = jobsDetail.getSnapshotList();
for (SectionInfo sectionInfo : sectionList) {
addHitMapAndUpdateHitFlag("Ads", sectionInfo.getAdsInfo());
addHitMapAndUpdateHitFlag("Politics", sectionInfo.getPoliticsInfo());
addHitMapAndUpdateHitFlag("Porn", sectionInfo.getPornInfo());
addHitMapAndUpdateHitFlag("Terrorism", sectionInfo.getTerroristInfo());
addHitMapAndUpdateHitFlag("Abuse", sectionInfo.getAbuseInfo());
addHitMapAndUpdateHitFlag("Illegal", sectionInfo.getIllegalInfo());
}
for (SnapshotInfo snapshotInfo : snapshotList) {
addHitMapAndUpdateHitFlag("Ads", snapshotInfo.getAdsInfo());
addHitMapAndUpdateHitFlag("Politics", snapshotInfo.getPoliticsInfo());
addHitMapAndUpdateHitFlag("Porn", snapshotInfo.getPornInfo());
addHitMapAndUpdateHitFlag("Terrorism", snapshotInfo.getTerroristInfo());
}
}
Aggregations