blob: 9f4b8d3e7fa437046b0c5e7f20f80d4b5a23d4bc [file] [log] [blame]
/*
* Copyright (C) 2012 The Android Open Source Project
*
* 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 com.android.contacts.common.model.dataitem;
import android.content.ContentValues;
import android.provider.ContactsContract;
import android.provider.ContactsContract.CommonDataKinds.Organization;
/**
* Represents an organization data item, wrapping the columns in
* {@link ContactsContract.CommonDataKinds.Organization}.
*/
public class OrganizationDataItem extends DataItem {
/* package */ OrganizationDataItem(ContentValues values) {
super(values);
}
public String getCompany() {
return getContentValues().getAsString(Organization.COMPANY);
}
public String getLabel() {
return getContentValues().getAsString(Organization.LABEL);
}
public String getTitle() {
return getContentValues().getAsString(Organization.TITLE);
}
public String getDepartment() {
return getContentValues().getAsString(Organization.DEPARTMENT);
}
public String getJobDescription() {
return getContentValues().getAsString(Organization.JOB_DESCRIPTION);
}
public String getSymbol() {
return getContentValues().getAsString(Organization.SYMBOL);
}
public String getPhoneticName() {
return getContentValues().getAsString(Organization.PHONETIC_NAME);
}
public String getOfficeLocation() {
return getContentValues().getAsString(Organization.OFFICE_LOCATION);
}
public String getPhoneticNameStyle() {
return getContentValues().getAsString(Organization.PHONETIC_NAME_STYLE);
}
}