GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/state/ClientLoggedState.java
private void sendJobRequest(AppContext context) {
        String[] query = findProfessionalAndServiceByEmail(choosenOne);
        HashMap<String,String> map = new HashMap<>();
        map.put("clientId", context.getUser().getId());
        map.put("professionalId", query[0]);
        map.put("serviceId", query[1]);
        map.put("startDate", "0");
        map.put("endDate", "0");
        map.put("jobStatus", "0");
        map.put("clientRating", "5");
        map.put("professionalRating", "5");
        context.getScreen().getHttpHandler().makePOSTRequestForObject(new String[]{"createJob"}, map);
    }
/**
     * Dispatches a service request to the server, which will inform a professional of this user desire
     * to be a client.
     */
Dispatches a service request to the server, which will inform a professional of this user desire
to be a client.
Dispatches a service request to the server which will inform a professional of this user desire to be a client .
private void sendJobRequest(AppContext context) {
        String[] query = findProfessionalAndServiceByEmail(choosenOne);
        HashMap<String,String> map = new HashMap<>();
        map.put("clientId", context.getUser().getId());
        map.put("professionalId", query[0]);
        map.put("serviceId", query[1]);
        map.put("startDate", "0");
        map.put("endDate", "0");
        map.put("jobStatus", "0");
        map.put("clientRating", "5");
        map.put("professionalRating", "5");
        context.getScreen().getHttpHandler().makePOSTRequestForObject(new String[]{"createJob"}, map);
    }
private void sendJobRequest ( AppContext context ) { String [ ] query = findProfessionalAndServiceByEmail ( choosenOne ) ; HashMap < String , String > map = new HashMap < > ( ) ; map . put ( "clientId" , context . getUser ( ) . getId ( ) ) ; map . put ( "professionalId" , query [ 0 ] ) ; map . put ( "serviceId" , query [ 1 ] ) ; map . put ( "startDate" , "0" ) ; map . put ( "endDate" , "0" ) ; map . put ( "jobStatus" , "0" ) ; map . put ( "clientRating" , "5" ) ; map . put ( "professionalRating" , "5" ) ; context . getScreen ( ) . getHttpHandler ( ) . makePOSTRequestForObject ( new String [ ] { "createJob" } , map ) ; }
Dispatches a service request to the server, which will inform a professional of this user desire
 to be a client.
Dispatches a service request to the server which will inform a professional of this user desire to be a client .