mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 06:47:27 +00:00
Add Sample Classes
This commit is contained in:
parent
ff6dee9b96
commit
c85413b7e0
2 changed files with 63 additions and 0 deletions
10
lib/src/main/scala/tribufu/models/Email.scala
Normal file
10
lib/src/main/scala/tribufu/models/Email.scala
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package tribufu.models
|
||||
|
||||
class Email {
|
||||
val address = ""
|
||||
val user_id = "1"
|
||||
val confirmed = false
|
||||
val primary = true
|
||||
}
|
||||
53
lib/src/main/scala/tribufu/models/User.scala
Normal file
53
lib/src/main/scala/tribufu/models/User.scala
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package tribufu.models
|
||||
|
||||
class User {
|
||||
val id = ""
|
||||
val name = ""
|
||||
val display_name = ""
|
||||
val password_hash = ""
|
||||
val role = Role.User
|
||||
val confirmed = false
|
||||
val two_factor_enabled = false
|
||||
val first_name = ""
|
||||
val last_name = ""
|
||||
val verified = false
|
||||
val parental_control = false
|
||||
val profile_url = ""
|
||||
val public_birthday = false
|
||||
val Birthday = ""
|
||||
val location = ""
|
||||
val timezone = ""
|
||||
val language = ""
|
||||
val currency = ""
|
||||
val theme = Theme.Light
|
||||
val ip_address = ""
|
||||
val registration_ip_address = ""
|
||||
val Joined = ""
|
||||
val Updated = ""
|
||||
val failed_logins = 0
|
||||
val about = ""
|
||||
val profile_views = 0
|
||||
val content = 0
|
||||
val avatar_url = ""
|
||||
val background_url = ""
|
||||
val status = Status.Offline
|
||||
val LastOnline = ""
|
||||
val LastActivity = ""
|
||||
val LastPost = ""
|
||||
val warnings = 0
|
||||
val LastWarn = ""
|
||||
}
|
||||
|
||||
object Role extends Enumeration {
|
||||
val User, Bot, Helper, Tester, Developer, Moderator, Admin, Root = Value
|
||||
}
|
||||
|
||||
object Theme extends Enumeration {
|
||||
val Light, Dark = Value
|
||||
}
|
||||
|
||||
object Status extends Enumeration {
|
||||
val Offline, Away, Disturb, Online, Playing = Value
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue