Search in sources :

Example 6 with GlitchRequest

use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.

the class MailboxDetailFragment method deleteMail.

private void deleteMail() {
    Map<String, String> params = new HashMap<String, String>();
    params.put("message_id", Integer.toString(m_msgId));
    GlitchRequest request = m_application.glitch.getRequest("mail.deleteMessage", params);
    request.execute(this);
    m_requestCount = 1;
    ((HomeScreen) getActivity()).showSpinner(true);
}
Also used : HashMap(java.util.HashMap) GlitchRequest(com.tinyspeck.android.GlitchRequest)

Example 7 with GlitchRequest

use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.

the class SkillDetailFragment method getSkillDetail.

public void getSkillDetail(String skillId) {
    Map<String, String> params = new HashMap<String, String>();
    params.put("skill_class", skillId);
    GlitchRequest request1 = m_application.glitch.getRequest("skills.getInfo", params);
    request1.execute(this);
    m_requestCount = 1;
    ((HomeScreen) getActivity()).showSpinner(true);
}
Also used : HashMap(java.util.HashMap) GlitchRequest(com.tinyspeck.android.GlitchRequest)

Example 8 with GlitchRequest

use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.

the class SkillDetailFragment method cancelUnlearning.

public void cancelUnlearning() {
    Map<String, String> params = new HashMap<String, String>();
    params.put("skill_class", m_currentSkill.id);
    GlitchRequest request1 = m_application.glitch.getRequest("skills.cancelUnlearning", params);
    request1.execute(this);
}
Also used : HashMap(java.util.HashMap) GlitchRequest(com.tinyspeck.android.GlitchRequest)

Example 9 with GlitchRequest

use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.

the class SkillDetailFragment method learnSkill.

private void learnSkill() {
    Map<String, String> params = new HashMap<String, String>();
    params.put("skill_class", m_currentSkill.id);
    GlitchRequest request1 = m_application.glitch.getRequest("skills.learn", params);
    request1.execute(this);
}
Also used : HashMap(java.util.HashMap) GlitchRequest(com.tinyspeck.android.GlitchRequest)

Example 10 with GlitchRequest

use of com.tinyspeck.android.GlitchRequest in project glitch-hq-android by tinyspeck.

the class SkillDetailFragment method unlearnSkill.

private void unlearnSkill() {
    Map<String, String> params = new HashMap<String, String>();
    params.put("skill_class", m_currentSkill.id);
    GlitchRequest request1 = m_application.glitch.getRequest("skills.unlearn", params);
    request1.execute(this);
}
Also used : HashMap(java.util.HashMap) GlitchRequest(com.tinyspeck.android.GlitchRequest)

Aggregations

GlitchRequest (com.tinyspeck.android.GlitchRequest)46 HashMap (java.util.HashMap)33 Vector (java.util.Vector)3 MotionEvent (android.view.MotionEvent)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 OnTouchListener (android.view.View.OnTouchListener)1 Button (android.widget.Button)1 FrameLayout (android.widget.FrameLayout)1 ImageView (android.widget.ImageView)1 ScrollView (android.widget.ScrollView)1 TextView (android.widget.TextView)1 Glitch (com.tinyspeck.android.Glitch)1 BaseFragment.skillAvailable (com.tinyspeck.glitchhq.BaseFragment.skillAvailable)1 Map (java.util.Map)1 JSONArray (org.json.JSONArray)1 JSONObject (org.json.JSONObject)1