コード例 #1
0
 public static LeagueModel GetModel(League league)
 {
     return(new LeagueModel
     {
         ApiId = league.Id,
         ShortName = league.ShortName,
         FullName = league.FullName,
         FlagURL = league.FlagURL,
         Region = RegionFactory.GetModel(league.Region)
     });
 }
コード例 #2
0
 public static LeagueModel GetModel(int apiId, string shortName, string fullName,
                                    string flagURL, Region region)
 {
     return(new LeagueModel
     {
         ApiId = apiId,
         ShortName = shortName,
         FullName = fullName,
         Region = RegionFactory.GetModel(region),
         FlagURL = flagURL,
     });
 }