com.urbanairship.api.schedule.model.ScheduleValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The Urban Airship Java client library
/*
* Copyright 2013 Urban Airship and Contributors
*/
package com.urbanairship.api.schedule.model;
import com.urbanairship.api.common.parse.APIParsingException;
public class ScheduleValidator {
public void validate(Schedule schedule) throws APIParsingException {
if (schedule.getScheduledTimestamp().isBeforeNow()) {
throw new APIParsingException(String.format("Cannot schedule for the past %s", schedule.getScheduledTimestamp().toString()));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy