Example #1
0
 public override void Receive(KeyValuePair <string, object> data)
 {
     if (data.Key == "Match details")
     {
         matchDetails = (MatchDetails)data.Value;
     }
     if (data.Key == "Visibility")
     {
         visibilityScoreboard = (bool)data.Value;
     }
     if (data.Key == "First challenger")
     {
         challengers[0] = (Challenger)data.Value;
     }
     if (data.Key == "Second challenger")
     {
         challengers[1] = (Challenger)data.Value;
     }
 }
Example #2
0
 public ScoreBoardRepository(IMediator mediator) : base(mediator)
 {
     challengers  = new Challenger[2];
     matchDetails = new MatchDetails(new TimeSpan(0, 0, 0, 0), "Blank", "Blank");
 }
Example #3
0
 public void SetMatchDetails(TimeSpan time, string competitionCategory, string tournamentStage)
 {
     matchDetails = new MatchDetails(time, competitionCategory, tournamentStage);
 }
 public void SetMatchDetails(MatchDetails matchInfo)
 {
     matchDetails = matchInfo;
 }