forked from upstream-mirrors/quik
Fix indentation for constructor params
This commit is contained in:
@@ -45,9 +45,9 @@ import kotlin.concurrent.schedule
|
||||
|
||||
@Singleton
|
||||
class BackupRepositoryImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val moshi: Moshi,
|
||||
private val syncRepo: SyncRepository
|
||||
private val context: Context,
|
||||
private val moshi: Moshi,
|
||||
private val syncRepo: SyncRepository
|
||||
) : BackupRepository {
|
||||
|
||||
companion object {
|
||||
@@ -55,8 +55,8 @@ class BackupRepositoryImpl @Inject constructor(
|
||||
}
|
||||
|
||||
data class Backup(
|
||||
val messageCount: Int = 0,
|
||||
val messages: List<BackupMessage> = listOf()
|
||||
val messageCount: Int = 0,
|
||||
val messages: List<BackupMessage> = listOf()
|
||||
)
|
||||
|
||||
/**
|
||||
@@ -64,21 +64,21 @@ class BackupRepositoryImpl @Inject constructor(
|
||||
* needing to parse the entire file
|
||||
*/
|
||||
data class BackupMetadata(
|
||||
val messageCount: Int = 0
|
||||
val messageCount: Int = 0
|
||||
)
|
||||
|
||||
data class BackupMessage(
|
||||
val type: Int,
|
||||
val address: String,
|
||||
val date: Long,
|
||||
val dateSent: Long,
|
||||
val read: Boolean,
|
||||
val status: Int,
|
||||
val body: String,
|
||||
val protocol: Int,
|
||||
val serviceCenter: String?,
|
||||
val locked: Boolean,
|
||||
val subId: Int)
|
||||
val type: Int,
|
||||
val address: String,
|
||||
val date: Long,
|
||||
val dateSent: Long,
|
||||
val read: Boolean,
|
||||
val status: Int,
|
||||
val body: String,
|
||||
val protocol: Int,
|
||||
val serviceCenter: String?,
|
||||
val locked: Boolean,
|
||||
val subId: Int)
|
||||
|
||||
// Subjects to emit our progress events to
|
||||
private val backupProgress: Subject<BackupRepository.Progress> = BehaviorSubject.createDefault(BackupRepository.Progress.Idle())
|
||||
|
||||
@@ -39,8 +39,8 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class ContactRepositoryImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val prefs: Preferences
|
||||
private val context: Context,
|
||||
private val prefs: Preferences
|
||||
) : ContactRepository {
|
||||
|
||||
override fun findContactUri(address: String): Single<Uri> {
|
||||
|
||||
@@ -41,10 +41,10 @@ import java.util.concurrent.TimeUnit
|
||||
import javax.inject.Inject
|
||||
|
||||
class ConversationRepositoryImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val conversationFilter: ConversationFilter,
|
||||
private val cursorToConversation: CursorToConversation,
|
||||
private val cursorToRecipient: CursorToRecipient
|
||||
private val context: Context,
|
||||
private val conversationFilter: ConversationFilter,
|
||||
private val cursorToConversation: CursorToConversation,
|
||||
private val cursorToRecipient: CursorToRecipient
|
||||
) : ConversationRepository {
|
||||
|
||||
override fun getConversations(archived: Boolean): RealmResults<Conversation> {
|
||||
|
||||
@@ -58,12 +58,13 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class MessageRepositoryImpl @Inject constructor(
|
||||
private val activeConversationManager: ActiveConversationManager,
|
||||
private val context: Context,
|
||||
private val messageIds: KeyManager,
|
||||
private val imageRepository: ImageRepository,
|
||||
private val prefs: Preferences,
|
||||
private val syncRepository: SyncRepository) : MessageRepository {
|
||||
private val activeConversationManager: ActiveConversationManager,
|
||||
private val context: Context,
|
||||
private val messageIds: KeyManager,
|
||||
private val imageRepository: ImageRepository,
|
||||
private val prefs: Preferences,
|
||||
private val syncRepository: SyncRepository
|
||||
) : MessageRepository {
|
||||
|
||||
override fun getMessages(threadId: Long, query: String): RealmResults<Message> {
|
||||
return Realm.getDefaultInstance()
|
||||
|
||||
@@ -47,25 +47,25 @@ import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
class SyncRepositoryImpl @Inject constructor(
|
||||
private val contentResolver: ContentResolver,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val cursorToConversation: CursorToConversation,
|
||||
private val cursorToMessage: CursorToMessage,
|
||||
private val cursorToRecipient: CursorToRecipient,
|
||||
private val cursorToContact: CursorToContact,
|
||||
private val keys: KeyManager,
|
||||
private val rxPrefs: RxSharedPreferences
|
||||
private val contentResolver: ContentResolver,
|
||||
private val conversationRepo: ConversationRepository,
|
||||
private val cursorToConversation: CursorToConversation,
|
||||
private val cursorToMessage: CursorToMessage,
|
||||
private val cursorToRecipient: CursorToRecipient,
|
||||
private val cursorToContact: CursorToContact,
|
||||
private val keys: KeyManager,
|
||||
private val rxPrefs: RxSharedPreferences
|
||||
) : SyncRepository {
|
||||
|
||||
/**
|
||||
* Holds data that should be persisted across full syncs
|
||||
*/
|
||||
private data class PersistedData(
|
||||
val id: Long,
|
||||
val archived: Boolean,
|
||||
val blocked: Boolean,
|
||||
val pinned: Boolean,
|
||||
val name: String)
|
||||
val id: Long,
|
||||
val archived: Boolean,
|
||||
val blocked: Boolean,
|
||||
val pinned: Boolean,
|
||||
val name: String)
|
||||
|
||||
override val syncProgress: Subject<SyncRepository.SyncProgress> = BehaviorSubject.createDefault(SyncRepository.SyncProgress.Idle())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user