Ejemplo n.º 1
0
        public PickemSystemEvent(PickemSystemEventTypes type, string seasonCode, string leagueCode, int?weekNumber, int?gameId)
        {
            this.Type = type;
            this.LeagueCodesAffected = new List <string>();
            this.DynamicKeys         = new ExpandoObject();
            this.DynamicInformation  = new ExpandoObject();

            if (seasonCode != null)
            {
                this.DynamicKeys.seasonCode = seasonCode;
            }

            if (leagueCode != null)
            {
                this.DynamicKeys.leagueCode = leagueCode;
            }

            if (weekNumber != null)
            {
                this.DynamicKeys.weekNumber = weekNumber.Value;
            }

            if (gameId != null)
            {
                this.DynamicKeys.gameId = gameId.Value;
            }
        }
Ejemplo n.º 2
0
 public PickemSystemEvent(PickemSystemEventTypes type, string leagueCode)
     : this(type, null, leagueCode, null, null)
 {
 }
Ejemplo n.º 3
0
 public PickemSystemEvent(PickemSystemEventTypes type, int gameId)
     : this(type, null, null, null, gameId)
 {
 }
Ejemplo n.º 4
0
 public PickemSystemEvent(PickemSystemEventTypes type, string seasonCode, int weekNumber)
     : this(type, seasonCode, null, weekNumber, null)
 {
 }
Ejemplo n.º 5
0
 public PickemSystemEvent(PickemSystemEventTypes type)
     : this(type, null, null, null, null)
 {
 }