mirror of https://github.com/etesync/android
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
/*******************************************************************************
|
|
* Copyright (c) 2014 Ricki Hirner (bitfire web engineering).
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Public License v3.0
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/gpl.html
|
|
******************************************************************************/
|
|
package at.bitfire.davdroid.resource;
|
|
|
|
import java.net.URISyntaxException;
|
|
|
|
import at.bitfire.davdroid.webdav.DavMultiget;
|
|
import org.apache.http.impl.client.CloseableHttpClient;
|
|
|
|
public class CalDavCalendar extends RemoteCollection<Event> {
|
|
//private final static String TAG = "davdroid.CalDavCalendar";
|
|
|
|
@Override
|
|
protected String memberContentType() {
|
|
return "text/calendar";
|
|
}
|
|
|
|
@Override
|
|
protected DavMultiget.Type multiGetType() {
|
|
return DavMultiget.Type.CALENDAR;
|
|
}
|
|
|
|
@Override
|
|
protected Event newResourceSkeleton(String name, String ETag) {
|
|
return new Event(name, ETag);
|
|
}
|
|
|
|
|
|
public CalDavCalendar(CloseableHttpClient httpClient, String baseURL, String user, String password, boolean preemptiveAuth) throws URISyntaxException {
|
|
super(httpClient, baseURL, user, password, preemptiveAuth);
|
|
}
|
|
}
|