Package com.keygenqt.viewer.android.data.models

Types

FollowerModel
Link copied to clipboard
@Immutable
data class FollowerModel(id: String, login: String, avatarUrl: String, htmlUrl: String) : IModel

Follower model

RepoModel
Link copied to clipboard
@Immutable
data class RepoModel(id: String, url: String, language: String?, isPrivate: Boolean, name: String, fullName: String, ownerName: String, license: String?, visibility: RepoVisibility, desc: String?, stargazersCount: Int, forks: Int, openIssuesCount: Int, watchersCount: Int, size: Int, updatedAt: String, createdAt: String) : IModel

Repo model

RepoVisibility
Link copied to clipboard
enum RepoVisibility : Enum<RepoVisibility>

Enum for visibility model RepoModel

SecurityModel
Link copied to clipboard
@Immutable
data class SecurityModel(id: String, accessToken: String, expiresIn: Int, refreshToken: String, refreshTokenExpiresIn: Int) : IModel

Model saved with encryption for access

UserModel
Link copied to clipboard
@Immutable
data class UserModel(id: String, avatarUrl: String, name: String, company: String?, twitterUsername: String?, publicRepos: Int, followers: Int, following: Int, blog: String?, location: String?, bio: String?, createdAt: String) : IModel

User model

Functions

toModel
Link copied to clipboard
fun FollowerModel.toModel(): FollowerModel
fun RepoModel.toModel(): RepoModel
fun SecurityModel.toModel(): SecurityModel
fun UserModel.toModel(): UserModel