All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javapns.notification.management.CalendarSubscriptionPayload Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package javapns.notification.management;

import org.json.*;

/**
 * An MDM payload for CalendarSubscription.
 * 
 * @author Sylvain Pedneault
 */
public class CalendarSubscriptionPayload extends MobileConfigPayload {

	public CalendarSubscriptionPayload(int payloadVersion, String payloadOrganization, String payloadIdentifier, String payloadDisplayName, String subCalAccountHostName, boolean subCalAccountUseSSL) throws JSONException {
		super(payloadVersion, "com.apple.caldav.account", payloadOrganization, payloadIdentifier, payloadDisplayName);
		JSONObject payload = getPayload();
		payload.put("SubCalAccountHostName", subCalAccountHostName);
		payload.put("SubCalAccountUseSSL", subCalAccountUseSSL);
	}


	public void setSubCalAccountDescription(String value) throws JSONException {
		getPayload().put("SubCalAccountDescription", value);
	}


	public void setSubCalAccountUsername(String value) throws JSONException {
		getPayload().put("SubCalAccountUsername", value);
	}


	public void setSubCalAccountPassword(String value) throws JSONException {
		getPayload().put("SubCalAccountPassword", value);
	}


	public void setSubCalAccountUseSSL(boolean value) throws JSONException {
		getPayload().put("SubCalAccountUseSSL", value);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy