File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org .gitlab4j .api .models ;
2
2
3
+ import java .util .Date ;
4
+
3
5
import org .gitlab4j .api .utils .JacksonJson ;
4
6
5
7
public class Package {
@@ -8,6 +10,7 @@ public class Package {
8
10
private String name ;
9
11
private String version ;
10
12
private PackageType packageType ;
13
+ private Date createdAt ;
11
14
12
15
public Long getId () {
13
16
return id ;
@@ -41,6 +44,14 @@ public void setPackageType(PackageType packageType) {
41
44
this .packageType = packageType ;
42
45
}
43
46
47
+ public Date getCreatedAt () {
48
+ return createdAt ;
49
+ }
50
+
51
+ public void setCreatedAt (Date createdAt ) {
52
+ this .createdAt = createdAt ;
53
+ }
54
+
44
55
@ Override
45
56
public String toString () {
46
57
return (JacksonJson .toJsonString (this ));
Original file line number Diff line number Diff line change 3
3
"id" : 1 ,
4
4
"name" : " com/mycompany/my-app" ,
5
5
"version" : " 1.0-SNAPSHOT" ,
6
- "package_type" : " maven"
6
+ "package_type" : " maven" ,
7
+ "created_at" : " 2012-10-22T14:13:35Z"
7
8
},
8
9
{
9
10
"id" : 2 ,
10
11
"name" : " @foo/bar" ,
11
12
"version" : " 1.0.3" ,
12
- "package_type" : " npm"
13
+ "package_type" : " npm" ,
14
+ "created_at" : " 2012-10-22T14:13:35Z"
13
15
}
14
16
]
You can’t perform that action at this time.
0 commit comments