Package com.keygenqt.viewer.data.responses

Types

FollowerModel
Link copied to clipboard
common
data class FollowerModel(id: String, login: String, nodeId: String, avatarUrl: String, gravatarId: String, url: String, htmlUrl: String, followersUrl: String, followingUrl: String, gistsUrl: String, starredUrl: String, subscriptionsUrl: String, organizationsUrl: String, reposUrl: String, eventsUrl: String, receivedEventsUrl: String, type: String, siteAdmin: Boolean)

Follower model

RepoLicenseModel
Link copied to clipboard
common
data class RepoLicenseModel(key: String, name: String, spdxId: String, url: String?, nodeId: String)

Repo license model

RepoModel
Link copied to clipboard
common
data class RepoModel(id: String, name: String, fullName: String, owner: RepoOwnerModel, isPrivate: Boolean, htmlUrl: String, desc: String?, fork: Boolean, url: String, archiveUrl: String, assigneesUrl: String, blobsUrl: String, branchesUrl: String, collaboratorsUrl: String, commentsUrl: String, commitsUrl: String, compareUrl: String, contentsUrl: String, contributorsUrl: String, deploymentsUrl: String, downloadsUrl: String, eventsUrl: String, forksUrl: String, gitCommitsUrl: String, gitRefsUrl: String, gitTagsUrl: String, gitUrl: String, issueCommentUrl: String, issueEventsUrl: String, issuesUrl: String, keysUrl: String, labelsUrl: String, languagesUrl: String, mergesUrl: String, milestonesUrl: String, notificationsUrl: String, pullsUrl: String, releasesUrl: String, sshUrl: String, stargazersUrl: String, statusesUrl: String, subscribersUrl: String, subscriptionUrl: String, tagsUrl: String, teamsUrl: String, treesUrl: String, cloneUrl: String, mirrorUrl: String?, hooksUrl: String, svnUrl: String, homepage: String?, language: String?, forksCount: Int, stargazersCount: Int, watchersCount: Int, size: Int, defaultBranch: String, openIssuesCount: Int, isTemplate: Boolean, hasIssues: Boolean, hasProjects: Boolean, hasWiki: Boolean, hasPages: Boolean, hasDownloads: Boolean, archived: Boolean, disabled: Boolean, visibility: String, permissions: RepoPermissionsModel, license: RepoLicenseModel?, forks: Int, openIssues: Int, watchers: Int, pushedAt: String, createdAt: String, updatedAt: String)

Repo model

RepoOwnerModel
Link copied to clipboard
common
data class RepoOwnerModel(id: String, login: String, nodeId: String, avatarUrl: String, gravatarId: String, url: String, htmlUrl: String, followersUrl: String, followingUrl: String, gistsUrl: String, starredUrl: String, subscriptionsUrl: String, organizationsUrl: String, reposUrl: String, eventsUrl: String, receivedEventsUrl: String, type: String, siteAdmin: Boolean)

Repo owner model

RepoPermissionsModel
Link copied to clipboard
common
data class RepoPermissionsModel(admin: Boolean, maintain: Boolean, push: Boolean, triage: Boolean, pull: Boolean)

Repo permissions model

ResponseErrorModel
Link copied to clipboard
common
data class ResponseErrorModel(message: String, documentationUrl: String)

Error response model

ResponseExceptionModel
Link copied to clipboard
common
data class ResponseExceptionModel(code: Int, message: String, documentationUrl: String)

Error response Exception

RocketModel
Link copied to clipboard
common
data class RocketModel(flightNumber: Int, missionName: String, launchDateUTC: String, launchSuccess: Boolean?)

Test model query

SecurityModel
Link copied to clipboard
common
data class SecurityModel(accessToken: String, expiresIn: Int, refreshToken: String, refreshTokenExpiresIn: Int)

Model auth tokens

UserModel
Link copied to clipboard
common
data class UserModel(id: String, login: String, nodeId: String, avatarUrl: String, gravatarId: String, url: String, htmlUrl: String, followersUrl: String, followingUrl: String, gistsUrl: String, starredUrl: String, subscriptionsUrl: String, organizationsUrl: String, reposUrl: String, eventsUrl: String, receivedEventsUrl: String, type: String, siteAdmin: Boolean, name: String, company: String?, blog: String?, location: String?, email: String?, hireable: String?, bio: String?, twitterUsername: String?, publicRepos: Int, publicGists: Int, followers: Int, following: Int, createdAt: String, updatedAt: String, plan: UserPlanModel)

User model

UserPlanModel
Link copied to clipboard
common
data class UserPlanModel(name: String, space: Int, collaborators: Int, privateRepos: Int)

User plan model

Functions

createFollowerModel
Link copied to clipboard
common
fun createFollowerModel(id: String, login: String, avatarUrl: String, htmlUrl: String): FollowerModel
createRepoModel
Link copied to clipboard
common
fun createRepoModel(id: String, url: String, language: String?, isPrivate: Boolean, name: String, fullName: String, ownerName: String, license: String?, visibility: String, desc: String?, stargazersCount: Int, forks: Int, openIssuesCount: Int, watchersCount: Int, size: Int, updatedAt: String, createdAt: String): RepoModel
createUserModel
Link copied to clipboard
common
fun createUserModel(id: String, avatarUrl: String, name: String, company: String?, twitterUsername: String?, publicRepos: Int, followers: Int, following: Int, blog: String?, location: String?, bio: String?, createdAt: String): UserModel