package com.habitrpg.android.habitica.models.user

import com.google.gson.annotations.SerializedName
import com.habitrpg.android.habitica.models.auth.LocalAuthentication

import io.realm.RealmObject
import io.realm.annotations.PrimaryKey

open class Authentication : RealmObject() {

    @PrimaryKey
    var userId: String? = null
    set(value) {
        field = value
        timestamps?.userId = value
        localAuthentication?.userID = value
    }

    @SerializedName("local")
    var localAuthentication: LocalAuthentication? = null

    var timestamps: AuthenticationTimestamps? = null

}
