Back to project page sony-camera-remote-java.
The source code is released under:
Apache License
If you think the Android project sony-camera-remote-java 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.praetoriandroid.cameraremote.rpc; /*from w ww. j a va 2 s . com*/ public class GetApplicationInfoResponse extends BaseResponse<String> { @Override public void validate() throws ValidationException { super.validate(); if (isOk()) { String[] result = getResult(); if (result.length != 2) { throw new IllegalResultSizeException(2, result.length); } } } public boolean isVersionOk() { return getVersion().compareTo("2.0.0") >= 0; } public String getVersion() { return getResult()[1]; } public String getApplicationName() { return getResult()[0]; } }