io.github.gnuf0rce.github.entry.Bot.kt Maven / Gradle / Ivy
/*
* Copyright 2021-2023 dsstudio Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/gnuf0rce/github-helper/blob/master/LICENSE
*/
package io.github.gnuf0rce.github.entry
import kotlinx.serialization.*
import java.time.*
@Serializable
@SerialName("Bot")
public data class Bot(
@SerialName("avatar_url")
override val avatarUrl: String,
@SerialName("events_url")
override val eventsUrl: String,
@SerialName("followers_url")
val followersUrl: String,
@SerialName("following_url")
val followingUrl: String,
@SerialName("gists_url")
val gistsUrl: String,
@SerialName("gravatar_id")
val gravatarId: String?,
@SerialName("html_url")
override val htmlUrl: String,
@SerialName("id")
override val id: Long,
@SerialName("login")
override val login: String,
@SerialName("node_id")
override val nodeId: String,
@SerialName("organizations_url")
val organizationsUrl: String,
@SerialName("received_events_url")
val receivedEventsUrl: String,
@SerialName("repos_url")
override val reposUrl: String,
@SerialName("site_admin")
val siteAdmin: Boolean,
@SerialName("starred_url")
val starredUrl: String,
@SerialName("subscriptions_url")
val subscriptionsUrl: String,
@SerialName("url")
override val url: String,
@SerialName("name")
override val name: String? = null,
@Contextual
@SerialName("created_at")
override val createdAt: OffsetDateTime = OffsetDateTime.MIN,
@Contextual
@SerialName("updated_at")
override val updatedAt: OffsetDateTime = OffsetDateTime.MIN,
) : Owner() {
override val closedAt: OffsetDateTime?
get() = null
override val type: String
get() = "Bot"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy