/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* 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.
*/
using System;
using System.Collections.Generic;
namespace Tizen.Pims.Contacts
{
///
/// This class provides information about views with properties.
///
///
/// Views are provided to access and handle entities. A view is a structure, which has property elements.
/// A view is almost the same as a database "VIEW", which limits access and guarantees performance.
/// A "record" represents a single row of the views.
/// A record can have basic properties of five types: integer, string, boolean, long, double.
///
public static class ContactsViews
{
private const uint PropertyAddressBook = 0x00100000;
private const uint PropertyGroup = 0x00200000;
private const uint PropertyPerson = 0x00300000;
private const uint PropertyData = 0x00600000;
private const uint PropertySpeedDial = 0x00700000;
private const uint PropertyPhonelog = 0x00800000;
private const uint PropertyUpdateInfo = 0x00900000;
private const uint PropertyPhonelogStat = 0x00B00000;
private const uint PropertyContact = 0x01000000;
private const uint PropertyName = 0x01100000;
private const uint PropertyNumber = 0x01200000;
private const uint PropertyEmail = 0x01300000;
private const uint PropertyAddress = 0x01400000;
private const uint PropertyUrl = 0x01500000;
private const uint PropertyEvent = 0x01600000;
private const uint PropertyGroupRelation = 0x01700000;
private const uint PropertyRelationship = 0x01800000;
private const uint PropertyCompany = 0x01900000;
private const uint PropertyNickname = 0x01A00000;
private const uint PropertyMessenger = 0x01B00000;
private const uint PropertyNote = 0x01C00000;
private const uint PropertyProfile = 0x01D00000;
private const uint PropertyImage = 0x01E00000;
private const uint PropertyExtension = 0x01F00000;
private const uint PropertyMyProfile = 0x02000000;
private const uint PropertyActivityPhoto = 0x02100000;
private const uint PropertySip = 0x02200000;
/* data_type mask 0x000FF000 */
private const uint DataTypeBool = 0x00010000;
private const uint DataTypeInt = 0x00020000;
private const uint DataTypeLong = 0x00030000;
private const uint DataTypeString = 0x00040000;
private const uint DataTypeDouble = 0x00050000;
private const uint DataTypeRecord = 0x00060000;
private const uint ReadOnly = 0x00001000;
private enum PropertyIds : uint
{
/* addressbook */
AddressbookId = (PropertyAddressBook | DataTypeInt | ReadOnly),
AddressbookAccountId = (PropertyAddressBook | DataTypeInt) + 1,
AddressbookName = (PropertyAddressBook | DataTypeString) + 2,
AddressbookMode = (PropertyAddressBook | DataTypeInt) + 3,
/* group */
GroupId = (PropertyGroup | DataTypeInt | ReadOnly),
GroupAddressbookId = (PropertyGroup | DataTypeInt) + 1,
GroupName = (PropertyGroup | DataTypeString) + 2,
GroupRingtone = (PropertyGroup | DataTypeString) + 3,
GroupImage = (PropertyGroup | DataTypeString) + 4,
GroupVibration = (PropertyGroup | DataTypeString) + 5,
GroupExtraData = (PropertyGroup | DataTypeString) + 6,
GroupIsReadOnly = (PropertyGroup | DataTypeBool) + 7,
GroupMessageAlert = (PropertyGroup | DataTypeString) + 8,
/* person */
PersonId = (PropertyPerson | DataTypeInt | ReadOnly),
PersonDisplayName = (PropertyPerson | DataTypeString | ReadOnly) + 1,
PersonDisplayContactId = (PropertyPerson | DataTypeInt) + 2,
PersonRingtone = (PropertyPerson | DataTypeString) + 3,
PersonThumbnail = (PropertyPerson | DataTypeString | ReadOnly) + 4,
PersonVibration = (PropertyPerson | DataTypeString) + 5,
PersonIsFavorite = (PropertyPerson | DataTypeBool) + 6,
PersonFavoritePriority = (PropertyPerson | DataTypeDouble | ReadOnly) + 7,
PersonLinkCount = (PropertyPerson | DataTypeInt | ReadOnly) + 8,
PersonAddressbookIds = (PropertyPerson | DataTypeString | ReadOnly) + 9,
PersonHasPhoneNumber = (PropertyPerson | DataTypeBool | ReadOnly) + 10,
PersonHasEmail = (PropertyPerson | DataTypeBool | ReadOnly) + 11,
PersonDisplayNameIndex = (PropertyPerson | DataTypeString | ReadOnly) + 12,
PersonStatus = (PropertyPerson | DataTypeString | ReadOnly) + 13,
PersonMessageAlert = (PropertyPerson | DataTypeString) + 14,
PersonSnippetType = (PropertyPerson | DataTypeInt | ReadOnly) + 15,
PersonSnippetString = (PropertyPerson | DataTypeString | ReadOnly) + 16,
/* person-stat */
PersonUsageType = (PropertyPerson | DataTypeInt) + 100,
PersonTimesUsed = (PropertyPerson | DataTypeInt) + 101,
/* simple contact : read only */
/* contact */
ContactId = (PropertyContact | DataTypeInt | ReadOnly),
ContactDisplayName = (PropertyContact | DataTypeString | ReadOnly) + 1,
ContactDisplaySourceDataId = (PropertyContact | DataTypeInt | ReadOnly) + 2,
ContactAddressbookId = (PropertyContact | DataTypeInt) + 3,
ContactRingtone = (PropertyContact | DataTypeString) + 4,
ContactImage = (PropertyContact | DataTypeRecord) + 5,
ContactThumbnail = (PropertyContact | DataTypeString | ReadOnly) + 6,
ContactIsFavorite = (PropertyContact | DataTypeBool) + 7,
ContactHasPhoneNumber = (PropertyContact | DataTypeBool | ReadOnly) + 8,
ContactHasEmail = (PropertyContact | DataTypeBool | ReadOnly) + 9,
ContactPersonId = (PropertyContact | DataTypeInt) + 10,
ContactUid = (PropertyContact | DataTypeString) + 11,
ContactVibration = (PropertyContact | DataTypeString) + 12,
ContactChangedTime = (PropertyContact | DataTypeInt | ReadOnly) + 13,
ContactName = (PropertyContact | DataTypeRecord) + 14,
ContactCompany = (PropertyContact | DataTypeRecord) + 15,
ContactNote = (PropertyContact | DataTypeRecord) + 16,
ContactNumber = (PropertyContact | DataTypeRecord) + 17,
ContactEmail = (PropertyContact | DataTypeRecord) + 18,
ContactEvent = (PropertyContact | DataTypeRecord) + 19,
ContactMessenger = (PropertyContact | DataTypeRecord) + 20,
ContactAddress = (PropertyContact | DataTypeRecord) + 21,
ContactUrl = (PropertyContact | DataTypeRecord) + 22,
ContactNickname = (PropertyContact | DataTypeRecord) + 23,
ContactProfile = (PropertyContact | DataTypeRecord) + 24,
ContactRelationship = (PropertyContact | DataTypeRecord) + 25,
ContactGroupRelation = (PropertyContact | DataTypeRecord) + 26,
ContactExtension = (PropertyContact | DataTypeRecord) + 27,
ContactLinkMode = (PropertyContact | DataTypeInt) + 28,
ContactMessageAlert = (PropertyContact | DataTypeString) + 29,
ContactSip = (PropertyContact | DataTypeRecord) + 30,
/* my_profile */
MyProfileId = (PropertyMyProfile | DataTypeInt | ReadOnly),
MyProfileDisplayName = (PropertyMyProfile | DataTypeString | ReadOnly) + 1,
MyProfileAddressbookId = (PropertyMyProfile | DataTypeInt) + 2,
MyProfileImage = (PropertyMyProfile | DataTypeRecord) + 3,
MyProfileThumbnail = (PropertyMyProfile | DataTypeString | ReadOnly) + 4,
MyProfileUid = (PropertyMyProfile | DataTypeString) + 5,
MyProfileChangedTime = (PropertyMyProfile | DataTypeInt) + 6,
MyProfileName = (PropertyMyProfile | DataTypeRecord) + 7,
MyProfileCompany = (PropertyMyProfile | DataTypeRecord) + 8,
MyProfileNote = (PropertyMyProfile | DataTypeRecord) + 9,
MyProfileNumber = (PropertyMyProfile | DataTypeRecord) + 10,
MyProfileEmail = (PropertyMyProfile | DataTypeRecord) + 11,
MyProfileEvent = (PropertyMyProfile | DataTypeRecord) + 12,
MyProfileMessenger = (PropertyMyProfile | DataTypeRecord) + 13,
MyProfileAddress = (PropertyMyProfile | DataTypeRecord) + 14,
MyProfileUrl = (PropertyMyProfile | DataTypeRecord) + 15,
MyProfileNickname = (PropertyMyProfile | DataTypeRecord) + 16,
MyProfileProfile = (PropertyMyProfile | DataTypeRecord) + 17,
MyProfileRelationship = (PropertyMyProfile | DataTypeRecord) + 18,
MyProfileExtension = (PropertyMyProfile | DataTypeRecord) + 19,
MyProfileSip = (PropertyMyProfile | DataTypeRecord) + 20,
/* data */
DataId = (PropertyData | DataTypeInt),
DataContactId = (PropertyData | DataTypeInt) + 1,
DataType = (PropertyData | DataTypeInt) + 2,
DataIsPrimaryDefault = (PropertyData | DataTypeBool) + 3,
DataIsDefault = (PropertyData | DataTypeBool) + 4,
DataData1 = (PropertyData | DataTypeInt) + 5,
DataData2 = (PropertyData | DataTypeString) + 6,
DataData3 = (PropertyData | DataTypeString) + 7,
DataData4 = (PropertyData | DataTypeString) + 8,
DataData5 = (PropertyData | DataTypeString) + 9,
DataData6 = (PropertyData | DataTypeString) + 10,
DataData7 = (PropertyData | DataTypeString) + 11,
DataData8 = (PropertyData | DataTypeString) + 12,
DataData9 = (PropertyData | DataTypeString) + 13,
DataData10 = (PropertyData | DataTypeString) + 14,
/* contact_name */
NameId = (PropertyName | DataTypeInt | ReadOnly),
NameContactId = (PropertyName | DataTypeInt) + 1,
NameFirst = (PropertyName | DataTypeString) + 2,
NameLast = (PropertyName | DataTypeString) + 3,
NameAddition = (PropertyName | DataTypeString) + 4,
NameSuffix = (PropertyName | DataTypeString) + 5,
NamePrefix = (PropertyName | DataTypeString) + 6,
NamePhoneticFirst = (PropertyName | DataTypeString) + 7,
NamePhoneticMiddle = (PropertyName | DataTypeString) + 8,
NamePhoneticLast = (PropertyName | DataTypeString) + 9,
/* contact_number */
NumberId = (PropertyNumber | DataTypeInt | ReadOnly),
NumberContactId = (PropertyNumber | DataTypeInt) + 1,
NumberType = (PropertyNumber | DataTypeInt) + 2,
NumberLabel = (PropertyNumber | DataTypeString) + 3,
NumberIsDefault = (PropertyNumber | DataTypeBool) + 4,
NumberNumber = (PropertyNumber | DataTypeString) + 5,
NumberNumberFilter = (PropertyNumber | DataTypeString) + 6,
NumberNormalizedNumber = (PropertyNumber | DataTypeString | ReadOnly) + 7,
NumberCleanedNumber = (PropertyNumber | DataTypeString | ReadOnly) + 8,
/* contact_email */
EmailId = (PropertyEmail | DataTypeInt | ReadOnly),
EmailContactId = (PropertyEmail | DataTypeInt) + 1,
EmailType = (PropertyEmail | DataTypeInt) + 2,
EmailLabel = (PropertyEmail | DataTypeString) + 3,
EmailIsDefault = (PropertyEmail | DataTypeBool) + 4,
EmailEmail = (PropertyEmail | DataTypeString) + 5,
/* contact_address */
AddressId = (PropertyAddress | DataTypeInt | ReadOnly),
AddressContactId = (PropertyAddress | DataTypeInt) + 1,
AddressType = (PropertyAddress | DataTypeInt) + 2,
AddressLabel = (PropertyAddress | DataTypeString) + 3,
AddressPostbox = (PropertyAddress | DataTypeString) + 4,
AddressPostalCode = (PropertyAddress | DataTypeString) + 5,
AddressRegion = (PropertyAddress | DataTypeString) + 6,
AddressLocality = (PropertyAddress | DataTypeString) + 7,
AddressStreet = (PropertyAddress | DataTypeString) + 8,
AddressCountry = (PropertyAddress | DataTypeString) + 9,
AddressExtended = (PropertyAddress | DataTypeString) + 10,
AddressIsDefault = (PropertyAddress | DataTypeBool) + 11,
/* contact_url */
UrlId = (PropertyUrl | DataTypeInt | ReadOnly),
UrlContactId = (PropertyUrl | DataTypeInt) + 1,
UrlType = (PropertyUrl | DataTypeInt) + 2,
UrlLabel = (PropertyUrl | DataTypeString) + 3,
UrlUrl = (PropertyUrl | DataTypeString) + 4,
/* contact_event */
EventId = (PropertyEvent | DataTypeInt | ReadOnly),
EventContactId = (PropertyEvent | DataTypeInt) + 1,
EventType = (PropertyEvent | DataTypeInt) + 2,
EventLabel = (PropertyEvent | DataTypeString) + 3,
EventDate = (PropertyEvent | DataTypeInt) + 4,
EventCalendarType = (PropertyEvent | DataTypeInt) + 5,
EventIsLeapMonth = (PropertyEvent | DataTypeBool) + 6,
/* contact_grouprelation */
GroupRelationId = (PropertyGroupRelation | DataTypeInt | ReadOnly),
GroupRelationGroupId = (PropertyGroupRelation | DataTypeInt) + 1,
GroupRelationContactId = (PropertyGroupRelation | DataTypeInt) + 2,
GroupRelationGroupName = (PropertyGroupRelation | DataTypeString) + 3,
/* contact_relationship */
RelationshipId = (PropertyRelationship | DataTypeInt | ReadOnly),
RelationshipContactId = (PropertyRelationship | DataTypeInt) + 1,
RelationshipType = (PropertyRelationship | DataTypeInt) + 2,
RelationshipLabel = (PropertyRelationship | DataTypeString) + 3,
RelationshipName = (PropertyRelationship | DataTypeString) + 4,
/* contact_image */
ImageId = (PropertyImage | DataTypeInt | ReadOnly),
ImageContactId = (PropertyImage | DataTypeInt) + 1,
ImageType = (PropertyImage | DataTypeInt) + 2,
ImageLabel = (PropertyImage | DataTypeString) + 3,
ImagePath = (PropertyImage | DataTypeString) + 4,
ImageIsDefault = (PropertyImage | DataTypeBool) + 5,
/* contact_company */
CompanyId = (PropertyCompany | DataTypeInt | ReadOnly),
CompanyContactId = (PropertyCompany | DataTypeInt) + 1,
CompanyType = (PropertyCompany | DataTypeInt) + 2,
CompanyLabel = (PropertyCompany | DataTypeString) + 3,
CompanyName = (PropertyCompany | DataTypeString) + 4,
CompanyDepartment = (PropertyCompany | DataTypeString) + 5,
CompanyJobTitle = (PropertyCompany | DataTypeString) + 6,
CompanyRole = (PropertyCompany | DataTypeString) + 7,
CompanyAssistantName = (PropertyCompany | DataTypeString) + 8,
CompanyLogo = (PropertyCompany | DataTypeString) + 9,
CompanyLocation = (PropertyCompany | DataTypeString) + 10,
CompanyDescription = (PropertyCompany | DataTypeString) + 11,
CompanyPhoneticName = (PropertyCompany | DataTypeString) + 12,
/* contact_nickname */
NicknameId = (PropertyNickname | DataTypeInt | ReadOnly),
NicknameContactId = (PropertyNickname | DataTypeInt) + 1,
NicknameName = (PropertyNickname | DataTypeString) + 2,
/* contact_messenger */
MessengerId = (PropertyMessenger | DataTypeInt | ReadOnly),
MessengerContactId = (PropertyMessenger | DataTypeInt) + 1,
MessengerType = (PropertyMessenger | DataTypeInt) + 2,
MessengerLabel = (PropertyMessenger | DataTypeString) + 3,
MessengerIMId = (PropertyMessenger | DataTypeString) + 4,
/* contact_note */
NoteId = (PropertyNote | DataTypeInt | ReadOnly),
NoteContactId = (PropertyNote | DataTypeInt) + 1,
NoteNote = (PropertyNote | DataTypeString) + 2,
/* contact sip */
SipId = (PropertySip | DataTypeInt | ReadOnly),
SipContactId = (PropertySip | DataTypeInt) + 1,
SipAddress = (PropertySip | DataTypeString) + 2,
SipType = (PropertySip | DataTypeInt) + 3,
SipLabel = (PropertySip | DataTypeString) + 4,
/* contact_profile */
ProfileId = (PropertyProfile | DataTypeInt | ReadOnly),
ProfileContactId = (PropertyProfile | DataTypeInt) + 1,
ProfileUid = (PropertyProfile | DataTypeString) + 2,
ProfileText = (PropertyProfile | DataTypeString) + 3,
ProfileOrder = (PropertyProfile | DataTypeInt) + 4,
ProfileServiceOperation = (PropertyProfile | DataTypeString) + 5,
ProfileMIME = (PropertyProfile | DataTypeString) + 6,
ProfileAppId = (PropertyProfile | DataTypeString) + 7,
ProfileUri = (PropertyProfile | DataTypeString) + 8,
ProfileCategory = (PropertyProfile | DataTypeString) + 9,
ProfileExtraData = (PropertyProfile | DataTypeString) + 10,
ExtensionId = (PropertyExtension | DataTypeInt | ReadOnly),
ExtensionContactId = (PropertyExtension | DataTypeInt) +1,
ExtensionData1 = (PropertyExtension | DataTypeInt) +2,
ExtensionData2 = (PropertyExtension | DataTypeString) +3,
ExtensionData3 = (PropertyExtension | DataTypeString) +4,
ExtensionData4 = (PropertyExtension | DataTypeString) +5,
ExtensionData5 = (PropertyExtension | DataTypeString) +6,
ExtensionData6 = (PropertyExtension | DataTypeString) +7,
ExtensionData7 = (PropertyExtension | DataTypeString) +8,
ExtensionData8 = (PropertyExtension | DataTypeString) +9,
ExtensionData9 = (PropertyExtension | DataTypeString) +10,
ExtensionData10 = (PropertyExtension | DataTypeString) +11,
ExtensionData11 = (PropertyExtension | DataTypeString) +12,
ExtensionData12 = (PropertyExtension | DataTypeString) +13,
/* speeddial */
SpeedDialDialNumber = (PropertySpeedDial | DataTypeInt),
SpeedDialNumberId = (PropertySpeedDial | DataTypeInt) +1,
SpeedDialNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +2,
SpeedDialNumberLabel = (PropertySpeedDial | DataTypeString | ReadOnly) +3,
SpeedDialNumberType = (PropertySpeedDial | DataTypeInt | ReadOnly) +4,
SpeedDialPersonId = (PropertySpeedDial | DataTypeInt | ReadOnly) +5,
SpeedDialDisplayName = (PropertySpeedDial | DataTypeString | ReadOnly) +6,
SpeedDialThumbnail = (PropertySpeedDial | DataTypeString | ReadOnly) +7,
SpeedDialNormalizedNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +8,
SpeedDialCleanedNumber = (PropertySpeedDial | DataTypeString | ReadOnly) +9,
SpeedDialNumberFilter = (PropertySpeedDial | DataTypeString | ReadOnly) +10,
/* phonelog */
PhonelogId = (PropertyPhonelog | DataTypeInt | ReadOnly),
PhonelogPersonId = (PropertyPhonelog | DataTypeInt) + 1,
PhonelogAddress = (PropertyPhonelog | DataTypeString) + 2,
PhonelogLogTime = (PropertyPhonelog | DataTypeInt) + 3,
PhonelogLogType = (PropertyPhonelog | DataTypeInt) + 4,
PhonelogExtraData1 = (PropertyPhonelog | DataTypeInt) + 5, /* duration, message_id, email_id */
PhonelogExtraData2 = (PropertyPhonelog | DataTypeString) + 6, /* short message, subject */
PhonelogNormalizedAddress = (PropertyPhonelog | DataTypeString | ReadOnly) + 7, /* for search by calllog number */
PhonelogCleanedAddress = (PropertyPhonelog | DataTypeString | ReadOnly) + 8, /* for search by calllog number */
PhonelogAddressFilter = (PropertyPhonelog | DataTypeString | ReadOnly) + 9, /* for search by calllog number */
PhonelogSIMSlotNo = (PropertyPhonelog | DataTypeInt) + 10,
/* phonelog_stat */
PhonelogStatLogCount = (PropertyPhonelogStat | DataTypeInt | ReadOnly),
PhonelogStatLogType = (PropertyPhonelogStat | DataTypeInt | ReadOnly) + 1,
PhonelogStatSIMSlotNo = (PropertyPhonelogStat | DataTypeInt | ReadOnly) + 2,
/* updated_info : read only */
UpdateInfoId = (PropertyUpdateInfo | DataTypeInt),
UpdateInfoAddressbookId = (PropertyUpdateInfo | DataTypeInt) +1,
UpdateInfoType = (PropertyUpdateInfo | DataTypeInt) +2,
UpdateInfoVersion = (PropertyUpdateInfo | DataTypeInt) +3,
UpdateInfoImageChanged = (PropertyUpdateInfo | DataTypeBool) +4,
UpdateInfoLastChangedType = (PropertyUpdateInfo | DataTypeInt)+5, /* now, it is used for _contacts_my_profile_updated_info */
}
///
/// Enumeration for contact change state.
///
public enum ChangeTypes
{
///
/// Inserted
///
Inserted,
///
/// Updated
///
Updated,
///
/// Deleted
///
Deleted,
}
internal const uint AverageSizeOfRecord = 120; /* average size of person record */
///
/// Describes properies of a Address book record.
///
public static class Addressbook
{
///
/// Identifier of this contacts addressbook view
///
public const string Uri = "tizen.contacts_view.addressbook";
///
/// integer, read only, DB record ID of the addressbook
///
public const uint Id = (uint)PropertyIds.AddressbookId;
///
/// integer, read/write once, Account ID that the addressbook belongs to
///
public const uint AccountId = (uint)PropertyIds.AddressbookAccountId;
///
/// string, read/write, It cannot be NULL. Duplicate names are not allowed.
///
public const uint Name = (uint)PropertyIds.AddressbookName;
///
/// integer, read/write, Addressbook mode, refer to the Modes
///
public const uint Mode = (uint)PropertyIds.AddressbookMode;
///
/// Enumeration for Address book mode.
///
public enum Modes
{
///
/// All module can read and write contacts of this address_book
///
None,
///
/// All module can only read contacts of this address_book
///
ReadOnly,
}
}
///
/// Describes properies of a Group record.
///
public static class Group
{
///
/// Identifier of this contacts group view
///
public const string Uri = "tizen.contacts_view.group";
///
/// DB record ID of the group
///
public const uint Id = (uint)PropertyIds.GroupId;
///
/// Addressbook ID that the group belongs to
///
public const uint AddressbookId = (uint)PropertyIds.GroupAddressbookId;
///
/// Group name
///
public const uint Name = (uint)PropertyIds.GroupName;
///
/// Ringtone path of the group
///
public const uint RingtonePath = (uint)PropertyIds.GroupRingtone;
///
/// Image path of the group
///
public const uint ImagePath = (uint)PropertyIds.GroupImage;
///
/// Vibration path of the group
///
public const uint Vibration = (uint)PropertyIds.GroupVibration;
///
/// Extra data for default group name
///
public const uint ExtraData = (uint)PropertyIds.GroupExtraData;
///
/// The group is read only or not
///
public const uint IsReadOnly = (uint)PropertyIds.GroupIsReadOnly;
///
/// Message alert path of the group
///
public const uint MessageAlert = (uint)PropertyIds.GroupMessageAlert;
}
///
/// Describes properies of a Person record.
///
public static class Person
{
///
/// Identifier of this contacts person view
///
public const string Uri = "tizen.contacts_view.person";
///
/// DB record ID of the person
///
public const uint Id = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// Status of social account
///
public const uint Status = (uint)PropertyIds.PersonStatus;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The priority of favorite contacts. it can be used as sorting key
///
public const uint FavoritePriority = (uint)PropertyIds.PersonFavoritePriority;
///
/// Link count of contact records (projection)
///
public const uint LinkCount = (uint)PropertyIds.PersonLinkCount;
///
/// Addressbook IDs that the person belongs to (projection)
///
public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// kerword matched data type
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
}
///
/// Describes properies of a Contact record.
///
public static class Contact
{
///
/// Identifier of this contact view
///
public const string Uri = "tizen.contacts_view.contact";
///
/// DB record ID of the contact
///
public const uint Id = (uint)PropertyIds.ContactId;
///
/// Display name of the contact
///
public const uint DisplayName = (uint)PropertyIds.ContactDisplayName;
///
/// The source type of display name, refer to the DisplayNameSourceTypes
///
public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId;
///
/// Addressbook ID that the contact belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Ringtone path of the contact
///
public const uint RingtonePath = (uint)PropertyIds.ContactRingtone;
///
/// Image thumbnail path of the contact
///
public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail;
///
/// The contact is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.ContactIsFavorite;
///
/// The contact has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.ContactHasPhoneNumber;
///
/// The contact has email or not
///
public const uint HasEmail = (uint)PropertyIds.ContactHasEmail;
///
/// Person ID that the contact belongs to. If set when inserting, a contact will be linked to person
///
public const uint PersonId = (uint)PropertyIds.ContactPersonId;
///
/// Unique identifier
///
public const uint Uid = (uint)PropertyIds.ContactUid;
///
/// Vibration path of the contact
///
public const uint Vibration = (uint)PropertyIds.ContactVibration;
///
/// Message alert path of the contact
///
public const uint MessageAlert = (uint)PropertyIds.ContactMessageAlert;
///
/// Last changed contact time
///
public const uint ChangedTime = (uint)PropertyIds.ContactChangedTime;
///
/// The link mode, refer to the LinkModes. If the person_id was set, this value will be ignored
///
public const uint LinkMode = (uint)PropertyIds.ContactLinkMode;
///
/// Name child record (single)
///
public const uint Name = (uint)PropertyIds.ContactName;
///
/// Company child record (multiple)
///
public const uint Company = (uint)PropertyIds.ContactCompany;
///
/// Note child record (multiple)
///
public const uint Note = (uint)PropertyIds.ContactNote;
///
/// Number child record (multiple)
///
public const uint Number = (uint)PropertyIds.ContactNumber;
///
/// Email child record (multiple)
///
public const uint Email = (uint)PropertyIds.ContactEmail;
///
/// Event child record (multiple)
///
public const uint Event = (uint)PropertyIds.ContactEvent;
///
/// Messenger child record (multiple)
///
public const uint Messenger = (uint)PropertyIds.ContactMessenger;
///
/// Address child record (multiple)
///
public const uint Address = (uint)PropertyIds.ContactAddress;
///
/// Url child record (multiple)
///
public const uint Url = (uint)PropertyIds.ContactUrl;
///
/// Nickname child record (multiple)
///
public const uint Nickname = (uint)PropertyIds.ContactNickname;
///
/// Profile child record (multiple)
///
public const uint Profile = (uint)PropertyIds.ContactProfile;
///
/// Relationship child record (multiple)
///
public const uint Relationship = (uint)PropertyIds.ContactRelationship;
///
/// Image child record (multiple)
///
public const uint Image = (uint)PropertyIds.ContactImage;
///
/// GroupRelation child record (multiple)
///
public const uint GroupRelation = (uint)PropertyIds.ContactGroupRelation;
///
/// Extension child record (multiple)
///
public const uint Extension = (uint)PropertyIds.ContactExtension;
///
/// Sip child record (multiple)
///
public const uint Sip = (uint)PropertyIds.ContactSip;
///
/// Enumeration for link mode when inserting contact.
///
public enum LinkModes
{
///
/// Auto link immediately
///
Auto,
///
/// Do not auto link when the contact is inserted
///
None
}
///
/// Enumeration for Contact display name source type.
///
public enum DisplayNameSourceTypes
{
///
/// Invalid source of display name
///
Invalid,
///
/// Produced display name from email record
///
Email,
///
/// Produced display name from number record
///
Number,
///
/// Produced display name from nickname record
///
Nickname,
///
/// Produced display name from company record
///
Company,
///
/// Produced display name from name record
///
Name,
}
///
/// Enumeration for contacts data type.
///
public enum DataTypes
{
Name = 1,
Address = 2,
Messenger = 3,
Url = 4,
Event = 5,
Company = 6,
Nickname = 7,
Number = 8,
Email = 9,
Profile = 10,
Relationsip = 11,
Note = 12,
Image = 13,
Sip = 14,
Extension = 100
}
}
///
/// Describes properies of a Simple contact record.
///
public static class SimpleContact
{
///
/// Identifier of this simple contact view
///
public const string Uri = "tizen.contacts_view.simple_contact";
///
/// DB record ID of the contact
///
public const uint Id = (uint)PropertyIds.ContactId;
///
/// Display name of the contact
///
public const uint DisplayName = (uint)PropertyIds.ContactDisplayName;
///
/// The source type of display name, refer to the Contact.DisplayNameSourceTypes
///
public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId;
///
/// Addressbook that the contact belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Ringtone path of the contact
///
public const uint RingtonePath = (uint)PropertyIds.ContactRingtone;
///
/// Image thumbnail path of the contact
///
public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail;
///
/// The contact is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.ContactIsFavorite;
///
/// The contact has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.ContactHasPhoneNumber;
///
/// The contact has email or not
///
public const uint HasEmail = (uint)PropertyIds.ContactHasEmail;
///
/// Person ID that the contact belongs to
///
public const uint PersonId = (uint)PropertyIds.ContactPersonId;
///
/// Unique identifier
///
public const uint Uid = (uint)PropertyIds.ContactUid;
///
/// Vibration path of the contact
///
public const uint Vibration = (uint)PropertyIds.ContactVibration;
///
/// Message alert path of the contact
///
public const uint MessageAlert = (uint)PropertyIds.ContactMessageAlert;
///
/// Last changed contact time
///
public const uint ChangedTime = (uint)PropertyIds.ContactChangedTime;
}
///
/// Describes properies of a My profile record.
///
public static class MyProfile
{
///
/// Identifier of this my profile view
///
public const string Uri = "tizen.contacts_view.my_profile";
///
/// DB record ID of the my profile
///
public const uint Id = (uint)PropertyIds.MyProfileId;
///
/// Display name of the profile
///
public const uint DisplayName = (uint)PropertyIds.MyProfileDisplayName;
///
/// Addressbook ID that the profile belongs to
///
public const uint AddressbookId = (uint)PropertyIds.MyProfileAddressbookId;
///
/// Image thumbnail path of the profile
///
public const uint ThumbnailPath = (uint)PropertyIds.MyProfileThumbnail;
///
/// Unique identifier
///
public const uint Uid = (uint)PropertyIds.MyProfileUid;
///
/// Last changed profile time
///
public const uint ChangedTime = (uint)PropertyIds.MyProfileChangedTime;
///
/// Name child record (single)
///
public const uint Name = (uint)PropertyIds.MyProfileName;
///
/// Company child record (multiple)
///
public const uint Company = (uint)PropertyIds.MyProfileCompany;
///
/// Note child record (multiple)
///
public const uint Note = (uint)PropertyIds.MyProfileNote;
///
/// Number child record (multiple)
///
public const uint Number = (uint)PropertyIds.MyProfileNumber;
///
/// Email child record (multiple)
///
public const uint Email = (uint)PropertyIds.MyProfileEmail;
///
/// Event child record (multiple)
///
public const uint Event = (uint)PropertyIds.MyProfileEvent;
///
/// Messenger child record (multiple)
///
public const uint Messenger = (uint)PropertyIds.MyProfileMessenger;
///
/// Address child record (multiple)
///
public const uint Address = (uint)PropertyIds.MyProfileAddress;
///
/// Url child record (multiple)
///
public const uint Url = (uint)PropertyIds.MyProfileUrl;
///
/// Nickname child record (multiple)
///
public const uint Nickname = (uint)PropertyIds.MyProfileNickname;
///
/// Profile child record (multiple)
///
public const uint Profile = (uint)PropertyIds.MyProfileProfile;
///
/// Relationship child record (multiple)
///
public const uint Relationship = (uint)PropertyIds.MyProfileRelationship;
///
/// Image child record (multiple)
///
public const uint Image = (uint)PropertyIds.MyProfileImage;
///
/// Extension child record (multiple)
///
public const uint Extension = (uint)PropertyIds.MyProfileExtension;
///
/// Sip child record (multiple)
///
public const uint Sip = (uint)PropertyIds.MyProfileSip;
}
///
/// Describes properies of a Name record.
///
public static class Name
{
///
/// Identifier of this contacts name view
///
public const string Uri = "tizen.contacts_view.name";
///
/// DB record ID of the name
///
public const uint Id = (uint)PropertyIds.NameId;
///
/// Contacts ID that the name record belongs to
///
public const uint ContactId = (uint)PropertyIds.NameContactId;
///
/// First name
///
public const uint First = (uint)PropertyIds.NameFirst;
///
/// Last name
///
public const uint Last = (uint)PropertyIds.NameLast;
///
/// Middle name
///
public const uint Addition = (uint)PropertyIds.NameAddition;
///
/// Suffix
///
public const uint Suffix = (uint)PropertyIds.NameSuffix;
///
/// Prefix
///
public const uint Prefix = (uint)PropertyIds.NamePrefix;
///
/// Pronounce the first name
///
public const uint PhoneticFirst = (uint)PropertyIds.NamePhoneticFirst;
///
/// Pronounce the middle name
///
public const uint PhoneticMiddle = (uint)PropertyIds.NamePhoneticMiddle;
///
/// Pronounce the last name
///
public const uint PhoneticLast = (uint)PropertyIds.NamePhoneticLast;
}
///
/// Describes properies of a Number record.
///
public static class Number
{
///
/// Identifier of this contacts number view
///
public const string Uri = "tizen.contacts_view.number";
///
/// DB record ID of the number
///
public const uint Id = (uint)PropertyIds.NumberId;
///
/// Contact ID that the number belongs to
///
public const uint ContactId = (uint)PropertyIds.NumberContactId;
///
/// Number type, refer to the Types
///
public const uint Type = (uint)PropertyIds.NumberType;
///
/// Custom number type label, when the number type is Types.Custom
///
public const uint Label = (uint)PropertyIds.NumberLabel;
///
/// The number is default number or not
///
public const uint IsDefault = (uint)PropertyIds.NumberIsDefault;
///
/// Number
///
public const uint NumberData = (uint)PropertyIds.NumberNumber;
///
/// You can only use this property for search filter.
///
public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber;
///
/// You can only use this property for search filter.
///
public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber;
///
/// You can only use this property for search filter.
///
public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter;
///
/// Enumeration for number type.
///
public enum Types
{
///
/// Other number type
///
Other = 0,
///
/// Custom number type
///
Custom = 1 << 0,
///
/// A telephone number associated with a residence
///
Home = 1 << 1,
///
/// A telephone number associated with a place of work
///
Work = 1 << 2,
///
/// A voice telephone number
///
Voice = 1 << 3,
///
/// A facsimile telephone number
///
Fax = 1 << 4,
///
/// The telephone number has voice messaging support
///
Message = 1 << 5,
///
/// A cellular telephone number
///
Cell = 1 << 6,
///
/// A paging device telephone number
///
Pager = 1 << 7,
///
/// A bulletin board system telephone number
///
BBS = 1 << 8,
///
/// A MODEM connected telephone number
///
Modem = 1 << 9,
///
/// A car-phone telephone number
///
Car = 1 << 10,
///
/// An ISDN service telephone number
///
ISDN = 1 << 11,
///
/// A video conferencing telephone number
///
Video = 1 << 12,
///
/// A personal communication services telephone number
///
PCS = 1 << 13,
///
/// A company main number
///
Company = 1 << 14,
///
/// A radio phone number
///
Radio = 1 << 15,
///
/// An additional type for main
///
Main = 1 << 29,
///
/// An additional type for assistant
///
Assistant = 1 << 30,
}
}
///
/// Describes properies of a Email record.
///
public static class Email
{
///
/// Identifier of this contacts email view
///
public const string Uri = "tizen.contacts_view.email";
///
/// DB record ID of the email
///
public const uint Id = (uint)PropertyIds.EmailId;
///
/// Contact ID that the email belongs to
///
public const uint ContactId = (uint)PropertyIds.EmailContactId;
///
/// Email type, refer to the Types
///
public const uint Type = (uint)PropertyIds.EmailType;
///
/// Custom mail type label, when the email type is Types.Custom
///
public const uint Label = (uint)PropertyIds.EmailLabel;
///
/// The email is default email or not
///
public const uint IsDefault = (uint)PropertyIds.EmailIsDefault;
///
/// Email address
///
public const uint Address = (uint)PropertyIds.EmailEmail;
///
/// Enumeration for Contact email type.
///
public enum Types
{
///
/// Other email type
///
Other = 0,
///
/// Custom email type
///
Custom = 1 << 0,
///
/// An email address associated with a residence
///
Home = 1 << 1,
///
/// An email address associated with a place of work
///
Work = 1 << 2,
///
/// A mobile email address
///
Mobile = 1 << 3,
}
}
///
/// Describes properies of a Address record.
///
public static class Address
{
///
/// Identifier of this contacts address view
///
public const string Uri = "tizen.contacts_view.address";
///
/// DB record ID of the address
///
public const uint Id = (uint)PropertyIds.AddressId;
///
/// Contact ID that the address belongs to
///
public const uint ContactId = (uint)PropertyIds.AddressContactId;
///
/// Address type, refer to the Types
///
public const uint Type = (uint)PropertyIds.AddressType;
///
/// Address type label, when the address type is Types.Custom
///
public const uint Label = (uint)PropertyIds.AddressLabel;
///
/// Post office box
///
public const uint Postbox = (uint)PropertyIds.AddressPostbox;
///
/// Postal code
///
public const uint PostalCode = (uint)PropertyIds.AddressPostalCode;
///
/// Region
///
public const uint Region = (uint)PropertyIds.AddressRegion;
///
/// Locality
///
public const uint Locality = (uint)PropertyIds.AddressLocality;
///
/// Street
///
public const uint Street = (uint)PropertyIds.AddressStreet;
///
/// Country
///
public const uint Country = (uint)PropertyIds.AddressCountry;
///
/// Extended address
///
public const uint Extended = (uint)PropertyIds.AddressExtended;
///
/// The address is default or not
///
public const uint IsDefault = (uint)PropertyIds.AddressIsDefault;
///
/// Enumeration for Contact address type.
///
public enum Types
{
///
/// Other address type
///
Other = 0,
///
/// Custom address type
///
Custom = 1 << 0,
///
/// A delivery address for a residence
///
Home = 1 << 1,
///
/// A delivery address for a place of work
///
Work = 1 << 2,
///
/// A domestic delivery address
///
Domestic = 1 << 3,
///
/// An international delivery address
///
International = 1 << 4,
///
/// A postal delivery address
///
Postal = 1 << 5,
///
/// A parcel delivery address
///
Parcel = 1 << 6,
}
}
///
/// Describes properies of a Note record.
///
public static class Note
{
///
/// Identifier of this contacts note view
///
public const string Uri = "tizen.contacts_view.note";
///
/// DB record ID of the note
///
public const uint Id = (uint)PropertyIds.NoteId;
///
/// Contact ID that the note belongs to
///
public const uint ContactId = (uint)PropertyIds.NoteContactId;
///
/// Note contents
///
public const uint Contents = (uint)PropertyIds.NoteNote;
}
///
/// Describes properies of a Url record.
///
public static class Url
{
///
/// Identifier of this contacts URL view
///
public const string Uri = "tizen.contacts_view.url";
///
/// DB record ID of the URL
///
public const uint Id = (uint)PropertyIds.UrlId;
///
/// Contact ID that the URL belongs to
///
public const uint ContactId = (uint)PropertyIds.UrlContactId;
///
/// URL type, refer to the Types
///
public const uint Type = (uint)PropertyIds.UrlType;
///
/// Custom URL type label, when the URL type is Types.Custom
///
public const uint Label = (uint)PropertyIds.UrlLabel;
///
/// URL
///
public const uint UrlData = (uint)PropertyIds.UrlUrl;
///
/// Enumeration for Contact URL type.
///
public enum Types
{
///
/// Other URL type
///
Other,
///
/// Custom URL type
///
Custom,
///
/// Home URL type
///
Home,
///
/// Work URL type
///
Work,
}
}
///
/// Describes properies of a Event record.
///
public static class Event
{
///
/// Identifier of this contacts event view
///
public const string Uri = "tizen.contacts_view.event";
///
/// DB record ID of the event
///
public const uint Id = (uint)PropertyIds.EventId;
///
/// Contact ID that the event belongs to
///
public const uint ContactId = (uint)PropertyIds.EventContactId;
///
/// Event type, refer to the Types
///
public const uint Type = (uint)PropertyIds.EventType;
///
/// Custom event type label, when the event type is Types.Custom
///
public const uint Label = (uint)PropertyIds.EventLabel;
///
/// Event date(YYYYMMDD). e.g. 2014/1/1 : 20140101. Even if the calendar_type is set as CONTACTS_EVENT_CALENDAR_TYPE_CHINESE, you SHOULD set Gregorian date
///
public const uint Date = (uint)PropertyIds.EventDate;
///
/// Calendar type, refer to the CalendarTypes
///
public const uint IsLeapMonth = (uint)PropertyIds.EventIsLeapMonth;
///
/// Enumeration for Contact event type.
///
public enum Types
{
///
/// Other event type
///
Other,
///
/// Custom event type
///
Custom,
///
/// Birthday event type
///
Birthday,
///
/// Anniversary event type
///
Anniversary
}
///
/// Enumeration for Contact event calendar type.
///
public enum CalendarTypes
{
///
/// Gregorian calendar
///
Gregorian,
///
/// Chinese calenadr
///
Chinese
}
}
///
/// Describes properies of a Relationship record.
///
public static class Relationship
{
///
/// Identifier of this relationship view
///
public const string Uri = "tizen.contacts_view.relationship";
///
/// DB record ID of the relationship
///
public const uint Id = (uint)PropertyIds.RelationshipId;
///
/// Contact ID that the relationship belongs to
///
public const uint ContactId = (uint)PropertyIds.RelationshipContactId;
///
/// Relationship type, refer to the Types
///
public const uint Type = (uint)PropertyIds.RelationshipType;
///
/// Custom relationship type label, when the relationship type is Types.Custom
///
public const uint Label = (uint)PropertyIds.RelationshipLabel;
///
/// Selected contact name that the relationship belongs to
///
public const uint Name = (uint)PropertyIds.RelationshipName;
///
/// Enumeration for Contact relationship type.
///
public enum Types
{
///
/// Other relationship type
///
Other,
///
/// Assistant type
///
Assistant,
///
/// Brother type
///
Brother,
///
/// Child type
///
Child,
///
/// Domestic Partner type
///
DomesticPartner,
///
/// Father type
///
Father,
///
/// Friend type
///
Friend,
///
/// Manager type
///
Manager,
///
/// Mother type
///
Mother,
///
/// Parent type
///
Parent,
///
/// Partner type
///
Partner,
///
/// Referred by type
///
ReferredBy,
///
/// Relative type
///
Relative,
///
/// Sister type
///
Sister,
///
/// Spouse type
///
Spouse,
///
/// Custom type
///
Custom,
}
}
///
/// Describes properies of a Image record.
///
public static class Image
{
///
/// Identifier of this contacts image view
///
public const string Uri = "tizen.contacts_view.image";
///
/// DB record ID of the image
///
public const uint Id = (uint)PropertyIds.ImageId;
///
/// Contact ID that the image belongs to
///
public const uint ContactId = (uint)PropertyIds.ImageContactId;
///
/// Image type, refer to the Types
///
public const uint Type = (uint)PropertyIds.ImageType;
///
/// Custom image type label, when the image type is Types.Custom
///
public const uint Label = (uint)PropertyIds.ImageLabel;
///
/// Image thumbnail path
///
public const uint Path = (uint)PropertyIds.ImagePath;
///
/// The Image is default or not
///
public const uint IsDefault = (uint)PropertyIds.ImageIsDefault;
///
/// Enumeration for Contact image type.
///
public enum Types
{
///
/// Other type
///
Other,
///
/// Custom type
///
Custom,
}
}
///
/// Describes properies of a Company record.
///
public static class Company
{
///
/// Identifier of this contacts company view
///
public const string Uri = "tizen.contacts_view.company";
///
/// DB record ID of the company
///
public const uint Id = (uint)PropertyIds.CompanyId;
///
/// Contact ID that the company belongs to
///
public const uint ContactId = (uint)PropertyIds.CompanyContactId;
///
/// Company type, refer to the Types
///
public const uint Type = (uint)PropertyIds.CompanyType;
///
/// Custom company type label, when the company type is Types.Custom
///
public const uint Label = (uint)PropertyIds.CompanyLabel;
///
/// Company name
///
public const uint Name = (uint)PropertyIds.CompanyName;
///
/// Department
///
public const uint Department = (uint)PropertyIds.CompanyDepartment;
///
/// Job title
///
public const uint JobTitle = (uint)PropertyIds.CompanyJobTitle;
///
/// Assistant name
///
public const uint AssistantName = (uint)PropertyIds.CompanyAssistantName;
///
/// Role
///
public const uint Role = (uint)PropertyIds.CompanyRole;
///
/// Company logo image file path
///
public const uint Logo = (uint)PropertyIds.CompanyLogo;
///
/// Company location
///
public const uint Location = (uint)PropertyIds.CompanyLocation;
///
/// Description
///
public const uint Description = (uint)PropertyIds.CompanyDescription;
///
/// Pronounce the company name
///
public const uint PhoneticName = (uint)PropertyIds.CompanyPhoneticName;
///
/// Enumeration for Contact company type.
///
public enum Types
{
Other = 0, /**< Other company type */
Custom = 1 << 0, /**< Custom company type */
Work = 1 << 1, /**< Work company type */
}
}
///
/// Describes properies of a Nickname record.
///
public static class Nickname
{
///
/// Identifier of this contacts nickname view
///
public const string Uri = "tizen.contacts_view.nickname";
///
/// DB record ID of the nickname
///
public const uint Id = (uint)PropertyIds.NicknameId;
///
/// Contact ID that the nickname belongs to
///
public const uint ContactId = (uint)PropertyIds.NicknameContactId;
///
/// Nickname
///
public const uint Name = (uint)PropertyIds.NicknameName;
}
///
/// Describes properies of a Messenger record.
///
public static class Messenger
{
///
/// Identifier of this contacts messenger view
///
public const string Uri = "tizen.contacts_view.messenger";
///
/// DB record ID of the messenger
///
public const uint Id = (uint)PropertyIds.MessengerId;
///
/// Contact ID that the messenger belongs to
///
public const uint ContactId = (uint)PropertyIds.MessengerContactId;
///
/// Messenger type, refer to the Types
///
public const uint Type = (uint)PropertyIds.MessengerType;
///
/// Custom messenger type label, when the messenger type is Types.Custom
///
public const uint Label = (uint)PropertyIds.MessengerLabel;
///
/// Messenger ID (email address or email ID...)
///
public const uint IMId = (uint)PropertyIds.MessengerIMId;
///
/// Enumeration for Contact messenger type.
///
public enum Types
{
///
/// Other messenger type
///
Other,
///
/// Custom messenger type
///
Custom,
///
/// Google messenger type
///
Google,
///
/// Windows live messenger type
///
WindowsLive,
///
/// Yahoo messenger type
///
Yahoo,
///
/// Facebook messenger type
///
Facebook,
///
/// ICQ type
///
ICQ,
///
/// AOL instance messenger type
///
AOL,
///
/// QQ type
///
QQ,
///
/// Jabber type
///
Jabber,
///
/// Skype type
///
Skype,
///
/// IRC type
///
IRC,
}
}
///
/// Describes properies of a Profile record.
///
public static class Profile
{
///
/// Identifier of this contacts profile view
///
public const string Uri = "tizen.contacts_view.profile";
///
/// DB record ID of profile
///
public const uint Id = (uint)PropertyIds.ProfileId;
///
/// Contacts ID that the profile belongs to
///
public const uint ContactId = (uint)PropertyIds.ProfileContactId;
///
/// Unique identifier
///
public const uint Uid = (uint)PropertyIds.ProfileUid;
///
/// Profile contents
///
public const uint Text = (uint)PropertyIds.ProfileText;
///
/// Priority to display the profile
///
public const uint Order = (uint)PropertyIds.ProfileOrder;
///
/// Data for app_control_set_operation
///
public const uint ServiceOperation = (uint)PropertyIds.ProfileServiceOperation;
///
/// Data for app_control_set_mime
///
public const uint Mime = (uint)PropertyIds.ProfileMIME;
///
/// Data for app_control_set_app_id
///
public const uint AppId = (uint)PropertyIds.ProfileAppId;
///
/// Data for app_control_set_uri
///
public const uint ProfileUri = (uint)PropertyIds.ProfileUri;
///
/// Data for app_control_set_category
///
public const uint Category = (uint)PropertyIds.ProfileCategory;
///
/// It includes "key:value,key:value," pairs. You should parse it. And you must base64 encode each key and value
///
public const uint ExtraData = (uint)PropertyIds.ProfileExtraData;
}
///
/// Describes properies of a Sip record.
///
public static class Sip
{
///
/// Identifier of this contacts sip view
///
public const string Uri = "tizen.contacts_view.sip";
///
/// DB record ID of the sip
///
public const uint Id = (uint)PropertyIds.SipId;
///
/// Contact ID that the sip belongs to
///
public const uint ContactId = (uint)PropertyIds.SipContactId;
///
/// SIP address
///
public const uint Address = (uint)PropertyIds.SipAddress;
///
/// sip type, refer to the Types
///
public const uint Type = (uint)PropertyIds.SipType;
///
/// Custom sip type label, when the sip type is Types.Custom
///
public const uint Label = (uint)PropertyIds.SipLabel;
///
/// Enumeration for Contact SIP type.
///
public enum Types
{
///
/// Other SIP type
///
Other,
///
/// Custom SIP type
///
Custom,
///
/// Home SIP type
///
Home,
///
/// Work SIP type
///
Work,
}
}
///
/// Describes properies of a Extension record.
///
public static class Extension
{
///
/// Identifier of this contacts extension view
///
public const string Uri = "tizen.contacts_view.extension";
///
/// DB record ID of the contact extension
///
public const uint Id = (uint)PropertyIds.ExtensionId;
///
/// Contact ID that the contact extension belongs to
///
public const uint ContactId = (uint)PropertyIds.ExtensionContactId;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data1 = (uint)PropertyIds.ExtensionData1;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data2 = (uint)PropertyIds.ExtensionData2;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data3 = (uint)PropertyIds.ExtensionData3;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data4 = (uint)PropertyIds.ExtensionData4;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data5 = (uint)PropertyIds.ExtensionData5;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data6 = (uint)PropertyIds.ExtensionData6;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data7 = (uint)PropertyIds.ExtensionData7;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data8 = (uint)PropertyIds.ExtensionData8;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data9 = (uint)PropertyIds.ExtensionData9;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data10 = (uint)PropertyIds.ExtensionData10;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data11 = (uint)PropertyIds.ExtensionData11;
///
/// The extra child record format for non-provided from contacts-service
///
public const uint Data12 = (uint)PropertyIds.ExtensionData12;
}
///
/// Describes properies of a Group relation record.
///
public static class GroupRelation
{
///
/// Identifier of this relationship view
///
public const string Uri = "tizen.contacts_view.group_relation";
///
/// DB record ID of the group relation (can not be used as filter)
///
public const uint Id = (uint)PropertyIds.GroupRelationId;
///
/// DB record ID of the group
///
public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId;
///
/// DB record ID of the contact
///
public const uint ContactId = (uint)PropertyIds.GroupRelationContactId;
///
/// Group name
///
public const uint Name = (uint)PropertyIds.GroupRelationGroupName;
}
///
/// Describes properies of a Speed dial record.
///
public static class SpeedDial
{
///
/// Identifier of this contact speed dial view
///
public const string Uri = "tizen.contacts_view.speeddial";
///
/// Stored speed dial number
///
public const uint SpeedDialNumber = (uint)PropertyIds.SpeedDialDialNumber;
///
/// Number ID that the speed dial belongs to
///
public const uint NumberId = (uint)PropertyIds.SpeedDialNumberId;
///
/// Contact number of specified speed dial
///
public const uint Number = (uint)PropertyIds.SpeedDialNumber;
///
/// Contact number label of specified speed dial, when the number type is Number.Types.Custom
///
public const uint NumberLabel = (uint)PropertyIds.SpeedDialNumberLabel;
///
/// Contact number type, refer to the Number.Types
///
public const uint NumberType = (uint)PropertyIds.SpeedDialNumberType;
///
/// Person ID that the speed dial belongs to
///
public const uint PersonId = (uint)PropertyIds.SpeedDialPersonId;
///
/// Display name that the speed dial belongs to
///
public const uint DisplayName = (uint)PropertyIds.SpeedDialDisplayName;
///
/// Image thumbnail path that the speed dial belongs to
///
public const uint ThumbnailPath = (uint)PropertyIds.SpeedDialThumbnail;
///
/// You can only use this property for search filter
///
public const uint NormalizedNumber = (uint)PropertyIds.SpeedDialNormalizedNumber;
///
/// You can only use this property for search filter
///
public const uint CleanedNumber = (uint)PropertyIds.SpeedDialCleanedNumber;
///
/// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly
///
public const uint NumberFilter = (uint)PropertyIds.SpeedDialNumberFilter;
}
///
/// Describes properies of a Phone log record.
///
public static class PhoneLog
{
///
/// Identifier of this phone log view
///
public const string Uri = "tizen.contacts_view.phonelog";
///
/// DB record ID of phone log
///
public const uint Id = (uint)PropertyIds.PhonelogId;
///
/// Person ID that the phone log belongs to
///
public const uint PersonId = (uint)PropertyIds.PhonelogPersonId;
///
/// Number or Email that the phone log displays
///
public const uint Address = (uint)PropertyIds.PhonelogAddress;
///
/// Call end time. The value means number of seconds since 1970-01-01 00:00:00 (UTC)
///
public const uint LogTime = (uint)PropertyIds.PhonelogLogTime;
///
/// Log type, refer to the Types
///
public const uint LogType = (uint)PropertyIds.PhonelogLogType;
///
/// You can set the related integer data (e.g. message_id, email_id or duration(seconds) of call)
///
public const uint ExtraData1 = (uint)PropertyIds.PhonelogExtraData1;
///
/// You can set the related string data (e.g. short message, subject)
///
public const uint ExtraData2 = (uint)PropertyIds.PhonelogExtraData2;
///
/// You can only use this property for search filter
///
public const uint NormalizedAddress = (uint)PropertyIds.PhonelogNormalizedAddress;
///
/// You can only use this property for search filter
///
public const uint CleanedAddress = (uint)PropertyIds.PhonelogCleanedAddress;
///
/// You can only use this property for search filter
///
public const uint AddressFilter = (uint)PropertyIds.PhonelogAddressFilter;
///
/// You can set the related SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init()
///
public const uint SimSlotNo = (uint)PropertyIds.PhonelogSIMSlotNo;
///
/// Enumeration for Phone log type.
///
public enum Types
{
///
/// None
///
None,
///
/// Incoming call
///
VoiceIncoming = 1,
///
/// Outgoing call
///
VoiceOutgoing = 2,
///
/// Incoming video call
///
VideoIncoming = 3,
///
/// Outgoing video call
///
VideoOutgoing = 4,
///
/// Not confirmed missed call
///
VoiceMissedUnseen = 5,
///
/// Confirmed missed call
///
VoiceMissedSeen = 6,
///
/// Not confirmed missed video call
///
VideoMissedUnseen = 7,
///
/// Confirmed missed video call
///
VidoeMissedSeen = 8,
///
/// Rejected call
///
VoiceRejected = 9,
///
/// Rejected video call
///
VideoRejected = 10,
///
/// Blocked call
///
VoiceBlocked = 11,
///
/// Blocked video call
///
VideoBlocked = 12,
///
/// Incoming MMS
///
MmsIncoming = 101,
///
/// Outgoing MMS
///
MmsOutgoing = 102,
///
/// Incoming SMS
///
SmsIncoming = 103,
///
/// Outgoing SMS
///
SmsOutgoing = 104,
///
/// Blocked SMS
///
SmsBlocked = 105,
///
/// Blocked MMS
///
MmsBlocked = 106,
///
/// Received email
///
EmailReceived = 201,
///
/// Sent email
///
EmailSent = 202,
}
}
///
/// Describes properies of a Contact updated information record.
///
/// Read only view
public static class ContactUpdatedInfo
{
///
/// Identifier of this contact updated info view
///
public const string Uri = "tizen.contacts_view.contacts_updated_info";
///
/// Updated contact ID
///
public const uint ContactId = (uint)PropertyIds.UpdateInfoId;
///
/// Addressbook ID that the updated contact belongs to
///
public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId;
///
/// Contact change type, refer to the ContactsViews.ChangeTypes
///
public const uint Type = (uint)PropertyIds.UpdateInfoType;
///
/// Updated version
///
public const uint Version = (uint)PropertyIds.UpdateInfoVersion;
///
/// Contact image is changed or not
///
public const uint ImageChanged = (uint)PropertyIds.UpdateInfoImageChanged;
}
///
/// Describes properies of a My profile updated information record.
///
/// Read only view
public static class MyProfileUpdatedInfo
{
///
/// Identifier of this my profile updated info view
///
public const string Uri = "tizen.contacts_view.my_profile_updated_info";
///
/// Address book ID that the updated my profile belongs to
///
public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId;
///
/// MyProfile change type, refer to the ContactsViews.ChangeTypes
///
public const uint LastChangedType = (uint)PropertyIds.UpdateInfoLastChangedType;
///
/// Updated version
///
public const uint Version = (uint)PropertyIds.UpdateInfoVersion;
}
///
/// Describes properies of a Group updated information record.
///
/// Read only view
public static class GroupUpdatedInfo
{
///
/// Identifier of this group updated info view
///
public const string Uri = "tizen.contacts_view.groups_updated_info";
///
/// Updated group ID
///
public const uint GroupId = (uint)PropertyIds.UpdateInfoId;
///
/// Address book ID that the updated group belongs to
///
public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId;
///
/// Group change type, refer to the ContactsViews.ChangeTypes
///
public const uint Type = (uint)PropertyIds.UpdateInfoType;
///
/// Updated version
///
public const uint Version = (uint)PropertyIds.UpdateInfoVersion;
}
///
/// Describes properies of a Group Member updated information record.
///
/// Read only view
public static class GroupMemberUpdatedInfo
{
///
/// Identifier of this group member updated info view
///
public const string Uri = "tizen.contacts_view.groups_member_updated_info";
///
/// Updated group ID
///
public const uint GroupId = (uint)PropertyIds.UpdateInfoId;
///
/// Address book ID that the updated group belongs to
///
public const uint AddressbookId = (uint)PropertyIds.UpdateInfoAddressbookId;
///
/// Updated version
///
public const uint Version = (uint)PropertyIds.UpdateInfoVersion;
}
///
/// Describes properies of a Relation updated information record.
///
/// Read only view
public static class GroupRelationUpdatedInfo
{
///
/// Identifier of this group relation updated info view
///
public const string Uri = "tizen.contacts_view.group_relations_updated_info";
///
/// Group ID of group relation
///
public const uint GroupId = (uint)PropertyIds.GroupId;
///
/// Contact ID of the updated group relation
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// Address book ID of contact that the updated group relation
///
public const uint AddressbookId = (uint)PropertyIds.AddressbookId;
///
/// Group relation change type, refer to the ContactsViews.ChangeTypes
///
public const uint Type = (uint)PropertyIds.UpdateInfoType;
///
/// Updated version
///
public const uint Version = (uint)PropertyIds.UpdateInfoVersion;
}
///
/// Describes properies of a Person & Contact record.
///
/// Read only view
public static class PersonContact
{
///
/// Identifier of this person contact view
///
public const string Uri = "tizen.contacts_view.person/simple_contact";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// Status of social account (projection)
///
public const uint Status = (uint)PropertyIds.PersonStatus;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// Link count of contact records (projection)
///
public const uint LinkCount = (uint)PropertyIds.PersonLinkCount;
///
/// Contact ID that the person belongs to
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// Addressbook IDs that the person belongs to (projection)
///
public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Addressbook ID that the person belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Addressbook mode, refer to the Addressbook.Modes
///
public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode;
///
/// Addressbook name that the person belongs to
///
public const uint AddressbookName = (uint)PropertyIds.AddressbookName;
///
/// kerword matched data type, refer to the Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Number record.
///
/// Read only view
public static class PersonNumber
{
///
/// Identifier of this person number view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/number";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Number ID that the person belongs to
///
public const uint NumberId = (uint)PropertyIds.NumberId;
///
/// Number type, refer to the Number.Types (projection)
///
public const uint Type = (uint)PropertyIds.NumberType;
///
/// Custom number type label, when the number type is Number.Types.Custom (projection)
///
public const uint Label = (uint)PropertyIds.NumberLabel;
///
/// The number is default number or not
///
public const uint IsPrimaryDefault = (uint)PropertyIds.DataIsPrimaryDefault;
///
/// Number
///
public const uint Number = (uint)PropertyIds.NumberNumber;
///
/// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly.
///
public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter;
///
/// You can only use this property for search filter
///
public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber;
///
/// You can only use this property for search filter
///
public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber;
///
/// kerword matched data type, refer to they Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Email record.
///
/// Read only view
public static class PersonEmail
{
///
/// Identifier of this person email view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/email";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Email ID that the person belongs to
///
public const uint EmailId = (uint)PropertyIds.EmailId;
///
/// Email type, refer to the Email.Types (projection)
///
public const uint Type = (uint)PropertyIds.EmailType;
///
/// Custom mail type label, when the email type is Email.Types.Custom (projection)
///
public const uint Label = (uint)PropertyIds.EmailLabel;
///
/// The email is default email or not
///
public const uint IsPrimaryDefault = (uint)PropertyIds.DataIsPrimaryDefault;
///
/// Email address
///
public const uint Email = (uint)PropertyIds.EmailEmail;
///
/// kerword matched data type, refer to they Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Group Relation record.
///
/// Read only view
public static class PersonGroupRelation
{
///
/// Identifier of this person group relation view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/group";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// Status of social account (projection)
///
public const uint Status = (uint)PropertyIds.PersonStatus;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Link count of contat records (projection)
///
public const uint LinkCount = (uint)PropertyIds.PersonLinkCount;
///
/// Addressbook IDs that the person belongs to (projection)
///
public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds;
///
/// Addressbook ID that the person belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Addressbook name that the person belongs to
///
public const uint AddressbookName = (uint)PropertyIds.AddressbookName;
///
/// Addressbook mode, refer to the Addressbook.Modes
///
public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode;
///
/// Group ID that the person belongs to
///
public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId;
///
/// Contact ID that the person belongs to (projection)
///
public const uint ContactId = (uint)PropertyIds.GroupRelationContactId;
///
/// kerword matched data type, refer to they Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Group Assigned record.
///
/// Read only view
public static class PersonGroupAssigned
{
///
/// Identifier of this person group assigned view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/group_assigned";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// Status of social account (projection)
///
public const uint Status = (uint)PropertyIds.PersonStatus;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Link count of contact records (projection)
///
public const uint LinkCount = (uint)PropertyIds.PersonLinkCount;
///
/// Addressbook IDs that the linked person belongs to (projection)
///
public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds;
///
/// Addressbook ID that the person belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Addressbook mode, refer to the Addressbook.Modes
///
public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode;
///
/// Group ID that the person belongs to
///
public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId;
///
/// Contact ID that the person belongs to (projection)
///
public const uint ContactId = (uint)PropertyIds.GroupRelationContactId;
///
/// kerword matched data type, refer to they Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Group Not Assigned record.
///
/// Read only view
public static class PersonGroupNotAssigned
{
///
/// Identifier of this person group not assigned view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/group_not_assigned";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// Status of social account (projection)
///
public const uint Status = (uint)PropertyIds.PersonStatus;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Link count of contact records (projection)
///
public const uint LinkCount = (uint)PropertyIds.PersonLinkCount;
///
/// Addressbook IDs that the linked person belongs to (projection)
///
public const uint AddressbookIds = (uint)PropertyIds.PersonAddressbookIds;
///
/// Addressbook ID that the person belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Addressbook mode, refer to the Addressbook.Modes
///
public const uint AddressbookMode = (uint)PropertyIds.AddressbookMode;
///
/// Contact ID that the person belongs to (projection)
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// kerword matched data type, refer to they Contact.DataTypes
///
public const uint SnippetType = (uint)PropertyIds.PersonSnippetType;
///
/// keyword matched data string
///
public const uint SnippetString = (uint)PropertyIds.PersonSnippetString;
};
///
/// Describes properies of a Person & Phone Log record.
///
/// Read only view
public static class PersonPhonelog
{
///
/// Identifier of this phone log view
///
public const string Uri = "tizen.contacts_view.person/simple_contact/phonelog";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// DB record ID of phone log
///
public const uint LogId = (uint)PropertyIds.PhonelogId;
///
/// Number or Email that the phone log displays
///
public const uint Address = (uint)PropertyIds.PhonelogAddress;
///
/// Number or Email type (projection)
///
public const uint AddressType = (uint)PropertyIds.DataData1;
///
/// Call end time. The value means number of seconds since 1970-01-01 00:00:00 (UTC)
///
public const uint LogTime = (uint)PropertyIds.PhonelogLogTime;
///
/// Log type, refer to the PhoneLog.Types
///
public const uint LogType = (uint)PropertyIds.PhonelogLogType;
///
/// You can set the related integer data (e.g. message_id, email_id or duration(seconds) of call) (projection)
///
public const uint ExtraData1 = (uint)PropertyIds.PhonelogExtraData1;
///
/// You can set the related string data (e.g. short message, subject) (projection)
///
public const uint ExtraData2 = (uint)PropertyIds.PhonelogExtraData2;
///
/// You can only use this property for search filter
///
public const uint NormalizedAddress = (uint)PropertyIds.PhonelogNormalizedAddress;
///
/// You can only use this property for search filter
///
public const uint CleanedAddress = (uint)PropertyIds.PhonelogCleanedAddress;
///
/// You can only use this property for search filter
///
public const uint AddressFilter = (uint)PropertyIds.PhonelogAddressFilter;
///
/// It is related to the SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init()
///
public const uint SIMSlotNo = (uint)PropertyIds.PhonelogSIMSlotNo;
};
///
/// Describes properies of a Person Usage record.
///
/// Read only view
public static class PersonUsage
{
///
/// Identifier of this person usage view
///
public const string Uri = "tizen.contacts_view.person/usag";
///
/// DB record ID of the person
///
public const uint PersonId = (uint)PropertyIds.PersonId;
///
/// Display name of the person
///
public const uint DisplayName = (uint)PropertyIds.PersonDisplayName;
///
/// The first character of first string for grouping. This is normalized using icu (projection)
///
public const uint DisplayNameIndex = (uint)PropertyIds.PersonDisplayNameIndex;
///
/// Display contact ID that the person belongs to (projection)
///
public const uint DisplayContactId = (uint)PropertyIds.PersonDisplayContactId;
///
/// Ringtone path of the person (projection)
///
public const uint RingtonePath = (uint)PropertyIds.PersonRingtone;
///
/// Image thumbnail path of the person (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.PersonThumbnail;
///
/// Vibration path of the person (projection)
///
public const uint Vibration = (uint)PropertyIds.PersonVibration;
///
/// Message alert path of the person (projection)
///
public const uint MessageAlert = (uint)PropertyIds.PersonMessageAlert;
///
/// The person is favorite or not
///
public const uint IsFavorite = (uint)PropertyIds.PersonIsFavorite;
///
/// The person has phone number or not
///
public const uint HasPhoneNumber = (uint)PropertyIds.PersonHasPhoneNumber;
///
/// The person has email or not
///
public const uint HasEmail = (uint)PropertyIds.PersonHasEmail;
///
/// Usage type, refer to the UsageTypes
///
public const uint UsageType = (uint)PropertyIds.PersonUsageType;
///
/// Usage number of person
///
public const uint TimesUsed = (uint)PropertyIds.PersonTimesUsed;
///
/// Enumeration for Person usage type.
///
public enum Types
{
///
/// None
///
None,
///
/// Outgoing call
///
OutgoingCall,
///
/// Outgoing message
///
OutgoingMessage,
///
/// Outgoing email
///
OutgoingEmail,
///
/// Incoming call
///
IncomingCall,
///
/// Incoming message
///
IncomingMessage,
///
/// Incoming email
///
IncomingEmail,
///
/// Missed call
///
MissedCall,
///
/// Rejected call
///
RejectedCall,
///
/// Blocked call
///
BlockedCall,
///
/// Blocked message
///
BlockedMessage
}
};
///
/// Describes properies of a Contact & Number record.
///
/// Read only view
public static class ContactNumber
{
///
/// Identifier of this contacts number view
///
public const string Uri = "tizen.contacts_view.simple_contact/number";
///
/// Contact ID that the number belongs to
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// Display name of contact that the number belongs to
///
public const uint DisplayName = (uint)PropertyIds.ContactDisplayName;
///
/// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection)
///
public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId;
///
/// Addressbook ID that the number belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Person ID that the number belongs to
///
public const uint PersonId = (uint)PropertyIds.ContactPersonId;
///
/// Ringtone path that the number belongs to (projection)
///
public const uint RingtonePath = (uint)PropertyIds.ContactRingtone;
///
/// Image thumbnail path that the number belongs to (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail;
///
/// DB record ID of the number
///
public const uint NumberId = (uint)PropertyIds.NumberId;
///
/// Number type, refer to the Number.Types (projection)
///
public const uint Type = (uint)PropertyIds.NumberType;
///
/// Custom number type label, when the number type is Number.Types.Custom (projection)
///
public const uint Label = (uint)PropertyIds.NumberLabel;
///
/// The number is default number or not
///
public const uint IsDefault = (uint)PropertyIds.NumberIsDefault;
///
/// Number
///
public const uint Number = (uint)PropertyIds.NumberNumber;
///
/// If you add filter with this property, the string will be normalized as minmatch length internally and the match rule will be applied ContactsFilter.StringMatchType.Exactly
///
public const uint NumberFilter = (uint)PropertyIds.NumberNumberFilter;
///
/// You can only use this property for search filter
///
public const uint NormalizedNumber = (uint)PropertyIds.NumberNormalizedNumber;
///
/// You can only use this property for search filter
///
public const uint CleanedNumber = (uint)PropertyIds.NumberCleanedNumber;
};
///
/// Describes properies of a Contact & Email record.
///
/// Read only view
public static class ContactEmail
{
///
/// Identifier of this contacts email view
///
public const string Uri = "tizen.contacts_view.simple_contact/email";
///
/// Contact ID that the number belongs to
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// Display name of contact that the number belongs to
///
public const uint DisplayName = (uint)PropertyIds.ContactDisplayName;
///
/// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection)
///
public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId;
///
/// Addressbook ID that the number belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Person ID that the number belongs to
///
public const uint PersonId = (uint)PropertyIds.ContactPersonId;
///
/// Ringtone path that the number belongs to (projection)
///
public const uint RingtonePath = (uint)PropertyIds.ContactRingtone;
///
/// Image thumbnail path that the number belongs to (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail;
///
/// DB record ID of the email
///
public const uint EmailId = (uint)PropertyIds.EmailId;
///
/// Email type, refer to the Email.Types (projection)
///
public const uint Type = (uint)PropertyIds.EmailType;
///
/// Custom mail type label, when the email type is Email.Types.Custom (projection)
///
public const uint Label = (uint)PropertyIds.EmailLabel;
///
/// Email is default email or not
///
public const uint IsDefault = (uint)PropertyIds.EmailIsDefault;
///
/// Email address
///
public const uint Email = (uint)PropertyIds.EmailEmail;
};
///
/// Describes properies of a Contact & Group Relation record.
///
/// Read only view
public static class ContactGroupRelation
{
///
/// Identifier of this contact grouprel view
///
public const string Uri = "tizen.contacts_view.simple_contact/group";
///
/// Contact ID that the number belongs to
///
public const uint ContactId = (uint)PropertyIds.ContactId;
///
/// Display name of contact that the number belongs to
///
public const uint DisplayName = (uint)PropertyIds.ContactDisplayName;
///
/// The source type of display name, refer to the Contact.DisplayNameSourceTypes (projection)
///
public const uint DisplaySourceType = (uint)PropertyIds.ContactDisplaySourceDataId;
///
/// Addressbook ID that the number belongs to
///
public const uint AddressbookId = (uint)PropertyIds.ContactAddressbookId;
///
/// Person ID that the number belongs to
///
public const uint PersonId = (uint)PropertyIds.ContactPersonId;
///
/// Ringtone path that the number belongs to (projection)
///
public const uint RingtonePath = (uint)PropertyIds.ContactRingtone;
///
/// Image thumbnail path that the number belongs to (projection)
///
public const uint ThumbnailPath = (uint)PropertyIds.ContactThumbnail;
///
/// DB record ID of the group relation
///
public const uint GroupId = (uint)PropertyIds.GroupRelationGroupId;
///
/// Group name (projection)
///
public const uint GroupName = (uint)PropertyIds.GroupRelationGroupName;
};
///
/// Describes properies of a Phone Log Statistics record.
///
/// Read only view
public static class PhonelogStatistics
{
///
/// Identifier of this log statistics view
///
public const string Uri = "tizen.contacts_view.phonelog_stat";
///
/// Log count (projection)
///
public const uint LogCount = (uint)PropertyIds.PhonelogStatLogCount;
///
/// Log type, see the contacts_phone_log_type_e
///
public const uint LogType = (uint)PropertyIds.PhonelogStatLogType;
///
/// It is related to the SIM slot number. sim_slot_no 0 means first SIM card, sim_slot_no 1 means second SIM. It is same with handle index of telephony handle list. Refer to the telephony_init()
///
public const uint SIMSlotNo = (uint)PropertyIds.PhonelogStatSIMSlotNo;
};
}
}