use of com.nutomic.syncthingandroid.model.SystemVersion in project syncthing-android by syncthing.
the class RestApi method getSystemVersion.
/**
* Requests and parses system version information.
*/
public void getSystemVersion(OnResultListener1<SystemVersion> listener) {
new GetRequest(mContext, mUrl, GetRequest.URI_VERSION, mApiKey, null, result -> {
SystemVersion systemVersion = new Gson().fromJson(result, SystemVersion.class);
listener.onResult(systemVersion);
});
}
Aggregations