use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class SnapDetailFragment method getSnap.
private void getSnap() {
Map<String, String> params = new HashMap<String, String>();
params.put("owner_tsid", m_ownerTsid);
params.put("snap_id", m_photoId);
params.put("secret", m_secret);
GlitchRequest request = m_application.glitch.getRequest("snaps.detail", params);
request.execute(this);
m_requestCount = 1;
if (getActivity() != null)
((HomeScreen) getActivity()).showSpinner(true);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class QuestsFragment method getQuests.
public void getQuests() {
if (m_application != null) {
GlitchRequest request = m_application.glitch.getRequest("quests.getAll");
request.execute(this);
m_requestCount = 1;
getActivity().runOnUiThread(new Runnable() {
public void run() {
((HomeScreen) getActivity()).showSpinner(true);
}
});
}
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class EncyclopediaStreetDetailFragment method teleport.
private void teleport() {
Map<String, String> params = new HashMap<String, String>();
params.put("street_tsid", m_street.tsid);
GlitchRequest request = m_application.glitch.getRequest("locations.teleport", params);
request.execute(this);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class Sidebar method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sidebar_view);
m_sbList = getSidebarList();
MyApplication app = (MyApplication) getApplicationContext();
m_activity = app.homeScreen;
m_adapter = new SidebarListViewAdapter(this, m_sbList);
m_listView = (LinearListView) findViewById(R.id.SidebarListView);
m_listView.setAdapter(m_adapter);
GlitchRequest request = ((MyApplication) ((HomeScreen) m_activity).getApplication()).glitch.getRequest("mail.getUnreadCount");
request.execute(this);
}
use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.
the class EncyclopediaLocationStreetFragment method getEncyclopediaLocationStreets.
private void getEncyclopediaLocationStreets() {
if (m_application != null) {
Map<String, String> params = new HashMap<String, String>();
params.put("hub_id", String.valueOf(m_hub.hub_id));
GlitchRequest request = m_application.glitch.getRequest("locations.getStreets", params);
request.execute(this);
m_requestCount = 1;
((HomeScreen) getActivity()).showSpinner(true);
}
}
Aggregations