package de.sebse.fuplanner2.whiteboard

import org.json.JSONObject

class WhiteboardInfo {
    var id: String? = null

    constructor() { }

    constructor(json: String) {
        val obj = JSONObject(json)
        id = obj.opt("id") as String?
    }

    fun update(user: WhiteboardInfo) {
        id = user.id?: id
    }

    override fun toString(): String {
        val obj = JSONObject()
        obj.put("id", id)
        return obj.toString()
    }
}