use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class AchievementDetailFragment method getAchievement.
public void getAchievement() {
Map<String, String> params = new HashMap<String, String>();
params.put("achievement_class", m_achId);
GlitchRequest request = m_application.glitch.getRequest("achievements.getInfo", params);
request.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class AchievementsFragment method getAchievements.
public void getAchievements() {
if (m_application != null) {
Map<String, String> params = new HashMap<String, String>();
params.put("category", m_category.name);
params.put("per_page", String.valueOf(m_category.total));
GlitchRequest request = m_application.glitch.getRequest("achievements.listAllInCategory", params);
request.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class ActivityDetailFragment method setStatusReply.
private void setStatusReply(String replyToPlayer, String statusID, String msg) {
Map<String, String> params = new HashMap<String, String>();
params.put("player_tsid", ((HomeScreen) getActivity()).getPlayerID());
params.put("reply_to_player_tsid", replyToPlayer);
params.put("reply_to_id", statusID);
params.put("txt", msg);
GlitchRequest request0 = m_application.glitch.getRequest("activity.setStatusReply", params);
request0.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class ActivityDetailFragment method setStatusLike.
private void setStatusLike(String player, String statusID) {
Map<String, String> params = new HashMap<String, String>();
params.put("like_player_tsid", player);
params.put("like_id", statusID);
GlitchRequest request0 = m_application.glitch.getRequest("activity.setStatusLike", params);
request0.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class ActivityFragment method init.
private void init(View root) {
boolean bUpdateData = m_actList == null;
if (bUpdateData)
m_actList = new Vector<glitchActivity>();
m_adapter = new ActivityListViewAdapter(this, m_actList);
m_listView = (LinearListView) root.findViewById(R.id.ActivityListView);
m_listView.setAdapter(m_adapter);
if (bUpdateData) {
GlitchRequest request = m_application.glitch.getRequest("players.info");
request.execute(this);
} else {
showHeader();
updateActivityFeeds();
}
initTopMenu();
}
Aggregations