-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
138 additions
and
150 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,32 @@ | ||
package id.jred; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public final class JsonCopy { | ||
private JsonRepo repo; | ||
private String file; | ||
private String data; | ||
|
||
public JsonCopy() {} | ||
|
||
public JsonCopy(JsonRepo repo, String file, String data) { | ||
this.repo = repo; | ||
this.file = file; | ||
this.data = data; | ||
} | ||
|
||
@JsonProperty("repo") | ||
public JsonRepo getRepo() { | ||
return repo; | ||
} | ||
|
||
@JsonProperty("file") | ||
public String getFile() { | ||
return file; | ||
} | ||
|
||
@JsonProperty("data") | ||
public String getData() { | ||
return data; | ||
} | ||
} |
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,25 @@ | ||
package id.jred; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public final class JsonDiff { | ||
private JsonRepo repo; | ||
private String diff; | ||
|
||
public JsonDiff() {} | ||
|
||
public JsonDiff(JsonRepo repo, String diff) { | ||
this.repo = repo; | ||
this.diff = diff; | ||
} | ||
|
||
@JsonProperty("repo") | ||
public JsonRepo getRepo() { | ||
return repo; | ||
} | ||
|
||
@JsonProperty("diff") | ||
public String getDiff() { | ||
return diff; | ||
} | ||
} |
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,25 @@ | ||
package id.jred; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public final class JsonRepo { | ||
private String name; | ||
private String revision; | ||
|
||
public JsonRepo() {} | ||
|
||
public JsonRepo(String name, String revision) { | ||
this.name = name; | ||
this.revision = revision; | ||
} | ||
|
||
@JsonProperty("name") | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@JsonProperty("revision") | ||
public String getRevision() { | ||
return revision; | ||
} | ||
} |
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,20 @@ | ||
package id.jred; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public final class JsonStatus { | ||
private String message; | ||
|
||
public JsonStatus() { | ||
this(""); | ||
} | ||
|
||
public JsonStatus(String message) { | ||
this.message = message; | ||
} | ||
|
||
@JsonProperty("message") | ||
public String getMessage() { | ||
return message; | ||
} | ||
} |
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.