-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
13 changed files
with
510 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ plugins { | |
} | ||
|
||
group = "com.hcyacg" | ||
version = "1.3" | ||
version = "1.4-dev-1" | ||
|
||
repositories { | ||
mavenLocal() | ||
|
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
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,145 @@ | ||
package com.hcyacg.entity | ||
|
||
import com.alibaba.fastjson.annotation.JSONField | ||
|
||
data class RateLimit( | ||
|
||
@JSONField(name="rate") | ||
val rate: Rate? = null, | ||
|
||
@JSONField(name="resources") | ||
val resources: Resources? = null | ||
) { | ||
override fun toString(): String { | ||
return "RateLimit(rate=$rate, resources=$resources)" | ||
} | ||
} | ||
|
||
data class Core( | ||
|
||
@JSONField(name="resource") | ||
val resource: String? = null, | ||
|
||
@JSONField(name="limit") | ||
val limit: Int? = null, | ||
|
||
@JSONField(name="reset") | ||
val reset: Int? = null, | ||
|
||
@JSONField(name="used") | ||
val used: Int? = null, | ||
|
||
@JSONField(name="remaining") | ||
val remaining: Int? = null | ||
) { | ||
override fun toString(): String { | ||
return "Core(resource=$resource, limit=$limit, reset=$reset, used=$used, remaining=$remaining)" | ||
} | ||
} | ||
|
||
data class Rate( | ||
|
||
@JSONField(name="resource") | ||
val resource: String? = null, | ||
|
||
@JSONField(name="limit") | ||
val limit: Int? = null, | ||
|
||
@JSONField(name="reset") | ||
val reset: Int? = null, | ||
|
||
@JSONField(name="used") | ||
val used: Int? = null, | ||
|
||
@JSONField(name="remaining") | ||
val remaining: Int? = null | ||
) { | ||
override fun toString(): String { | ||
return "Rate(resource=$resource, limit=$limit, reset=$reset, used=$used, remaining=$remaining)" | ||
} | ||
} | ||
|
||
data class IntegrationManifest( | ||
|
||
@JSONField(name="resource") | ||
val resource: String? = null, | ||
|
||
@JSONField(name="limit") | ||
val limit: Int? = null, | ||
|
||
@JSONField(name="reset") | ||
val reset: Int? = null, | ||
|
||
@JSONField(name="used") | ||
val used: Int? = null, | ||
|
||
@JSONField(name="remaining") | ||
val remaining: Int? = null | ||
) { | ||
override fun toString(): String { | ||
return "IntegrationManifest(resource=$resource, limit=$limit, reset=$reset, used=$used, remaining=$remaining)" | ||
} | ||
} | ||
|
||
data class Resources( | ||
|
||
@JSONField(name="core") | ||
val core: Core? = null, | ||
|
||
@JSONField(name="search") | ||
val search: Search? = null, | ||
|
||
@JSONField(name="graphql") | ||
val graphql: Graphql? = null, | ||
|
||
@JSONField(name="integration_manifest") | ||
val integrationManifest: IntegrationManifest? = null | ||
) { | ||
override fun toString(): String { | ||
return "Resources(core=$core, search=$search, graphql=$graphql, integrationManifest=$integrationManifest)" | ||
} | ||
} | ||
|
||
data class Graphql( | ||
|
||
@JSONField(name="resource") | ||
val resource: String? = null, | ||
|
||
@JSONField(name="limit") | ||
val limit: Int? = null, | ||
|
||
@JSONField(name="reset") | ||
val reset: Int? = null, | ||
|
||
@JSONField(name="used") | ||
val used: Int? = null, | ||
|
||
@JSONField(name="remaining") | ||
val remaining: Int? = null | ||
) { | ||
override fun toString(): String { | ||
return "Graphql(resource=$resource, limit=$limit, reset=$reset, used=$used, remaining=$remaining)" | ||
} | ||
} | ||
|
||
data class Search( | ||
|
||
@JSONField(name="resource") | ||
val resource: String? = null, | ||
|
||
@JSONField(name="limit") | ||
val limit: Int? = null, | ||
|
||
@JSONField(name="reset") | ||
val reset: Int? = null, | ||
|
||
@JSONField(name="used") | ||
val used: Int? = null, | ||
|
||
@JSONField(name="remaining") | ||
val remaining: Int? = null | ||
) { | ||
override fun toString(): String { | ||
return "Search(resource=$resource, limit=$limit, reset=$reset, used=$used, remaining=$remaining)" | ||
} | ||
} |
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
Oops, something went wrong.