コード例 #1
0
ファイル: Map.cs プロジェクト: GW2DotNetTools/GW2-CSharp
 /// <summary>
 /// The map constructor
 /// </summary>
 /// <param name="id">The map id</param>
 /// <param name="type">The identifier for the map.</param>
 /// <param name="scores">An object containing the score of the three servers for only the specified map</param>
 /// <param name="bonuses">A list of all bonuses being granted by this map. If no player team owns a bonus from the map, this list is empty.</param>
 /// <param name="deaths">An object containing the total deaths of the three servers for only the specified map</param>
 /// <param name="kills">An object containing the total kills of the three servers for only the specified map</param>
 /// <param name="objectives">A list of objective objects for this map</param>
 public Map(int id, MapType type, Scores scores, List<Bonus> bonuses, Deaths deaths, Kills kills, List<MatchObjective> objectives)
 {
     Id = id;
     Type = type;
     Scores = scores;
     Bonuses = bonuses;
     Deaths = deaths;
     Kills = kills;
     Objectives = objectives;
 }
コード例 #2
0
ファイル: Matches.cs プロジェクト: GW2DotNetTools/GW2-CSharp
 /// <summary>
 /// The resource constructor
 /// </summary>
 /// <param name="id">The WvW match id.</param>
 /// <param name="start_time">The starting time of the matchup. (ISO-8601 Standard)</param>
 /// <param name="end_time">The ending time of the matchup. (ISO-8601 Standard)</param>
 /// <param name="scores">An object containing the score of the three servers</param>
 /// <param name="worlds">An object containing the world IDs of the three servers</param>
 /// <param name="kills">An object containing the total kills of the three servers</param>
 /// <param name="deaths">An object containing the total deaths of the three servers</param>
 /// <param name="maps">A list of objects containing detailed information about each of the four maps.</param>
 public Matches(string id, DateTime start_time, DateTime end_time, Scores scores, Worlds worlds, Kills kills, Deaths deaths, List<Map> maps)
 {
     Id = id;
     StartTime = start_time;
     EndTime = end_time;
     Scores = scores;
     Worlds = worlds;
     Deaths = deaths;
     Kills = kills;
     Maps = maps;
 }