Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnet214 authored Sep 11, 2022
1 parent cedd9b6 commit 5a0261e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,27 +221,27 @@ public class TablesViewModel

## MatchModel
```csharp
public TeamModel(string code)
{
Code = code;
Emblem = $"{code}.png";
}
public TeamModel(string code)
{
Code = code;
Emblem = $"{code}.png";
}

public class MatchModel
public class MatchModel
{
public TeamModel Home { get; set; }
public TeamModel Away { get; set; }
public int HomeScore { get; set; }
public int AwayScore { get; set; }

public MatchModel(string home, string away, int homeScore, int awayScore)
{
public TeamModel Home { get; set; }
public TeamModel Away { get; set; }
public int HomeScore { get; set; }
public int AwayScore { get; set; }

public MatchModel(string home, string away, int homeScore, int awayScore)
{
Home = new(home);
Away = new(away);
HomeScore = homeScore;
AwayScore = awayScore;
}
}
Home = new(home);
Away = new(away);
HomeScore = homeScore;
AwayScore = awayScore;
}
}
```

## ScoreTemplate
Expand Down

0 comments on commit 5a0261e

Please sign in to comment.