MVP SyncConfiguration

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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 López Gutiérrez (Inactive)
            Reporter:
            Brian Munkholm (Inactive)
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: