@Test public void userAgentCheck() throws Exception { ReflectionHelpers.setStaticField(Build.VERSION.class, "RELEASE", "4.1"); NCMBRequest request = new NCMBRequest("https: Constants.HTTP_METHOD_POST, "{}", new JSONObject(), null, "applicationKey", "clientKey"); Assert.assertEquals("android-" + NCMB.SDK_VERSION, request.getRequestProperty("X-NCMB-SDK-Version")); Assert.assertEquals("android-4.1", request.getRequestProperty("X-NCMB-OS-Version")); }
public String getRequestProperty(String key) { return this.requestProperties.get(key); }
NCMBRequest { public String getRequestProperty(String key) { return this.requestProperties.get(key); } }
NCMBRequest { public String getRequestProperty(String key) { return this.requestProperties.get(key); } NCMBRequest(String url, String method, String content, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String fileName, byte[] fileData, JSONObject aclJson, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String content,String fileName, byte[] fileData, String contentType, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey, String timestamp); }
NCMBRequest { public String getRequestProperty(String key) { return this.requestProperties.get(key); } NCMBRequest(String url, String method, String content, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String fileName, byte[] fileData, JSONObject aclJson, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String content,String fileName, byte[] fileData, String contentType, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey, String timestamp); URL getUrl(); String getMethod(); String getContent(); JSONObject getQueryString(); String getSessionToken(); String getApplicationKey(); String getClientKey(); byte[] getFileData(); String getFileName(); String getContentType(); String getSignatureHashData(); String getTimestamp(); String getRequestProperty(String key); HashMap<String, String> getAllRequestProperties(); }
NCMBRequest { public String getRequestProperty(String key) { return this.requestProperties.get(key); } NCMBRequest(String url, String method, String content, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String fileName, byte[] fileData, JSONObject aclJson, String sessionToken, String applicationKey, String clientKey);  NCMBRequest(String url, String method, String content,String fileName, byte[] fileData, String contentType, JSONObject queryParam, String sessionToken, String applicationKey, String clientKey, String timestamp); URL getUrl(); String getMethod(); String getContent(); JSONObject getQueryString(); String getSessionToken(); String getApplicationKey(); String getClientKey(); byte[] getFileData(); String getFileName(); String getContentType(); String getSignatureHashData(); String getTimestamp(); String getRequestProperty(String key); HashMap<String, String> getAllRequestProperties();  }