Unified Import Source configuration, added concurrency prevention and combined UI
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package com.majinnaibu.monstercards.models;
|
||||
|
||||
public class GitRepositorySource {
|
||||
public String id;
|
||||
public String projectName;
|
||||
public String creatorGithubName;
|
||||
public String creatorPageLink;
|
||||
public String downloadUrl;
|
||||
public String importerClassName;
|
||||
public String fileExtension;
|
||||
|
||||
public GitRepositorySource(String id, String projectName, String creatorGithubName, String creatorPageLink, String downloadUrl, String importerClassName, String fileExtension) {
|
||||
this.id = id;
|
||||
this.projectName = projectName;
|
||||
this.creatorGithubName = creatorGithubName;
|
||||
this.creatorPageLink = creatorPageLink;
|
||||
this.downloadUrl = downloadUrl;
|
||||
this.importerClassName = importerClassName;
|
||||
this.fileExtension = fileExtension;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.majinnaibu.monstercards.models;
|
||||
|
||||
public class ImportSource {
|
||||
public enum ImportType {
|
||||
GIT_ARCHIVE,
|
||||
OPEN5E_API
|
||||
}
|
||||
|
||||
public String id;
|
||||
public String projectName;
|
||||
public String creatorName;
|
||||
public String creatorPageLink;
|
||||
public ImportType importType;
|
||||
|
||||
// Optional attributes specific to Git archive
|
||||
public String downloadUrl;
|
||||
public String importerClassName;
|
||||
public String fileExtension;
|
||||
|
||||
public ImportSource(String id, String projectName, String creatorName, String creatorPageLink, ImportType importType, String downloadUrl, String importerClassName, String fileExtension) {
|
||||
this.id = id;
|
||||
this.projectName = projectName;
|
||||
this.creatorName = creatorName;
|
||||
this.creatorPageLink = creatorPageLink;
|
||||
this.importType = importType;
|
||||
this.downloadUrl = downloadUrl;
|
||||
this.importerClassName = importerClassName;
|
||||
this.fileExtension = fileExtension;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user