Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project 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 io.relayr.api; /*from w ww. j a va2 s .c om*/ import android.util.Log; import com.google.gson.Gson; import java.util.List; import io.relayr.model.LogEvent; import rx.Observable; import rx.Subscriber; public class MockCloudApi implements CloudApi { private static final String TAG = "MockCloudApi"; @Override public Observable<Void> logMessage(final List<LogEvent> events) { return Observable.create(new Observable.OnSubscribe<Void>() { @Override public void call(Subscriber<? super Void> subscriber) { for (LogEvent event: events) { Log.d(TAG, new Gson().toJson(event)); } subscriber.onNext(null); } }); } }