public bool IsRecommendedGuild(int guildSN) { if (FeatureMatrix.IsEnable("NewbieGuildRecommend")) { GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(ServiceCoreSettings.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>(); return(getInGameGuildInfo != null && getInGameGuildInfo.NewbieRecommend); } return(false); }
public GetInGameGuildInfo GetGuildInfo(int guildSN) { GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(GuildAPI.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>(); if (getInGameGuildInfo != null) { return(getInGameGuildInfo); } return(new GetInGameGuildInfo { Level = 1, Exp = 0L, NewbieRecommend = false, Notice = "" }); }
public int GetMaxMemberLimit(int guildSN) { if (FeatureMatrix.IsEnable("InGameGuild")) { if (FeatureMatrix.GetInteger("InGameGuild_MaxMemberLimit") > FeatureMatrix.GetInteger("InGameGuild_MaxMember")) { GetInGameGuildInfo getInGameGuildInfo = this.GetInGameGuildInfo(new int?(FeatureMatrix.GameCode), new int?(GuildAPI.ServerCode), new int?(guildSN)).FirstOrDefault <GetInGameGuildInfo>(); if (getInGameGuildInfo != null && getInGameGuildInfo.MaxMemberLimit > FeatureMatrix.GetInteger("InGameGuild_MaxMember")) { return(getInGameGuildInfo.MaxMemberLimit); } } return(FeatureMatrix.GetInteger("InGameGuild_MaxMember")); } return(0); }