Search in sources :

Example 1 with StayInformed

use of net.fortuna.ical4j.model.parameter.StayInformed in project bw-calendar-engine by Bedework.

the class IcalUtil method getVoter.

/**
 * @param cb          IcalCallback object
 * @param vProp
 * @return BwAttendee
 * @throws Throwable
 */
public static BwAttendee getVoter(final IcalCallback cb, final Voter vProp) throws Throwable {
    ParameterList pars = vProp.getParameters();
    BwAttendee att = initAttendeeVoter(cb, vProp.getValue(), pars);
    att.setType(BwAttendee.typeVoter);
    Parameter par = pars.getParameter("STAY-INFORMED");
    if (par != null) {
        att.setStayInformed(((StayInformed) par).getStayInformed().booleanValue());
    }
    return att;
}
Also used : StayInformed(net.fortuna.ical4j.model.parameter.StayInformed) ParameterList(net.fortuna.ical4j.model.ParameterList) Parameter(net.fortuna.ical4j.model.Parameter) BwAttendee(org.bedework.calfacade.BwAttendee)

Aggregations

Parameter (net.fortuna.ical4j.model.Parameter)1 ParameterList (net.fortuna.ical4j.model.ParameterList)1 StayInformed (net.fortuna.ical4j.model.parameter.StayInformed)1 BwAttendee (org.bedework.calfacade.BwAttendee)1