Commit 94851cfc authored by Konstantin Tskhovrebov's avatar Konstantin Tskhovrebov 🤖

Apply code style.

parent 92ab3a07
...@@ -58,12 +58,12 @@ class App : Application() { ...@@ -58,12 +58,12 @@ class App : Application() {
private fun initMarkwon() { private fun initMarkwon() {
val theme = SpannableTheme.builderWithDefaults(this) val theme = SpannableTheme.builderWithDefaults(this)
.codeTextColor(Color.parseColor("#C0341D")) .codeTextColor(Color.parseColor("#C0341D"))
.codeBackgroundColor(Color.parseColor("#FCEDEA")) .codeBackgroundColor(Color.parseColor("#FCEDEA"))
.build() .build()
SpannableConfiguration.builder(this) SpannableConfiguration.builder(this)
.theme(theme) .theme(theme)
.build() .build()
} }
private fun initThreetenABP() { private fun initThreetenABP() {
......
...@@ -3,10 +3,10 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,10 +3,10 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class Assignee( data class Assignee(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("state") val state: String?, @SerializedName("state") val state: String?,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("web_url") val webUrl: String?, @SerializedName("web_url") val webUrl: String?,
@SerializedName("avatar_url") val avatarUrl: String?, @SerializedName("avatar_url") val avatarUrl: String?,
@SerializedName("username") val username: String @SerializedName("username") val username: String
) )
...@@ -3,10 +3,10 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,10 +3,10 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class Author( data class Author(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("state") val state: String?, @SerializedName("state") val state: String?,
@SerializedName("web_url") val webUrl: String?, @SerializedName("web_url") val webUrl: String?,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("avatar_url") val avatarUrl: String?, @SerializedName("avatar_url") val avatarUrl: String?,
@SerializedName("username") val username: String @SerializedName("username") val username: String
) )
...@@ -6,13 +6,13 @@ import com.google.gson.annotations.SerializedName ...@@ -6,13 +6,13 @@ import com.google.gson.annotations.SerializedName
* @author Konstantin Tskhovrebov (aka terrakok) on 27.04.17. * @author Konstantin Tskhovrebov (aka terrakok) on 27.04.17.
*/ */
data class File( data class File(
@SerializedName("file_name") val name: String, @SerializedName("file_name") val name: String,
@SerializedName("file_path") val path: String, @SerializedName("file_path") val path: String,
@SerializedName("size") val size: Long, @SerializedName("size") val size: Long,
@SerializedName("encoding") val encoding: String, @SerializedName("encoding") val encoding: String,
@SerializedName("content") val content: String, @SerializedName("content") val content: String,
@SerializedName("ref") val branch: String, @SerializedName("ref") val branch: String,
@SerializedName("blob_id") val blobId: String, @SerializedName("blob_id") val blobId: String,
@SerializedName("commit_id") val commitId: String, @SerializedName("commit_id") val commitId: String,
@SerializedName("last_commit_id") val lastCommitId: String @SerializedName("last_commit_id") val lastCommitId: String
) )
\ No newline at end of file
...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class GroupAccess( data class GroupAccess(
@SerializedName("access_level") val accessLevel: Long, @SerializedName("access_level") val accessLevel: Long,
@SerializedName("notification_level") val notificationLevel: Long @SerializedName("notification_level") val notificationLevel: Long
) )
...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class Identity( data class Identity(
@SerializedName("provider") val provider: String, @SerializedName("provider") val provider: String,
@SerializedName("extern_uid") val externUid: String @SerializedName("extern_uid") val externUid: String
) )
...@@ -6,8 +6,8 @@ import com.google.gson.annotations.SerializedName ...@@ -6,8 +6,8 @@ import com.google.gson.annotations.SerializedName
* @author Eugene Shapovalov (CraggyHaggy). Date: 11.09.17 * @author Eugene Shapovalov (CraggyHaggy). Date: 11.09.17
*/ */
data class Links( data class Links(
@SerializedName("self") val self: String?, @SerializedName("self") val self: String?,
@SerializedName("notes") val notes: String?, @SerializedName("notes") val notes: String?,
@SerializedName("award_emoji") val awardEmoji: String?, @SerializedName("award_emoji") val awardEmoji: String?,
@SerializedName("project") val project: String? @SerializedName("project") val project: String?
) )
\ No newline at end of file
...@@ -4,13 +4,13 @@ import com.google.gson.annotations.SerializedName ...@@ -4,13 +4,13 @@ import com.google.gson.annotations.SerializedName
import org.threeten.bp.LocalDateTime import org.threeten.bp.LocalDateTime
data class Milestone( data class Milestone(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("iid") val iid: Long, @SerializedName("iid") val iid: Long,
@SerializedName("project_id") val projectId: Long, @SerializedName("project_id") val projectId: Long,
@SerializedName("description") val description: String?, @SerializedName("description") val description: String?,
@SerializedName("state") val state: String?, @SerializedName("state") val state: String?,
@SerializedName("due_date") val dueDate: String?, @SerializedName("due_date") val dueDate: String?,
@SerializedName("created_at") val createdAt: LocalDateTime?, @SerializedName("created_at") val createdAt: LocalDateTime?,
@SerializedName("title") val title: String?, @SerializedName("title") val title: String?,
@SerializedName("updated_at") val updatedAt: String? @SerializedName("updated_at") val updatedAt: String?
) )
...@@ -3,9 +3,9 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,9 +3,9 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class Namespace( data class Namespace(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("name") val name: String?, @SerializedName("name") val name: String?,
@SerializedName("path") val path: String?, @SerializedName("path") val path: String?,
@SerializedName("kind") val kind: String?, @SerializedName("kind") val kind: String?,
@SerializedName("full_path") val fullPath: String? @SerializedName("full_path") val fullPath: String?
) )
...@@ -5,13 +5,13 @@ import org.threeten.bp.LocalDateTime ...@@ -5,13 +5,13 @@ import org.threeten.bp.LocalDateTime
import ru.terrakok.gitlabclient.entity.event.EventTargetType import ru.terrakok.gitlabclient.entity.event.EventTargetType
data class Note( data class Note(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("body") val body: String, @SerializedName("body") val body: String,
@SerializedName("author") val author: Author, @SerializedName("author") val author: Author,
@SerializedName("created_at") val createdAt: LocalDateTime, @SerializedName("created_at") val createdAt: LocalDateTime,
@SerializedName("updated_at") val updatedAt: LocalDateTime?, @SerializedName("updated_at") val updatedAt: LocalDateTime?,
@SerializedName("system") val isSystem: Boolean, @SerializedName("system") val isSystem: Boolean,
@SerializedName("noteable_id") val noteableId: Long, @SerializedName("noteable_id") val noteableId: Long,
@SerializedName("noteable_type") val noteableType: EventTargetType?, @SerializedName("noteable_type") val noteableType: EventTargetType?,
@SerializedName("noteable_iid") val noteableIid: Long @SerializedName("noteable_iid") val noteableIid: Long
) )
\ No newline at end of file
...@@ -6,12 +6,18 @@ import com.google.gson.annotations.SerializedName ...@@ -6,12 +6,18 @@ import com.google.gson.annotations.SerializedName
* @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17 * @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17
*/ */
enum class OrderBy(private val jsonName: String) { enum class OrderBy(private val jsonName: String) {
@SerializedName("id") ID("id"), @SerializedName("id")
@SerializedName("name") NAME("name"), ID("id"),
@SerializedName("path") PATH("path"), @SerializedName("name")
@SerializedName("created_at") CREATED_AT("created_at"), NAME("name"),
@SerializedName("updated_at") UPDATED_AT("updated_at"), @SerializedName("path")
@SerializedName("last_activity_at") LAST_ACTIVITY_AT("last_activity_at"); PATH("path"),
@SerializedName("created_at")
CREATED_AT("created_at"),
@SerializedName("updated_at")
UPDATED_AT("updated_at"),
@SerializedName("last_activity_at")
LAST_ACTIVITY_AT("last_activity_at");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -3,9 +3,9 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,9 +3,9 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
import org.threeten.bp.LocalDateTime import org.threeten.bp.LocalDateTime
data class Owner ( data class Owner(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("username") val username: String, @SerializedName("username") val username: String,
@SerializedName("created_at") val createdAt: LocalDateTime? @SerializedName("created_at") val createdAt: LocalDateTime?
) )
...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class Permissions( data class Permissions(
@SerializedName("project_access") val projectAccess: ProjectAccess?, @SerializedName("project_access") val projectAccess: ProjectAccess?,
@SerializedName("group_access") val groupAccess: GroupAccess? @SerializedName("group_access") val groupAccess: GroupAccess?
) )
...@@ -4,40 +4,40 @@ import com.google.gson.annotations.SerializedName ...@@ -4,40 +4,40 @@ import com.google.gson.annotations.SerializedName
import org.threeten.bp.LocalDateTime import org.threeten.bp.LocalDateTime
data class Project( data class Project(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("description") val description: String?, @SerializedName("description") val description: String?,
@SerializedName("default_branch") val defaultBranch: String, @SerializedName("default_branch") val defaultBranch: String,
@SerializedName("visibility") val visibility: Visibility, @SerializedName("visibility") val visibility: Visibility,
@SerializedName("ssh_url_to_repo") val sshUrlToRepo: String?, @SerializedName("ssh_url_to_repo") val sshUrlToRepo: String?,
@SerializedName("http_url_to_repo") val httpUrlToRepo: String?, @SerializedName("http_url_to_repo") val httpUrlToRepo: String?,
@SerializedName("web_url") val webUrl: String?, @SerializedName("web_url") val webUrl: String?,
@SerializedName("tag_list") val tagList: List<String>?, @SerializedName("tag_list") val tagList: List<String>?,
@SerializedName("owner") val owner: Owner?, @SerializedName("owner") val owner: Owner?,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("name_with_namespace") val nameWithNamespace: String, @SerializedName("name_with_namespace") val nameWithNamespace: String,
@SerializedName("path") val path: String, @SerializedName("path") val path: String,
@SerializedName("path_with_namespace") val pathWithNamespace: String, @SerializedName("path_with_namespace") val pathWithNamespace: String,
@SerializedName("issues_enabled") val issuesEnabled: Boolean, @SerializedName("issues_enabled") val issuesEnabled: Boolean,
@SerializedName("open_issues_count") val openIssuesCount: Long, @SerializedName("open_issues_count") val openIssuesCount: Long,
@SerializedName("merge_requests_enabled") val mergeRequestsEnabled: Boolean, @SerializedName("merge_requests_enabled") val mergeRequestsEnabled: Boolean,
@SerializedName("jobs_enabled") val jobsEnabled: Boolean, @SerializedName("jobs_enabled") val jobsEnabled: Boolean,
@SerializedName("wiki_enabled") val wikiEnabled: Boolean, @SerializedName("wiki_enabled") val wikiEnabled: Boolean,
@SerializedName("snippets_enabled") val snippetsEnabled: Boolean, @SerializedName("snippets_enabled") val snippetsEnabled: Boolean,
@SerializedName("container_registry_enabled") val containerRegistryEnabled: Boolean, @SerializedName("container_registry_enabled") val containerRegistryEnabled: Boolean,
@SerializedName("created_at") val createdAt: LocalDateTime?, @SerializedName("created_at") val createdAt: LocalDateTime?,
@SerializedName("last_activity_at") val lastActivityAt: LocalDateTime?, @SerializedName("last_activity_at") val lastActivityAt: LocalDateTime?,
@SerializedName("creator_id") val creatorId: Long, @SerializedName("creator_id") val creatorId: Long,
@SerializedName("namespace") val namespace: Namespace?, @SerializedName("namespace") val namespace: Namespace?,
@SerializedName("permissions") val permissions: Permissions?, @SerializedName("permissions") val permissions: Permissions?,
@SerializedName("archived") val archived: Boolean, @SerializedName("archived") val archived: Boolean,
@SerializedName("avatar_url") val avatarUrl: String?, @SerializedName("avatar_url") val avatarUrl: String?,
@SerializedName("shared_runners_enabled") val sharedRunnersEnabled: Boolean, @SerializedName("shared_runners_enabled") val sharedRunnersEnabled: Boolean,
@SerializedName("forks_count") val forksCount: Long, @SerializedName("forks_count") val forksCount: Long,
@SerializedName("star_count") val starCount: Long, @SerializedName("star_count") val starCount: Long,
@SerializedName("runners_token") val runnersToken: String?, @SerializedName("runners_token") val runnersToken: String?,
@SerializedName("public_jobs") val publicJobs: Boolean, @SerializedName("public_jobs") val publicJobs: Boolean,
@SerializedName("shared_with_groups") val sharedWithGroups: List<SharedWithGroup>?, @SerializedName("shared_with_groups") val sharedWithGroups: List<SharedWithGroup>?,
@SerializedName("only_allow_merge_if_pipeline_succeeds") val onlyAllowMergeIfPipelineSucceeds: Boolean, @SerializedName("only_allow_merge_if_pipeline_succeeds") val onlyAllowMergeIfPipelineSucceeds: Boolean,
@SerializedName("only_allow_merge_if_all_discussions_are_resolved") val onlyAllowMergeIfAllDiscussionsAreResolved: Boolean, @SerializedName("only_allow_merge_if_all_discussions_are_resolved") val onlyAllowMergeIfAllDiscussionsAreResolved: Boolean,
@SerializedName("request_access_enabled") val requestAccessEnabled: Boolean @SerializedName("request_access_enabled") val requestAccessEnabled: Boolean
) )
...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,6 +3,6 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class ProjectAccess( data class ProjectAccess(
@SerializedName("access_level") val accessLevel: Long, @SerializedName("access_level") val accessLevel: Long,
@SerializedName("notification_level") val notificationLevel: Long @SerializedName("notification_level") val notificationLevel: Long
) )
\ No newline at end of file
...@@ -6,11 +6,11 @@ import com.google.gson.annotations.SerializedName ...@@ -6,11 +6,11 @@ import com.google.gson.annotations.SerializedName
* Created by Eugene Shapovalov (@CraggyHaggy) on 19.11.17. * Created by Eugene Shapovalov (@CraggyHaggy) on 19.11.17.
*/ */
data class PushData( data class PushData(
@SerializedName("commit_count") val commitCount: Int, @SerializedName("commit_count") val commitCount: Int,
@SerializedName("action") val action: PushDataAction, @SerializedName("action") val action: PushDataAction,
@SerializedName("ref_type") val refType: PushDataRefType, @SerializedName("ref_type") val refType: PushDataRefType,
@SerializedName("commit_from") val commitFrom: String?, @SerializedName("commit_from") val commitFrom: String?,
@SerializedName("commit_to") val commitTo: String?, @SerializedName("commit_to") val commitTo: String?,
@SerializedName("ref") val ref: String?, @SerializedName("ref") val ref: String?,
@SerializedName("commit_title") val commitTitle: String? @SerializedName("commit_title") val commitTitle: String?
) )
\ No newline at end of file
...@@ -6,9 +6,12 @@ import com.google.gson.annotations.SerializedName ...@@ -6,9 +6,12 @@ import com.google.gson.annotations.SerializedName
* Created by Eugene Shapovalov (@CraggyHaggy) on 19.11.17. * Created by Eugene Shapovalov (@CraggyHaggy) on 19.11.17.
*/ */
enum class PushDataAction(private val jsonName: String) { enum class PushDataAction(private val jsonName: String) {
@SerializedName("pushed") PUSHED("pushed"), @SerializedName("pushed")
@SerializedName("removed") REMOVED("removed"), PUSHED("pushed"),
@SerializedName("created") CREATED("created"); @SerializedName("removed")
REMOVED("removed"),
@SerializedName("created")
CREATED("created");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName ...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName
* Created by Eugene Shapovalov (@CraggyHaggy) on 05.12.17. * Created by Eugene Shapovalov (@CraggyHaggy) on 05.12.17.
*/ */
enum class PushDataRefType(private val jsonName: String) { enum class PushDataRefType(private val jsonName: String) {
@SerializedName("branch") BRANCH("branch"), @SerializedName("branch")
@SerializedName("tag") TAG("tag"); BRANCH("branch"),
@SerializedName("tag")
TAG("tag");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -6,9 +6,9 @@ import com.google.gson.annotations.SerializedName ...@@ -6,9 +6,9 @@ import com.google.gson.annotations.SerializedName
* @author Eugene Shapovalov (CraggyHaggy). Date: 06.02.18 * @author Eugene Shapovalov (CraggyHaggy). Date: 06.02.18
*/ */
data class RepositoryTreeNode( data class RepositoryTreeNode(
@SerializedName("id") val id: String, @SerializedName("id") val id: String,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("type") val type: RepositoryTreeNodeType, @SerializedName("type") val type: RepositoryTreeNodeType,
@SerializedName("path") val path: String, @SerializedName("path") val path: String,
@SerializedName("mode") val mode: String @SerializedName("mode") val mode: String
) )
\ No newline at end of file
...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName ...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName
* Created by Eugene Shapovalov (@CraggyHaggy) on 08.02.18. * Created by Eugene Shapovalov (@CraggyHaggy) on 08.02.18.
*/ */
enum class RepositoryTreeNodeType(private val jsonName: String) { enum class RepositoryTreeNodeType(private val jsonName: String) {
@SerializedName("tree") TREE("tree"), @SerializedName("tree")
@SerializedName("blob") BLOB("blob"); TREE("tree"),
@SerializedName("blob")
BLOB("blob");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ package ru.terrakok.gitlabclient.entity ...@@ -3,7 +3,7 @@ package ru.terrakok.gitlabclient.entity
import com.google.gson.annotations.SerializedName import com.google.gson.annotations.SerializedName
data class SharedWithGroup( data class SharedWithGroup(
@SerializedName("group_id") val groupId: Long, @SerializedName("group_id") val groupId: Long,
@SerializedName("group_name") val groupName: String?, @SerializedName("group_name") val groupName: String?,
@SerializedName("group_access_level") val groupAccessLevel: Long @SerializedName("group_access_level") val groupAccessLevel: Long
) )
...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName ...@@ -6,8 +6,10 @@ import com.google.gson.annotations.SerializedName
* @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17 * @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17
*/ */
enum class Sort(private val jsonName: String) { enum class Sort(private val jsonName: String) {
@SerializedName("asc") ASC("asc"), @SerializedName("asc")
@SerializedName("desc") DESC("desc"); ASC("asc"),
@SerializedName("desc")
DESC("desc");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -6,9 +6,9 @@ import com.google.gson.annotations.SerializedName ...@@ -6,9 +6,9 @@ import com.google.gson.annotations.SerializedName
* @author Konstantin Tskhovrebov (aka terrakok) on 26.03.17. * @author Konstantin Tskhovrebov (aka terrakok) on 26.03.17.
*/ */
data class TokenData( data class TokenData(
@SerializedName("access_token") val token: String, @SerializedName("access_token") val token: String,
@SerializedName("token_type") val type: String, @SerializedName("token_type") val type: String,
@SerializedName("scope") val scope: String, @SerializedName("scope") val scope: String,
@SerializedName("created_at") val createdAt: Long, @SerializedName("created_at") val createdAt: Long,
@SerializedName("refresh_token") val refreshToken: String @SerializedName("refresh_token") val refreshToken: String
) )
\ No newline at end of file
...@@ -4,30 +4,30 @@ import com.google.gson.annotations.SerializedName ...@@ -4,30 +4,30 @@ import com.google.gson.annotations.SerializedName
import org.threeten.bp.LocalDateTime import org.threeten.bp.LocalDateTime
data class User( data class User(
@SerializedName("id") val id: Long, @SerializedName("id") val id: Long,
@SerializedName("username") val username: String, @SerializedName("username") val username: String,
@SerializedName("email") val email: String?, @SerializedName("email") val email: String?,
@SerializedName("name") val name: String, @SerializedName("name") val name: String,
@SerializedName("state") val state: String?, @SerializedName("state") val state: String?,
@SerializedName("avatar_url") val avatarUrl: String?, @SerializedName("avatar_url") val avatarUrl: String?,
@SerializedName("web_url") val webUrl: String?, @SerializedName("web_url") val webUrl: String?,
@SerializedName("created_at") val createdAt: LocalDateTime, @SerializedName("created_at") val createdAt: LocalDateTime,
@SerializedName("is_admin") val isAdmin: Boolean, @SerializedName("is_admin") val isAdmin: Boolean,
@SerializedName("bio") val bio: String?, @SerializedName("bio") val bio: String?,
@SerializedName("location") val location: String?, @SerializedName("location") val location: String?,
@SerializedName("skype") val skype: String?, @SerializedName("skype") val skype: String?,
@SerializedName("linkedin") val linkedin: String?, @SerializedName("linkedin") val linkedin: String?,
@SerializedName("twitter") val twitter: String?, @SerializedName("twitter") val twitter: String?,
@SerializedName("website_url") val websiteUrl: String?, @SerializedName("website_url") val websiteUrl: String?,
@SerializedName("organization") val organization: String?, @SerializedName("organization") val organization: String?,
@SerializedName("last_sign_in_at") val lastSignInAt: LocalDateTime, @SerializedName("last_sign_in_at") val lastSignInAt: LocalDateTime,
@SerializedName("confirmed_at") val confirmedAt: LocalDateTime, @SerializedName("confirmed_at") val confirmedAt: LocalDateTime,
@SerializedName("color_scheme_id") val colorSchemeId: Long, @SerializedName("color_scheme_id") val colorSchemeId: Long,
@SerializedName("projects_limit") val projectsLimit: Long, @SerializedName("projects_limit") val projectsLimit: Long,
@SerializedName("current_sign_in_at") val currentSignInAt: LocalDateTime, @SerializedName("current_sign_in_at") val currentSignInAt: LocalDateTime,
@SerializedName("identities") val identities: List<Identity>?, @SerializedName("identities") val identities: List<Identity>?,
@SerializedName("can_create_group") val canCreateGroup: Boolean, @SerializedName("can_create_group") val canCreateGroup: Boolean,
@SerializedName("can_create_project") val canCreateProject: Boolean, @SerializedName("can_create_project") val canCreateProject: Boolean,
@SerializedName("two_factor_enabled") val twoFactorEnabled: Boolean, @SerializedName("two_factor_enabled") val twoFactorEnabled: Boolean,
@SerializedName("external") val external: Boolean @SerializedName("external") val external: Boolean
) )
...@@ -6,9 +6,12 @@ import com.google.gson.annotations.SerializedName ...@@ -6,9 +6,12 @@ import com.google.gson.annotations.SerializedName
* @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17 * @author Konstantin Tskhovrebov (aka terrakok). Date: 30.03.17
*/ */
enum class Visibility(private val jsonName: String) { enum class Visibility(private val jsonName: String) {
@SerializedName("public") PUBLIC("public"), @SerializedName("public")
@SerializedName("internal") INTERNAL("internal"), PUBLIC("public"),
@SerializedName("private") PRIVATE("private"); @SerializedName("internal")
INTERNAL("internal"),
@SerializedName("private")
PRIVATE("private");
override fun toString() = jsonName override fun toString() = jsonName
} }
\ No newline at end of file
...@@ -4,9 +4,9 @@ package ru.terrakok.gitlabclient.entity.app.develop ...@@ -4,9 +4,9 @@ package ru.terrakok.gitlabclient.entity.app.develop
* Created by Konstantin Tskhovrebov (aka @terrakok) on 03.12.17. * Created by Konstantin Tskhovrebov (aka @terrakok) on 03.12.17.
*/ */
data class AppDeveloper( data class AppDeveloper(
val name: String, val name: String,
val gitlabId: Long? = null, val gitlabId: Long? = null,
val avatarUrl: String? = null, val avatarUrl: String? = null,
val email: String? = null, val email: String? = null,
val role: String val role: String
) )
...@@ -4,10 +4,10 @@ package ru.terrakok.gitlabclient.entity.app.develop ...@@ -4,10 +4,10 @@ package ru.terrakok.gitlabclient.entity.app.develop
* Created by Konstantin Tskhovrebov (aka @terrakok) on 03.12.17. * Created by Konstantin Tskhovrebov (aka @terrakok) on 03.12.17.
*/ */
data class AppInfo( data class AppInfo(
val versionName: String, val versionName: String,
val