1
+ package com.hcyacg.entity
2
+
3
+ import com.alibaba.fastjson.annotation.JSONField
4
+
5
+ data class RateLimit (
6
+
7
+ @JSONField(name= " rate" )
8
+ val rate : Rate ? = null ,
9
+
10
+ @JSONField(name= " resources" )
11
+ val resources : Resources ? = null
12
+ ) {
13
+ override fun toString (): String {
14
+ return " RateLimit(rate=$rate , resources=$resources )"
15
+ }
16
+ }
17
+
18
+ data class Core (
19
+
20
+ @JSONField(name= " resource" )
21
+ val resource : String? = null ,
22
+
23
+ @JSONField(name= " limit" )
24
+ val limit : Int? = null ,
25
+
26
+ @JSONField(name= " reset" )
27
+ val reset : Int? = null ,
28
+
29
+ @JSONField(name= " used" )
30
+ val used : Int? = null ,
31
+
32
+ @JSONField(name= " remaining" )
33
+ val remaining : Int? = null
34
+ ) {
35
+ override fun toString (): String {
36
+ return " Core(resource=$resource , limit=$limit , reset=$reset , used=$used , remaining=$remaining )"
37
+ }
38
+ }
39
+
40
+ data class Rate (
41
+
42
+ @JSONField(name= " resource" )
43
+ val resource : String? = null ,
44
+
45
+ @JSONField(name= " limit" )
46
+ val limit : Int? = null ,
47
+
48
+ @JSONField(name= " reset" )
49
+ val reset : Int? = null ,
50
+
51
+ @JSONField(name= " used" )
52
+ val used : Int? = null ,
53
+
54
+ @JSONField(name= " remaining" )
55
+ val remaining : Int? = null
56
+ ) {
57
+ override fun toString (): String {
58
+ return " Rate(resource=$resource , limit=$limit , reset=$reset , used=$used , remaining=$remaining )"
59
+ }
60
+ }
61
+
62
+ data class IntegrationManifest (
63
+
64
+ @JSONField(name= " resource" )
65
+ val resource : String? = null ,
66
+
67
+ @JSONField(name= " limit" )
68
+ val limit : Int? = null ,
69
+
70
+ @JSONField(name= " reset" )
71
+ val reset : Int? = null ,
72
+
73
+ @JSONField(name= " used" )
74
+ val used : Int? = null ,
75
+
76
+ @JSONField(name= " remaining" )
77
+ val remaining : Int? = null
78
+ ) {
79
+ override fun toString (): String {
80
+ return " IntegrationManifest(resource=$resource , limit=$limit , reset=$reset , used=$used , remaining=$remaining )"
81
+ }
82
+ }
83
+
84
+ data class Resources (
85
+
86
+ @JSONField(name= " core" )
87
+ val core : Core ? = null ,
88
+
89
+ @JSONField(name= " search" )
90
+ val search : Search ? = null ,
91
+
92
+ @JSONField(name= " graphql" )
93
+ val graphql : Graphql ? = null ,
94
+
95
+ @JSONField(name= " integration_manifest" )
96
+ val integrationManifest : IntegrationManifest ? = null
97
+ ) {
98
+ override fun toString (): String {
99
+ return " Resources(core=$core , search=$search , graphql=$graphql , integrationManifest=$integrationManifest )"
100
+ }
101
+ }
102
+
103
+ data class Graphql (
104
+
105
+ @JSONField(name= " resource" )
106
+ val resource : String? = null ,
107
+
108
+ @JSONField(name= " limit" )
109
+ val limit : Int? = null ,
110
+
111
+ @JSONField(name= " reset" )
112
+ val reset : Int? = null ,
113
+
114
+ @JSONField(name= " used" )
115
+ val used : Int? = null ,
116
+
117
+ @JSONField(name= " remaining" )
118
+ val remaining : Int? = null
119
+ ) {
120
+ override fun toString (): String {
121
+ return " Graphql(resource=$resource , limit=$limit , reset=$reset , used=$used , remaining=$remaining )"
122
+ }
123
+ }
124
+
125
+ data class Search (
126
+
127
+ @JSONField(name= " resource" )
128
+ val resource : String? = null ,
129
+
130
+ @JSONField(name= " limit" )
131
+ val limit : Int? = null ,
132
+
133
+ @JSONField(name= " reset" )
134
+ val reset : Int? = null ,
135
+
136
+ @JSONField(name= " used" )
137
+ val used : Int? = null ,
138
+
139
+ @JSONField(name= " remaining" )
140
+ val remaining : Int? = null
141
+ ) {
142
+ override fun toString (): String {
143
+ return " Search(resource=$resource , limit=$limit , reset=$reset , used=$used , remaining=$remaining )"
144
+ }
145
+ }
0 commit comments