예제 #1
0
 /// <summary>
 /// Initializes a new instance of the GameModel class.
 /// </summary>
 /// <param name="status">Possible values include: 'Requesting',
 /// 'Playing', 'Rejected', 'Ended'</param>
 /// <param name="speed">Possible values include: 'UltraFast', 'Fast',
 /// 'Speedy', 'Normal', 'Slow', 'UltraSlow'</param>
 /// <param name="difficulty">Possible values include: 'Easy', 'Normal',
 /// 'Hard'</param>
 public GameModel(System.DateTime?createdAt = default(System.DateTime?), string createdBy = default(string), string opponentId = default(string), string userHeroId = default(string), string opponentHeroId = default(string), string status = default(string), IList <string> castles = default(IList <string>), PositionModel position = default(PositionModel), UserModel user = default(UserModel), HeroModel userHero = default(HeroModel), UserModel opponent = default(UserModel), HeroModel opponentHero = default(HeroModel), int?redCastleAmount = default(int?), int?blueCastleAmount = default(int?), int?neutrualCastleAmount = default(int?), OpponentExtInfoModel opponentExtInfo = default(OpponentExtInfoModel), bool?selfPlaying = default(bool?), string speed = default(string), string difficulty = default(string), GameArmySettingModel userArmySetting = default(GameArmySettingModel), GameArmySettingModel opponentArmySetting = default(GameArmySettingModel), IList <CastleRouteDto> routes = default(IList <CastleRouteDto>), string id = default(string))
 {
     CreatedAt            = createdAt;
     CreatedBy            = createdBy;
     OpponentId           = opponentId;
     UserHeroId           = userHeroId;
     OpponentHeroId       = opponentHeroId;
     Status               = status;
     Castles              = castles;
     Position             = position;
     User                 = user;
     UserHero             = userHero;
     Opponent             = opponent;
     OpponentHero         = opponentHero;
     RedCastleAmount      = redCastleAmount;
     BlueCastleAmount     = blueCastleAmount;
     NeutrualCastleAmount = neutrualCastleAmount;
     OpponentExtInfo      = opponentExtInfo;
     SelfPlaying          = selfPlaying;
     Speed                = speed;
     Difficulty           = difficulty;
     UserArmySetting      = userArmySetting;
     OpponentArmySetting  = opponentArmySetting;
     Routes               = routes;
     Id = id;
     CustomInit();
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the CreateGameModel class.
 /// </summary>
 /// <param name="speed">Possible values include: 'UltraFast', 'Fast',
 /// 'Speedy', 'Normal', 'Slow', 'UltraSlow'</param>
 /// <param name="difficulty">Possible values include: 'Easy', 'Normal',
 /// 'Hard'</param>
 public CreateGameModel(double?lat = default(double?), double?lng = default(double?), string opponentId = default(string), OpponentExtInfoModel opponentExtInfo = default(OpponentExtInfoModel), bool?selfPlaying = default(bool?), string speed = default(string), string difficulty = default(string), GameArmySettingModel userArmySetting = default(GameArmySettingModel))
 {
     Lat             = lat;
     Lng             = lng;
     OpponentId      = opponentId;
     OpponentExtInfo = opponentExtInfo;
     SelfPlaying     = selfPlaying;
     Speed           = speed;
     Difficulty      = difficulty;
     UserArmySetting = userArmySetting;
     CustomInit();
 }