mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 14:57:27 +00:00
Add Android Project
This commit is contained in:
parent
83feb942ab
commit
0b027bebb4
22 changed files with 271 additions and 97 deletions
|
|
@ -1,17 +0,0 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package com.tribufu.sdk
|
||||
|
||||
class TribuFu {
|
||||
Init()
|
||||
|
||||
// Used to load the 'TribuFu' library on application startup.
|
||||
private def Init() {
|
||||
System.loadLibrary("TribuFu_jvm")
|
||||
}
|
||||
|
||||
/**
|
||||
* A native method that is implemented by the 'TribuFu' native library.
|
||||
*/
|
||||
@native def Hello(input: String): String
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package com.tribufu.sdk.models
|
||||
|
||||
class Email {
|
||||
val address = ""
|
||||
val user_id = "1"
|
||||
val confirmed = false
|
||||
val primary = true
|
||||
}
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
// 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
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package com.tribufu.sdk
|
||||
|
||||
import org.junit.runner.RunWith
|
||||
import org.scalatest.funsuite.AnyFunSuite
|
||||
import org.scalatestplus.junit.JUnitRunner
|
||||
|
||||
@RunWith(classOf[JUnitRunner])
|
||||
class TribuFuSuite extends AnyFunSuite {
|
||||
test("Hello is always true") {
|
||||
def library = new TribuFu()
|
||||
assert(library.Hello("Scala") == "Scala")
|
||||
assert(true)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue