Skip to content

Commit

Permalink
Add old<->new Milestone mappers[1]
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Jan 3, 2018
1 parent 233d72c commit c3b3504
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/com/github/mobile/api/model/Milestone.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Milestone implements Serializable {

public Date updated_at;

public Date closed_at; //it is in API but no in MilestoneService
public Date closed_at;

public Date due_on;

Expand All @@ -60,7 +60,6 @@ public Milestone(org.eclipse.egit.github.core.Milestone milestone) {
this.closed_issues = milestone.getClosedIssues();
this.created_at = milestone.getCreatedAt();
//todo this.updated_at=???
//it is in API but no in MilestoneService
this.due_on = milestone.getDueOn();
}

Expand All @@ -76,7 +75,6 @@ public org.eclipse.egit.github.core.Milestone getOldModel() {
milestone.setTitle(title);
//todo milestone.setUrl();
//no url in this class
//it is in API but no in MilestoneService
milestone.setCreator(creator.getOldModel());

return milestone;
Expand Down

0 comments on commit c3b3504

Please sign in to comment.