You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
465 B
17 lines
465 B
package dto; |
|
|
|
import org.json.JSONException; |
|
import org.json.JSONObject; |
|
|
|
public class GitObjPayload { |
|
|
|
public static GitObj constructScanPayload(JSONObject jsonObj) throws JSONException { |
|
return new GitObj( |
|
jsonObj.getString("build_system_type"), |
|
jsonObj.getString("repository"), |
|
jsonObj.getString("reference"), |
|
jsonObj.getString("commit_id")); |
|
} |
|
|
|
private GitObjPayload() {} |
|
}
|
|
|