use of com.thebluealliance.androidclient.listitems.EventTypeHeader in project the-blue-alliance-android by the-blue-alliance.
the class SubscriptionListSubscriber method parseData.
@Override
public void parseData() {
mDataToBind.clear();
Collections.sort(mAPIData, mComparator);
int lastModel = -1;
for (int i = 0; i < mAPIData.size(); i++) {
Subscription subscription = mAPIData.get(i);
ListItem item = mRenderer.renderFromKey(subscription.getModelKey(), subscription.getModelType(), null);
if (item != null) {
if (lastModel != subscription.getModelEnum()) {
mDataToBind.add(new EventTypeHeader(subscription.getModelType().getTitle()));
}
mDataToBind.add(item);
}
lastModel = subscription.getModelEnum();
}
}
use of com.thebluealliance.androidclient.listitems.EventTypeHeader in project the-blue-alliance-android by the-blue-alliance.
the class FavoriteListSubscriber method parseData.
@Override
public void parseData() {
mDataToBind.clear();
int lastModel = -1;
Collections.sort(mAPIData, mComparator);
for (int i = 0; i < mAPIData.size(); i++) {
Favorite favorite = mAPIData.get(i);
ListItem item = mRenderer.renderFromKey(favorite.getModelKey(), favorite.getModelType(), null);
if (item != null) {
if (lastModel != favorite.getModelEnum()) {
mDataToBind.add(new EventTypeHeader(favorite.getModelType().getTitle()));
}
mDataToBind.add(item);
}
lastModel = favorite.getModelEnum();
}
}
use of com.thebluealliance.androidclient.listitems.EventTypeHeader in project the-blue-alliance-android by the-blue-alliance.
the class EventInsights2016Renderer method generate2016MatchInsights.
private void generate2016MatchInsights(JsonObject quals, JsonObject elims) {
mEventStats.add(new EventTypeHeader(mResources.getString(R.string.breakdown_match_stats)));
addHighScore(quals, elims, "high_score");
addQualVsElimInsights(quals, elims, matchTitles, matchKeys);
}
use of com.thebluealliance.androidclient.listitems.EventTypeHeader in project the-blue-alliance-android by the-blue-alliance.
the class EventInsights2016Renderer method generate2016DefenseInsights.
private void generate2016DefenseInsights(JsonObject quals, JsonObject elims) {
mEventStats.add(new EventTypeHeader(mResources.getString(R.string.breakdown2016_defense_stats)));
addQualVsElimInsightsWithPercentage(quals, elims, defenseName, defenseTitle);
}
use of com.thebluealliance.androidclient.listitems.EventTypeHeader in project the-blue-alliance-android by the-blue-alliance.
the class EventInsights2017Renderer method generate2017MatchInsights.
private void generate2017MatchInsights(JsonObject quals, JsonObject elims) {
mEventStats.add(new EventTypeHeader(mResources.getString(R.string.breakdown_match_stats)));
addHighScore(quals, elims, "high_score");
addQualVsElimInsights(quals, elims, matchTitles, matchKeys);
}
Aggregations