X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/d70e5b37c26d60f9b0a124afa0f516c9ba69d05a..6326d6f56558e96e7b50696a5a852323cde51489:/src/com/owncloud/android/authentication/OwnCloudAccount.java diff --git a/src/com/owncloud/android/authentication/OwnCloudAccount.java b/src/com/owncloud/android/authentication/OwnCloudAccount.java deleted file mode 100644 index 4e819b90..00000000 --- a/src/com/owncloud/android/authentication/OwnCloudAccount.java +++ /dev/null @@ -1,61 +0,0 @@ -/* ownCloud Android client application - * Copyright (C) 2014 ownCloud Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -package com.owncloud.android.authentication; - -import com.owncloud.android.lib.common.OwnCloudCredentials; - -import android.accounts.Account; -import android.content.Context; -import android.net.Uri; - -/** - * OwnCloud Account - * - * @author David A. Velasco - */ -public class OwnCloudAccount { - - private Uri mBaseUri; - - private OwnCloudCredentials mCredentials; - - public OwnCloudAccount(Account savedAccount, Context context) { - - } - - public OwnCloudAccount(Uri baseUri, OwnCloudCredentials credentials) { - if (baseUri == null) { - throw new IllegalArgumentException("Parameter 'baseUri' cannot be null"); - } - mBaseUri = baseUri; - mCredentials = credentials; - } - - public boolean isAnonymous() { - return (mCredentials == null); - } - - public Uri getBaseUri() { - return mBaseUri; - } - - public OwnCloudCredentials getCredentials() { - return mCredentials; - } - -}