@Test public void testResetPasswordResetCommand() throws Exception { ParseRESTUserCommand command = ParseRESTUserCommand.resetPasswordResetCommand("test@parse.com"); assertEquals("requestPasswordReset", command.httpPath); assertEquals(ParseHttpRequest.Method.POST, command.method); assertEquals("test@parse.com", command.jsonParameters.getString("email")); assertNull(command.getSessionToken()); }
public static ParseRESTUserCommand resetPasswordResetCommand(String email) { Map<String, String> parameters = new HashMap<>(); parameters.put("email", email); return new ParseRESTUserCommand( "requestPasswordReset", ParseHttpRequest.Method.POST, parameters, null); }
ParseRESTUserCommand extends ParseRESTCommand { public static ParseRESTUserCommand resetPasswordResetCommand(String email) { Map<String, String> parameters = new HashMap<>(); parameters.put("email", email); return new ParseRESTUserCommand( "requestPasswordReset", ParseHttpRequest.Method.POST, parameters, null); } }
ParseRESTUserCommand extends ParseRESTCommand { public static ParseRESTUserCommand resetPasswordResetCommand(String email) { Map<String, String> parameters = new HashMap<>(); parameters.put("email", email); return new ParseRESTUserCommand( "requestPasswordReset", ParseHttpRequest.Method.POST, parameters, null); } private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken, boolean isRevocableSessionEnabled); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            JSONObject parameters,
            String sessionToken, boolean isRevocableSessionEnabled); }
ParseRESTUserCommand extends ParseRESTCommand { public static ParseRESTUserCommand resetPasswordResetCommand(String email) { Map<String, String> parameters = new HashMap<>(); parameters.put("email", email); return new ParseRESTUserCommand( "requestPasswordReset", ParseHttpRequest.Method.POST, parameters, null); } private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken, boolean isRevocableSessionEnabled); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            JSONObject parameters,
            String sessionToken, boolean isRevocableSessionEnabled); static ParseRESTUserCommand getCurrentUserCommand(String sessionToken); static ParseRESTUserCommand signUpUserCommand(JSONObject parameters, String sessionToken,
                                                         boolean revocableSession); static ParseRESTUserCommand logInUserCommand(String username, String password,
                                                        boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(
            String authType, Map<String, String> authData, boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(JSONObject parameters,
                                                               String sessionToken, boolean revocableSession); static ParseRESTUserCommand resetPasswordResetCommand(String email); int getStatusCode(); }
ParseRESTUserCommand extends ParseRESTCommand { public static ParseRESTUserCommand resetPasswordResetCommand(String email) { Map<String, String> parameters = new HashMap<>(); parameters.put("email", email); return new ParseRESTUserCommand( "requestPasswordReset", ParseHttpRequest.Method.POST, parameters, null); } private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken, boolean isRevocableSessionEnabled); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            JSONObject parameters,
            String sessionToken, boolean isRevocableSessionEnabled); static ParseRESTUserCommand getCurrentUserCommand(String sessionToken); static ParseRESTUserCommand signUpUserCommand(JSONObject parameters, String sessionToken,
                                                         boolean revocableSession); static ParseRESTUserCommand logInUserCommand(String username, String password,
                                                        boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(
            String authType, Map<String, String> authData, boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(JSONObject parameters,
                                                               String sessionToken, boolean revocableSession); static ParseRESTUserCommand resetPasswordResetCommand(String email); int getStatusCode();  }