Android Open Source - bgBanking Banking Contract






From Project

Back to project page bgBanking.

License

The source code is released under:

Apache License

If you think the Android project bgBanking listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*******************************************************************************
 * Copyright (c) 2012 MASConsult Ltd/* w  w  w  . j  a  v  a2 s.co m*/
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

package eu.masconsult.bgbanking.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public class BankingContract {

    /** The authority for the Banking provider */
    public static final String AUTHORITY = "eu.masconsult.bgbanking";

    private BankingContract() {
        // this class cannot be initialized ever
    }

    /**
     * Accounts table contract
     */
    public static final class BankAccount implements BaseColumns {

        // This class cannot be instantiated
        private BankAccount() {
        }

        /**
         * The table name offered by this provider
         */
        public static final String TABLE_NAME = "accounts";

        /*
         * URI definitions
         */

        /**
         * The scheme part for this provider's URI
         */
        private static final String SCHEME = "content://";

        /**
         * Path parts for the URIs
         */

        /**
         * Path part for the Accounts URI
         */
        private static final String PATH_ACCOUNTS = "/accounts";

        /**
         * Path part for the Account ID URI
         */
        private static final String PATH_ACCOUNT_ID = "/accounts/";

        /**
         * 0-relative position of an account ID segment in the path part of a
         * account ID URI
         */
        public static final int ACCOUNT_ID_PATH_POSITION = 1;

        /**
         * The content:// style URL for this table
         */
        public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + PATH_ACCOUNTS);

        /**
         * The content URI base for a single account. Callers must append a
         * account id to this Uri to retrieve an account
         */
        public static final Uri CONTENT_ID_URI_BASE = Uri.parse(SCHEME + AUTHORITY
                + PATH_ACCOUNT_ID);

        /**
         * The content URI match pattern for a single account, specified by its
         * ID. Use this to match incoming URIs or to construct an Intent.
         */
        public static final Uri CONTENT_ID_URI_PATTERN = Uri.parse(SCHEME + AUTHORITY
                + PATH_ACCOUNT_ID + "/#");

        /*
         * MIME type definitions
         */
        /**
         * The MIME type of {@link #CONTENT_URI} providing a directory of
         * accounts.
         */
        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.eu.masconsult.bgbanking.account";

        /**
         * The MIME type of a {@link #CONTENT_URI} sub-directory of a single
         * account.
         */
        public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.eu.masconsult.bgbanking.account";

        /**
         * The default sort order for this table
         */
        public static final String DEFAULT_SORT_ORDER = "name";

        /*
         * Column definitions
         */

        /**
         * Column name for the name of the bank account
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String COLUMN_NAME_NAME = "name";

        /**
         * Column name for the server id of the bank account
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String COLUMN_NAME_SERVER_ID = "server_id";

        /**
         * Column name for the iban of the bank account
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String COLUMN_NAME_IBAN = "iban";

        /**
         * Column name of the account currency
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String COLUMN_NAME_CURRENCY = "currency";

        /**
         * Column name of the account balance
         * <P>
         * Type: FLOAT
         * </P>
         */
        public static final String COLUMN_NAME_BALANCE = "balance";

        /**
         * Column name of the account available balance
         * <P>
         * Type: FLOAT
         * </P>
         */
        public static final String COLUMN_NAME_AVAILABLE_BALANCE = "available_balance";

        /**
         * Column name for the last transaction date
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String COLUMN_NAME_LAST_TRANSACTION_DATE = "last_transaction";

        /**
         * Column name for the account type that owns this record
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String ACCOUNT_TYPE = "account_type";

        /**
         * Column name for the account name that owns this record
         * <P>
         * Type: TEXT
         * </P>
         */
        public static final String ACCOUNT_NAME = "account_name";

        public static final String CALLER_IS_SYNCADAPTER = "__caller_is_sync_adapter";
    }
}




Java Source Code List

eu.masconsult.bgbanking.BankAdapter.java
eu.masconsult.bgbanking.BankingApplication.java
eu.masconsult.bgbanking.Constants.java
eu.masconsult.bgbanking.accounts.AccountAuthenticator.java
eu.masconsult.bgbanking.accounts.AuthenticationService.java
eu.masconsult.bgbanking.accounts.LoginActivity.java
eu.masconsult.bgbanking.activity.HomeActivity.java
eu.masconsult.bgbanking.activity.fragment.AccountsListFragment.java
eu.masconsult.bgbanking.activity.fragment.ChooseAccountTypeFragment.java
eu.masconsult.bgbanking.banks.BankClient.java
eu.masconsult.bgbanking.banks.Bank.java
eu.masconsult.bgbanking.banks.CaptchaException.java
eu.masconsult.bgbanking.banks.RawBankAccount.java
eu.masconsult.bgbanking.banks.dskbank.AuthenticationService.java
eu.masconsult.bgbanking.banks.dskbank.DskClient.java
eu.masconsult.bgbanking.banks.dskbank.SyncService.java
eu.masconsult.bgbanking.banks.fibank.ebanking.AuthenticationService.java
eu.masconsult.bgbanking.banks.fibank.ebanking.EFIBankClient.java
eu.masconsult.bgbanking.banks.fibank.ebanking.SyncService.java
eu.masconsult.bgbanking.banks.fibank.my.AuthenticationService.java
eu.masconsult.bgbanking.banks.fibank.my.MyFIBankClient.java
eu.masconsult.bgbanking.banks.fibank.my.SyncService.java
eu.masconsult.bgbanking.banks.procreditbank.AuthenticationService.java
eu.masconsult.bgbanking.banks.procreditbank.ProcreditClient.java
eu.masconsult.bgbanking.banks.procreditbank.SyncService.java
eu.masconsult.bgbanking.banks.sgexpress.AuthenticationService.java
eu.masconsult.bgbanking.banks.sgexpress.SGExpressClient.java
eu.masconsult.bgbanking.banks.sgexpress.SyncService.java
eu.masconsult.bgbanking.platform.BankAccountManager.java
eu.masconsult.bgbanking.platform.BankAccountOperations.java
eu.masconsult.bgbanking.platform.BatchOperation.java
eu.masconsult.bgbanking.provider.BankingContract.java
eu.masconsult.bgbanking.provider.BankingProvider.java
eu.masconsult.bgbanking.sync.SyncAdapter.java
eu.masconsult.bgbanking.sync.SyncService.java
eu.masconsult.bgbanking.ui.LightProgressDialog.java
eu.masconsult.bgbanking.utils.Convert.java
eu.masconsult.bgbanking.utils.CookieQuotesFixerResponseInterceptor.java
eu.masconsult.bgbanking.utils.CookieRequestInterceptor.java
eu.masconsult.bgbanking.utils.DumpHeadersRequestInterceptor.java
eu.masconsult.bgbanking.utils.DumpHeadersResponseInterceptor.java
eu.masconsult.bgbanking.utils.SampleCursor.java