forked from pc2ccs/pc2v9
-
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.
Merge branch 'develop' of https://github.com/pc2ccs/pc2v9 into develop
- Loading branch information
Showing
7 changed files
with
544 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package edu.csus.ecs.pc2.core.imports.clics; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.core.JsonProcessingException; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
import edu.csus.ecs.pc2.core.model.JSONObjectMapper; | ||
|
||
/** | ||
* A JSON representation for the ICPC teams.json data. | ||
* | ||
* @author Douglas A. Lane <[email protected]> | ||
*/ | ||
public class TeamAccount { | ||
|
||
@JsonProperty | ||
private int id; | ||
|
||
@JsonProperty | ||
private String icpc_id; | ||
|
||
@JsonProperty | ||
private String name; | ||
|
||
@JsonProperty | ||
private String display_name; | ||
|
||
@JsonProperty | ||
private String organization_id; | ||
|
||
@JsonProperty | ||
private List< String> group_ids; | ||
|
||
// {"id": "1", "icpc_id": "449759", "name": "Kansas State University", "display_name": "Kansas State University", "organization_id": "k-state_edu", "group_ids": ["4"]}, | ||
/** | ||
* | ||
* 21 id "22" icpc_id "449752" name "Emory University" display_name "Emory University" organization_id "emory_edu" group_ids 0 "3" | ||
*/ | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getIcpc_id() { | ||
return icpc_id; | ||
} | ||
|
||
public void setIcpc_id(String icpc_id) { | ||
this.icpc_id = icpc_id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDisplay_name() { | ||
return display_name; | ||
} | ||
|
||
public void setDisplay_name(String display_name) { | ||
this.display_name = display_name; | ||
} | ||
|
||
public String getOrganization_id() { | ||
return organization_id; | ||
} | ||
|
||
public void setOrganization_id(String organization_id) { | ||
this.organization_id = organization_id; | ||
} | ||
|
||
|
||
public List<String> getGroup_ids() { | ||
return group_ids; | ||
} | ||
|
||
public void setGroup_ids(List<String> group_ids) { | ||
this.group_ids = group_ids; | ||
} | ||
|
||
public String toJSON() throws JsonProcessingException { | ||
|
||
ObjectMapper om = JSONObjectMapper.getObjectMapper(); | ||
return om.writeValueAsString(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
Oops, something went wrong.