Skip to content

Commit

Permalink
Update RealmCourseActivity.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 authored Oct 15, 2024
1 parent 37a9235 commit 11026a7
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ open class RealmCourseActivity : RealmObject() {
}
}
}
// fun createActivity(realm: Realm, userModel: RealmUserModel?, course: RealmMyCourse?) {
// realm.executeTransactionAsync { bgRealm ->
// val activity = bgRealm.createObject(RealmCourseActivity::class.java, "${UUID.randomUUID()}")
// activity.type = "visit"
// activity.title = course?.courseTitle
// activity.courseId = course?.courseId
// activity.time = Date().time
// activity.parentCode = userModel?.parentCode
// activity.createdOn = userModel?.planetCode
// activity.user = userModel?.name
// }
// }

@JvmStatic
fun serializeSerialize(realmCourseActivities: RealmCourseActivity): JsonObject {
Expand All @@ -75,4 +63,4 @@ open class RealmCourseActivity : RealmObject() {
return ob
}
}
}
}

0 comments on commit 11026a7

Please sign in to comment.