Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • wilsonba/polling-server-ia-04
  • gvandevi/ia04binome2a
2 results
Show changes
package ia04binome2a
type BallotRequest struct {
Rule string `json:"rule"`
Deadline string `json:"deadline"`
VotersID []string `json:"voters-id"`
NbAlts int `json:"#alts"`
TieBreak []int `json:"tie-break"`
}
type Vote struct {
AgentID string `json:"agent-id"`
BallotID string `json:"ballot-id"`
Prefs []int `json:"prefs"`
Options []int `json:"options"`
}
type Ballot struct {
BallotID string `json:"ballot-id"`
}
type ResultResponse struct {
Winner int `json:"winner"`
Ranking []int `json:"ranking"`
}
type Request interface {
BallotRequest | Ballot | Vote
}