Mako/MakoClient.Engines.cs
/// <summary>
///     Request ranking illustrations in Pixiv.
/// </summary>
/// <param name="rankOption">The option of which the <see cref="RankOption"/> of rankings</param>
/// <param name="dateTime">The date of rankings</param>
/// <param name="targetFilter">The <see cref="TargetFilter"/> option targeting android or ios</param>
/// <returns>
///     The <see cref="RankingEngine"/> containing rankings.
/// </returns>
/// <exception cref="RankingDateOutOfRangeException">
///     Throw this exception if the date is not valid.
/// </exception>
Request ranking illustrations in Pixiv.
Request ranking illustrations in Pixiv .
public IFetchEngine<Illustration> Ranking(RankOption rankOption, DateTime dateTime, TargetFilter targetFilter = TargetFilter.ForAndroid)
        {
            EnsureNotCancelled();
            if (DateTime.Today - dateTime.Date > TimeSpan.FromDays(2))
            {
                throw new RankingDateOutOfRangeException();
            }
            return new RankingEngine(this, rankOption, dateTime, targetFilter, new EngineHandle(CancelInstance));
        }
public IFetchEngine < Illustration > Ranking ( RankOption rankOption , DateTime dateTime , TargetFilter targetFilter = TargetFilter . ForAndroid ) { EnsureNotCancelled ( ) ; if ( DateTime . Today - dateTime . Date > TimeSpan . FromDays ( 2 ) ) { throw new RankingDateOutOfRangeException ( ) ; } return new RankingEngine ( this , rankOption , dateTime , targetFilter , new EngineHandle ( CancelInstance ) ) ; }
Request ranking illustrations in Pixiv.
Request ranking illustrations in Pixiv .
The  containing rankings.
The containing rankings .
Throw this exception if the date is not valid.
Throw this exception if the date is not valid .
rankOption
RankOption
The option of which the  of rankings
The option of which the of rankings
dateTime
DateTime
The date of rankings
The date of rankings
targetFilter
TargetFilter
The  option targeting android or ios
The option targeting android or ios