-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
526 additions
and
161 deletions.
There are no files selected for viewing
62 changes: 38 additions & 24 deletions
62
library-test/src/main/java/com/alexstyl/contactstore/test/StoredContact.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,52 @@ | ||
package com.alexstyl.contactstore.test | ||
|
||
import android.provider.ContactsContract | ||
import com.alexstyl.contactstore.Contact | ||
import com.alexstyl.contactstore.ContactColumn | ||
import com.alexstyl.contactstore.EventDate | ||
import com.alexstyl.contactstore.GroupMembership | ||
import com.alexstyl.contactstore.ImAddress | ||
import com.alexstyl.contactstore.ImageData | ||
import com.alexstyl.contactstore.LabeledValue | ||
import com.alexstyl.contactstore.LinkedAccountValue | ||
import com.alexstyl.contactstore.LookupKey | ||
import com.alexstyl.contactstore.MailAddress | ||
import com.alexstyl.contactstore.Note | ||
import com.alexstyl.contactstore.PhoneNumber | ||
import com.alexstyl.contactstore.PostalAddress | ||
import com.alexstyl.contactstore.Relation | ||
import com.alexstyl.contactstore.SipAddress | ||
import com.alexstyl.contactstore.WebAddress | ||
|
||
public data class StoredContact( | ||
val contactId: Long, | ||
val isStarred: Boolean = false, | ||
val prefix: String? = null, | ||
val firstName: String? = null, | ||
val middleName: String? = null, | ||
val lastName: String? = null, | ||
val suffix: String? = null, | ||
val phoneticFirstName: String? = null, | ||
val phoneticMiddleName: String? = null, | ||
val phoneticLastName: String? = null, | ||
val imageData: ImageData? = null, | ||
val organization: String? = null, | ||
val jobTitle: String? = null, | ||
val webAddresses: List<LabeledValue<WebAddress>> = emptyList(), | ||
val phones: List<LabeledValue<PhoneNumber>> = emptyList(), | ||
val mails: List<LabeledValue<MailAddress>> = emptyList(), | ||
val events: List<LabeledValue<EventDate>> = emptyList(), | ||
val postalAddresses: List<LabeledValue<PostalAddress>> = emptyList(), | ||
val note: Note? = null, | ||
val nickname: String? = null, | ||
val fullNameStyle: Int = ContactsContract.FullNameStyle.UNDEFINED, | ||
val phoneticNameStyle: Int = ContactsContract.PhoneticNameStyle.UNDEFINED, | ||
val groups: List<GroupMembership> = emptyList() | ||
) | ||
override val contactId: Long, | ||
override val isStarred: Boolean = false, | ||
override val prefix: String? = null, | ||
override val firstName: String? = null, | ||
override val middleName: String? = null, | ||
override val lastName: String? = null, | ||
override val suffix: String? = null, | ||
override val phoneticFirstName: String? = null, | ||
override val phoneticMiddleName: String? = null, | ||
override val phoneticLastName: String? = null, | ||
override val imageData: ImageData? = null, | ||
override val organization: String? = null, | ||
override val jobTitle: String? = null, | ||
override val webAddresses: List<LabeledValue<WebAddress>> = emptyList(), | ||
override val phones: List<LabeledValue<PhoneNumber>> = emptyList(), | ||
override val mails: List<LabeledValue<MailAddress>> = emptyList(), | ||
override val events: List<LabeledValue<EventDate>> = emptyList(), | ||
override val postalAddresses: List<LabeledValue<PostalAddress>> = emptyList(), | ||
override val note: Note? = null, | ||
override val nickname: String? = null, | ||
override val fullNameStyle: Int = ContactsContract.FullNameStyle.UNDEFINED, | ||
override val phoneticNameStyle: Int = ContactsContract.PhoneticNameStyle.UNDEFINED, | ||
override val groups: List<GroupMembership> = emptyList(), | ||
override val displayName: String? = null, | ||
override val lookupKey: LookupKey? = null, | ||
override val sipAddresses: List<LabeledValue<SipAddress>> = emptyList(), | ||
override val linkedAccountValues: List<LinkedAccountValue> = emptyList(), | ||
override val imAddresses: List<LabeledValue<ImAddress>> = emptyList(), | ||
override val relations: List<LabeledValue<Relation>> = emptyList(), | ||
override val columns: List<ContactColumn> = emptyList() | ||
) : Contact |
8 changes: 8 additions & 0 deletions
8
library-test/src/main/java/com/alexstyl/contactstore/test/StoredContactGroup.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.alexstyl.contactstore.test | ||
|
||
public data class StoredContactGroup( | ||
val groupId: Long, | ||
val title: String = "", | ||
val note: String? = null, | ||
val isDeleted : Boolean = false | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
library-test/src/test/java/com/alexstyl/contactstore/Fixtures.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.