public static CasinoItem CreateInstance(CasinoType itemType) { CasinoItem item; switch (itemType) { case CasinoType.SingleChoice: item = new SingleChoice { ItemType = CasinoType.SingleChoice }; break; case CasinoType.MatchResult: item = new MatchResult { ItemType = CasinoType.MatchResult }; break; default: throw new Exception("Unknown Casino Item Type."); } return(item); }
public static CasinoItem CreateInstance(CasinoType itemType) { CasinoItem item; switch (itemType) { case CasinoType.SingleChoice: item = new SingleChoice { ItemType = CasinoType.SingleChoice }; break; case CasinoType.MatchResult: item = new MatchResult { ItemType = CasinoType.MatchResult }; break; default: throw new Exception("Unknown Casino Item Type."); } return item; }
public static Guid? GetCasinoItemGuidByMatch(Guid matchGuid, CasinoType type) { return DataAccess.CasinoItem.GetCasinoItemGuidByMatch(matchGuid, (int)type, null); }
public static Guid?GetCasinoItemGuidByMatch(Guid matchGuid, CasinoType type) { return(DataAccess.CasinoItem.GetCasinoItemGuidByMatch(matchGuid, (int)type, null)); }