mirror of
https://github.com/Tribufu/TribufuJava
synced 2026-08-08 20:31:07 +00:00
Migrate to Scala
This commit is contained in:
parent
3aac52f5a5
commit
4f8c2590ef
6 changed files with 100 additions and 86 deletions
53
lib/src/main/scala/models/User.scala
Normal file
53
lib/src/main/scala/models/User.scala
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package com.tribufu.sdk.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