///<summary> /// Get League string, see enum LeagueTypeReq ///</summary> // [Obsolete("Use CoCMediaSet, CoCMediaSetInfo")] public static string _GetLeague(stSqlite.Wrapper dbMgr, string leagueId, stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq type) { string field = "", league = "none"; if (string.IsNullOrWhiteSpace(leagueId)) { return(league); } switch (type) { case stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq.Name: { field = "name"; break; } case stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq.UrlSmall: { field = "small"; break; } case stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq.UrlMedium: { field = "medium"; break; } case stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq.UrlTiny: { field = "tiny"; break; } default: { return(league); } } try { league = dbMgr.QueryOneReturnString( string.Format( Properties.Settings.Default.DBSelectLeaque, field, leagueId ) ); return(league); } catch (Exception e) { throw new CoCDBException( stCoCAPI.CoCAPI.CoCEnum.ClanFmtReq.fmtNone, CoCDB.thisClass + e.Message ); } }
public string GetLeague(stSqlite.Wrapper dbMgr, string leagueId, stCoCAPI.CoCAPI.CoCEnum.LeagueTypeReq type) { return(CoCAPI.CoCDB._GetLeague(this.dbMgr, leagueId, type)); }