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.common; 17 18 /** 19 * Meta-data for a contact group. We load all groups associated with the contact's constituent 20 * accounts. 21 */ 22 public final class GroupMetaData { 23 24 private String mAccountName; 25 private String mAccountType; 26 private String mDataSet; 27 private long mGroupId; 28 private String mTitle; 29 private boolean mDefaultGroup; 30 private boolean mFavorites; 31 32 public GroupMetaData( 33 String accountName, 34 String accountType, 35 String dataSet, 36 long groupId, 37 String title, 38 boolean defaultGroup, 39 boolean favorites) { 40 this.mAccountName = accountName; 41 this.mAccountType = accountType; 42 this.mDataSet = dataSet; 43 this.mGroupId = groupId; 44 this.mTitle = title; 45 this.mDefaultGroup = defaultGroup; 46 this.mFavorites = favorites; 47 } 48 49 public String getAccountName() { 50 return mAccountName; 51 } 52 53 public String getAccountType() { 54 return mAccountType; 55 } 56 57 public String getDataSet() { 58 return mDataSet; 59 } 60 61 public long getGroupId() { 62 return mGroupId; 63 } 64 65 public String getTitle() { 66 return mTitle; 67 } 68 69 public boolean isDefaultGroup() { 70 return mDefaultGroup; 71 } 72 73 public boolean isFavorites() { 74 return mFavorites; 75 } 76 } 77