src/main/java/edu/kit/informatik/pcc/webinterface/serverconnection/ServerProxy.java
/**
     * This method calls the Server to create an Account.
     *
     * @param a Account to create
     * @param id a unique id
     * @return Answer from the Server
     */
This method calls the Server to create an Account.
@param a Account to create
@param id a unique id
@return Answer from the Server
This method calls the Server to create an Account . @param a Account to create @param id a unique id @return Answer from the Server
public static String createAccount(Account a, UUID id) {
        String json = a.getAsJson();
        Form f = new Form();
        f.param(ACCOUNT, json);
        f.param(UUID, id.toString());
        Response response = post(f, "createAccount");
        return (response == null) ? FAILURE : response.readEntity(String.class);
    }
public static String createAccount ( Account a , UUID id ) { String json = a . getAsJson ( ) ; Form f = new Form ( ) ; f . param ( ACCOUNT , json ) ; f . param ( UUID , id . toString ( ) ) ; Response response = post ( f , "createAccount" ) ; return ( response == null ) ? FAILURE : response . readEntity ( String . class ) ; }
This method calls the Server to create an Account.
This method calls the Server to create an Account .