Back to project page Buddy-Android-SDK.
The source code is released under:
Apache License
If you think the Android project Buddy-Android-SDK 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.buddy.sdk.models; /*from ww w .j a v a2s. c o m*/ import com.buddy.sdk.BuddyClient; import com.buddy.sdk.BuddyCallback; import com.buddy.sdk.BuddyResult; /** * Created by shawn on 7/6/14. */ public class TimedMetric extends ModelBase { private BuddyClient client; public void setBuddyClient(BuddyClient client) { this.client = client; } public void finish(final BuddyCallback<Boolean> callback) { if (client != null && id != null) { client.<Boolean>delete("/metrics/events/" + id, null, new BuddyCallback<Boolean>(Boolean.class) { @Override public void completed(BuddyResult<Boolean> result) { TimedMetric.this.client = null; callback.completed(result); } }); } } }