app/controllers/SMSController.java
/**
     * Android App Volley Library polls this method
     * for a response. The response will form the SMS body.
     * It will consist of the uersername and warning message.
     * @return the SMS content to the app for transmission.
     */
Android App Volley Library polls this method
for a response. The response will form the SMS body.
It will consist of the uersername and warning message.
@return the SMS content to the app for transmission.
Android App Volley Library polls this method for a response . The response will form the SMS body . It will consist of the uersername and warning message . @return the SMS content to the app for transmission .
public Result volleyResponse(String username) {
        String warning = username;
        try {
            for (int i = 0; i < userQueue.size(); i++) {
                if (username.equals(userQueue.get(i))) {
                    warning = warning.concat(msgQueue.get(i));
                        userQueue.remove(i);
                        msgQueue.remove(i);
                    return ok(warning); 
                }
            }
            return (ok(user+msg));
        }catch(Exception e){
            System.out.println("Exception: "+e);
            return (ok(user+msg));
        }
    }
public Result volleyResponse ( String username ) { String warning = username ; try { for ( int i = 0 ; i < userQueue . size ( ) ; i ++ ) { if ( username . equals ( userQueue . get ( i ) ) ) { warning = warning . concat ( msgQueue . get ( i ) ) ; userQueue . remove ( i ) ; msgQueue . remove ( i ) ; return ok ( warning ) ; } } return ( ok ( user + msg ) ) ; } catch ( Exception e ) { System . out . println ( "Exception: " + e ) ; return ( ok ( user + msg ) ) ; } }
Android App Volley Library polls this method
 for a response.
Android App Volley Library polls this method for a response .
//Exit loop with warning message for user.