Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-173

MVP SyncConfiguration

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      This issue covers creating an MVP API for SyncConfiguration that allows a user to Sync.

      It looks like this should be the minimal thing required:

       

      class SyncConfiguration {
        companion object {
          fun defaultConfig(user: User, partitionValue: Integer?, schema: Set<RealmObject>)
          fun defaultConfig(user: User, partitionValue: Long?, schema: Set<RealmObject>)
          fun defaultConfig(user: User, partitionValue: String?, schema: Set<RealmObject>)
          fun defaultConfig(user: User, partitionValue: ObjectId?, schema: Set<RealmObject>)
        }
      
        val user: User
        val partitionValue: Any  val schema: Set<KClass<RealmObject>>
      
        class Builder {
          constructor(user: User, partitionValue: Integer?, schema: Set<RealmObject>) 
          constructor(user: User, partitionValue: Long?, schema: Set<RealmObject>)
          constructor(user: User, partitionValue: String?, schema: Set<RealmObject>)
          constructor(user: User, partitionValue: ObjectId?, schema: Set<RealmObject>)  
        }
      }
      

       

       

            Assignee:
            eduardo.lopezgutierrez@mongodb.com Eduardo López Gutiérrez (Inactive)
            Reporter:
            brian.munkholm@mongodb.com Brian Munkholm (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: