1
0
mirror of https://github.com/etesync/android synced 2025-05-09 10:28:50 +00:00
etesync-android/src/at/bitfire/davdroid/resource/CardDavAddressBook.java
rfc2822 9a9d9709c9 various improvements
* fixed annoying bug where all imported contacts where starred
* checkbox for preemptive authentication in setup
* support for (non-preemptive) Digest authentication
* add UID when received entities don't contain one
* version bump to 0.3.2-alpha
* build.xml for ant/Fdroid
2013-10-12 13:38:13 +02:00

38 lines
1.2 KiB
Java

/*******************************************************************************
* Copyright (c) 2013 Richard 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.io.IOException;
import java.net.URISyntaxException;
import at.bitfire.davdroid.webdav.WebDavCollection.MultigetType;
public class CardDavAddressBook extends RemoteCollection<Contact> {
//private final static String TAG = "davdroid.CardDavAddressBook";
@Override
protected String memberContentType() {
return "text/vcard";
}
@Override
protected MultigetType multiGetType() {
return MultigetType.ADDRESS_BOOK;
}
@Override
protected Contact newResourceSkeleton(String name, String ETag) {
return new Contact(name, ETag);
}
public CardDavAddressBook(String baseURL, String user, String password, boolean preemptiveAuth) throws IOException, URISyntaxException {
super(baseURL, user, password, preemptiveAuth);
}
}