/// <summary> /// 日別のサマリーを取得する /// </summary> /// <param name="iPlayerName">プレイヤー名</param> /// <param name="iYmd">日付</param> /// <returns>サマリー情報</returns> public FishHistoryDBSummaryModel GetSummary(string iPlayerName, DateTime iYmd, FishResultStatusKind iResultStatus, string iFishName) { logger.Trace("Player={0} Ymd={1} ResultStatus={2} Fish={3}", iPlayerName, iYmd, iResultStatus, iFishName); FishHistoryDBModel history = SelectDayly(iPlayerName, iYmd, iResultStatus, iFishName); FishHistoryDBSummaryModel ret = new FishHistoryDBSummaryModel(); foreach (FishHistoryDBFishModel fish in history.Fishes) { ret.Add(fish); } return(ret); }
/// <summary> /// 日別のサマリーを取得する /// </summary> /// <param name="iPlayerName">プレイヤー名</param> /// <param name="iYmd">日付</param> /// <returns>サマリー情報</returns> public FishHistoryDBSummaryModel GetSummary(string iPlayerName, DateTime iYmd, FishResultStatusKind iResult, string iFishName) { FishHistoryDBModel history = SelectDayly(iPlayerName, iYmd, iResult, iFishName); FishHistoryDBSummaryModel ret = new FishHistoryDBSummaryModel(); foreach(FishHistoryDBFishModel fish in history.Fishes) { ret.Add(fish); } return ret; }