RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
qml_components::OnlineScores Class Reference

#include <OnlineScores.h>

Inheritance diagram for qml_components::OnlineScores:
Inheritance graph
[legend]
Collaboration diagram for qml_components::OnlineScores:
Collaboration graph
[legend]

Public Member Functions

 OnlineScores (QNetworkAccessManager *manager, QObject *parent=nullptr)
 
 ~OnlineScores () override
 
auto resolveTachiChartId (const QString &md5) const -> TachiResolveHandle *
 
Q_INVOKABLE support::PendingReply * getTachiChart (const QString &md5)
 
Q_INVOKABLE support::PendingReply * getScoreByGuid (const QString &webApiUrl, const QString &guid)
 
Q_INVOKABLE support::PendingReply * getRankingEntryAtTimestamp (QString webApiUrl, qint64 userId, QString md5, qint64 timestamp=QDateTime::currentSecsSinceEpoch(), OnlineRankingModel::Provider provider=OnlineRankingModel::Provider::RhythmGame)
 

Friends

class OnlineScoresTestAccess
 

Constructor & Destructor Documentation

◆ OnlineScores()

qml_components::OnlineScores::OnlineScores ( QNetworkAccessManager *  manager,
QObject *  parent = nullptr 
)
explicit

◆ ~OnlineScores()

qml_components::OnlineScores::~OnlineScores ( )
override

Member Function Documentation

◆ getRankingEntryAtTimestamp()

auto qml_components::OnlineScores::getRankingEntryAtTimestamp ( QString  webApiUrl,
qint64  userId,
QString  md5,
qint64  timestamp = QDateTime::currentSecsSinceEpoch(),
OnlineRankingModel::Provider  provider = OnlineRankingModel::Provider::RhythmGame 
)
Parameters
userIdThe user ID to get the ranking entry for.
md5The MD5 hash of the chart to get the ranking entry for.
timestampThe timestamp to get the ranking entry at. If not provided, the current timestamp will be used.
providerThe provider to get the ranking entry for. Does not work for LR2IR.
Returns
RankingEntry or null

◆ getScoreByGuid()

auto qml_components::OnlineScores::getScoreByGuid ( const QString &  webApiUrl,
const QString &  guid 
)

◆ getTachiChart()

auto qml_components::OnlineScores::getTachiChart ( const QString &  md5)

Resolves a chart without downloading its leaderboard. Returns chartId and gameId.

◆ resolveTachiChartId()

auto qml_components::OnlineScores::resolveTachiChartId ( const QString &  md5) const -> TachiResolveHandle*

Friends And Related Symbol Documentation

◆ OnlineScoresTestAccess

friend class OnlineScoresTestAccess
friend

The documentation for this class was generated from the following files: