use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class MailboxFragment method getInbox.
public void getInbox(boolean bMore) {
if (m_application != null) {
Map<String, String> params = new HashMap<String, String>();
params.put("per_page", "20");
if (bMore) {
params.put("page", String.valueOf(currentPage + 1));
m_bAppendMode = true;
} else {
m_bAppendMode = false;
}
GlitchRequest request = m_application.glitch.getRequest("mail.getInbox", 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 EncyclopediaSearchTextWatcher method onTextChanged.
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (s.length() > 0) {
m_searchResultsList.clear();
((EncyclopediaSearchListViewAdapter) m_searchResultsListView.adapter).notifyDataSetChanged();
m_searchResultsListView.setVisibility(View.VISIBLE);
m_listView.setVisibility(View.GONE);
Map<String, String> params = new HashMap<String, String>();
params.put("term", s.toString());
if (!m_type.equals("all")) {
params.put("type", m_type);
}
GlitchRequest request = m_application.glitch.getRequest("encyclopedia.search", params);
request.execute(this);
m_root.findViewById(R.id.encyclopedia_search_results_list_message).setVisibility(View.VISIBLE);
} else {
m_searchResultsListView.setVisibility(View.GONE);
m_listView.setVisibility(View.VISIBLE);
}
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class EncyclopediaSkillCategoriesFragment method getEncyclopediaSkillCategories.
public void getEncyclopediaSkillCategories() {
if (m_application != null) {
GlitchRequest request = m_application.glitch.getRequest("skills.listAllCategories");
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 EncyclopediaGiantDetailFragment method getEncyclopediaGiant.
private void getEncyclopediaGiant() {
Map<String, String> params = new HashMap<String, String>();
params.put("giant", m_giant.id);
GlitchRequest request = m_application.glitch.getRequest("giants.info", 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 EncyclopediaGiantsListFragment method getEncyclopediaGiantsList.
public void getEncyclopediaGiantsList() {
if (m_application != null) {
GlitchRequest request = m_application.glitch.getRequest("giants.list");
request.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
}
Aggregations