28 lines
588 B
C++
28 lines
588 B
C++
|
#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;
|
||
|
}
|
||
|
|
||
|
|
||
|
void BRResult::setData(BRResultData data) {
|
||
|
this->rank = data.rank;
|
||
|
this->athlete = data.athlete;
|
||
|
emit this->metadataChanged();
|
||
|
}
|
||
|
|
||
|
|
||
|
BRWidget::BRWidgetStatusCode BRResult::load() {
|
||
|
return BRWidget::OpeationNotSupportedError;
|
||
|
}
|