Back to project page RobolectricSample.
The source code is released under:
MIT License
If you think the Android project RobolectricSample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pivotallabs.tracker; /* www . j a va2 s . c o m*/ import com.pivotallabs.api.ApiRequest; import java.util.Map; public class RecentActivityRequest extends ApiRequest { private String token; public RecentActivityRequest(String token) { super(); this.token = token; } @Override public String getUrlString() { return "http://www.pivotaltracker.com/services/v3/activities?limit=25"; } @Override public Map<String, String> getHeaders() { Map<String, String> headers = super.getHeaders(); headers.put("X-TrackerToken", token); return headers; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RecentActivityRequest that = (RecentActivityRequest) o; if (token != null ? !token.equals(that.token) : that.token != null) return false; return true; } @Override public int hashCode() { return token != null ? token.hashCode() : 0; } }