This repository was archived by the owner on Feb 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivo Berger
committed
May 8, 2019
1 parent
23d6ca3
commit d9da3fd
Showing
9 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/com/ivoberger/enq/utils/EnQDebugTree.kt → ...com/ivoberger/enq/logging/EnQDebugTree.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.ivoberger.enq.utils | ||
package com.ivoberger.enq.logging | ||
|
||
import timber.log.Timber | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...a/com/ivoberger/enq/utils/FirebaseTree.kt → ...com/ivoberger/enq/logging/FirebaseTree.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.ivoberger.enq.model | ||
|
||
import com.ivoberger.jmusicbot.model.VersionInfo | ||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
import com.squareup.moshi.Types | ||
import java.lang.reflect.Type | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class ServerInfo( | ||
@Json(name = "baseUrl") val baseUrl: String, | ||
@Json(name = "versionInfo") val versionInfo: VersionInfo | ||
) { | ||
companion object { | ||
val listMoshiType: Type = Types.newParameterizedType(List::class.java, ServerInfo::class.java) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.ivoberger.enq.utils | ||
|
||
fun <T> List<T>.addIfNotExistent(new: T): List<T> = | ||
if (!contains(new)) this + new | ||
else this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
jmusicbot/src/main/java/com/ivoberger/jmusicbot/model/VersionInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.ivoberger.jmusicbot.model | ||
|
||
import com.squareup.moshi.JsonClass | ||
|
||
@JsonClass(generateAdapter = true) | ||
data class VersionInfo(val apiVersion: String, val implementation: ImplementationInfo) { | ||
@JsonClass(generateAdapter = true) | ||
data class ImplementationInfo(val name: String, val version: String, val projectInfo: String? = null) | ||
} |