Home | History | Annotate | Download | only in contacts
      1 /*
      2  * Copyright (C) 2010 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License
     15  */
     16 package com.android.contacts;
     17 
     18 /**
     19  * Meta-data for a contact group.  We load all groups associated with the contact's
     20  * constituent accounts.
     21  */
     22 public final class GroupMetaData {
     23     private String mAccountName;
     24     private String mAccountType;
     25     private String mDataSet;
     26     private long mGroupId;
     27     private String mTitle;
     28     private boolean mDefaultGroup;
     29     private boolean mFavorites;
     30 
     31     public GroupMetaData(String accountName, String accountType, String dataSet, long groupId,
     32             String title, boolean defaultGroup, boolean favorites) {
     33         this.mAccountName = accountName;
     34         this.mAccountType = accountType;
     35         this.mDataSet = dataSet;
     36         this.mGroupId = groupId;
     37         this.mTitle = title;
     38         this.mDefaultGroup = defaultGroup;
     39         this.mFavorites = favorites;
     40     }
     41 
     42     public String getAccountName() {
     43         return mAccountName;
     44     }
     45 
     46     public String getAccountType() {
     47         return mAccountType;
     48     }
     49 
     50     public String getDataSet() {
     51         return mDataSet;
     52     }
     53 
     54     public long getGroupId() {
     55         return mGroupId;
     56     }
     57 
     58     public String getTitle() {
     59         return mTitle;
     60     }
     61 
     62     public boolean isDefaultGroup() {
     63         return mDefaultGroup;
     64     }
     65 
     66     public boolean isFavorites() {
     67         return mFavorites;
     68     }
     69 }