2020-11-04 13:55:37 +01:00
|
|
|
#include "headers/brresult.h"
|
|
|
|
|
|
|
|
BRResult::BRResult(BRProvider* provider, BRWidget::BRFederation federation, int id, BRResultData initialData) : BRWidget(provider, federation, id)
|
|
|
|
{
|
|
|
|
this->setData(initialData);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int BRResult::getRank() const {
|
|
|
|
return this->rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
BRAthlete* BRResult::getAthlete() const {
|
|
|
|
return this->athlete;
|
|
|
|
}
|
|
|
|
|
2020-11-08 10:47:44 +01:00
|
|
|
BRResultDetails* BRResult::getDetails() const {
|
|
|
|
return this->details;
|
|
|
|
}
|
2020-11-04 13:55:37 +01:00
|
|
|
|
|
|
|
void BRResult::setData(BRResultData data) {
|
|
|
|
this->rank = data.rank;
|
|
|
|
this->athlete = data.athlete;
|
|
|
|
emit this->metadataChanged();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BRWidget::BRWidgetStatusCode BRResult::load() {
|
|
|
|
return BRWidget::OpeationNotSupportedError;
|
|
|
|
}
|