blob: 462ac4ab0caaf04b10af0f36796cfff3e31ea22d [file] [log] [blame]
Dmitri Plotnikove843f912010-09-16 15:21:48 -07001/*
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 */
Dmitri Plotnikov18ffaa22010-12-03 14:28:00 -080016package com.android.contacts;
Dmitri Plotnikove843f912010-09-16 15:21:48 -070017
18/**
19 * Meta-data for a contact group. We load all groups associated with the contact's
20 * constituent accounts.
21 */
22public final class GroupMetaData {
23 private String mAccountName;
24 private String mAccountType;
Dave Santoro2b3f3c52011-07-26 17:35:42 -070025 private String mDataSet;
Dmitri Plotnikove843f912010-09-16 15:21:48 -070026 private long mGroupId;
27 private String mTitle;
28 private boolean mDefaultGroup;
29 private boolean mFavorites;
30
Dave Santoro2b3f3c52011-07-26 17:35:42 -070031 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId,
32 String title, boolean defaultGroup, boolean favorites) {
Dmitri Plotnikov18ffaa22010-12-03 14:28:00 -080033 this.mAccountName = accountName;
34 this.mAccountType = accountType;
Dave Santoro2b3f3c52011-07-26 17:35:42 -070035 this.mDataSet = dataSet;
Dmitri Plotnikove843f912010-09-16 15:21:48 -070036 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
Dave Santoro2b3f3c52011-07-26 17:35:42 -070050 public String getDataSet() {
51 return mDataSet;
52 }
53
Dmitri Plotnikove843f912010-09-16 15:21:48 -070054 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 }
Dmitri Plotnikov18ffaa22010-12-03 14:28:00 -080069}