Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new proposal hierarchy #6

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/main/java/org/orph2020/pst/common/json/ProposalSynopsis.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
but significantly less information than held in an entire ObservingProposal object
*/

import org.ivoa.dm.proposal.prop.AbstractProposal;
import org.ivoa.dm.proposal.prop.ObservingProposal;
import org.ivoa.dm.proposal.prop.ProposalKind;

Expand All @@ -23,27 +24,25 @@ public class ProposalSynopsis {
//kind (of observation - see enum)
public ProposalKind kind;

//submitted status
public Boolean submitted;


public ProposalSynopsis(long code, String title, String summary, ProposalKind kind, Boolean submitted)

public ProposalSynopsis(long code, String title, String summary, ProposalKind kind)
{
this.code = code;
this.title = title;
this.summary = summary;
this.kind = kind;
this.submitted = submitted;

}


public ProposalSynopsis(ObservingProposal proposal)
public ProposalSynopsis(AbstractProposal proposal)
{
this.code = proposal.getId();
this.title = proposal.getTitle();
this.summary = proposal.getSummary();
this.kind = proposal.getKind();
this.submitted = proposal.getSubmitted();
}

public ProposalSynopsis() {}
Expand Down
Loading