-
Notifications
You must be signed in to change notification settings - Fork 460
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
6 changed files
with
218 additions
and
99 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
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,42 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
public class UploadedByUser implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private Long id; | ||
private String username; | ||
private String name; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
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,61 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
public class UploadedFile implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private Long id; | ||
private Long size; | ||
private String filename; | ||
private Date createdAt; | ||
private UploadedByUser uploadedBy; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public Long getSize() { | ||
return size; | ||
} | ||
|
||
public void setSize(Long size) { | ||
this.size = size; | ||
} | ||
|
||
public String getFilename() { | ||
return filename; | ||
} | ||
|
||
public void setFilename(String filename) { | ||
this.filename = filename; | ||
} | ||
|
||
public Date getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(Date createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
public UploadedByUser getUploadedBy() { | ||
return uploadedBy; | ||
} | ||
|
||
public void setUploadedBy(UploadedByUser uploadedBy) { | ||
this.uploadedBy = uploadedBy; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"id": 1623, | ||
"size": 435, | ||
"filename": "some-feature.png", | ||
"created_at": "2024-09-23T13:52:15Z", | ||
"uploaded_by": { | ||
"id": 54, | ||
"username": "john.smith", | ||
"name": "John Smith" | ||
} | ||
} |