src/main/java/edu/kit/informatik/pcc/webinterface/serverconnection/ServerProxy.java
/**
     * This class gets the Video information from the Server.
     *
     * @param videoID Video which info is wanted
     * @param a       Account to which the video is referred
     * @return Answer from the Server
     */
This class gets the Video information from the Server.
@param videoID Video which info is wanted
@param a       Account to which the video is referred
@return Answer from the Server
This class gets the Video information from the Server . @param videoID Video which info is wanted @param a Account to which the video is referred @return Answer from the Server
public static String videoInfo(int videoID, Account a) {
        String json = a.getAsJson();
        Form f = new Form();
        f.param(ACCOUNT, json);
        f.param(VIDEO_ID, Integer.toString(videoID));
        Response response = post(f, "videoInfo");
        return (response == null) ? FAILURE : response.readEntity(String.class);
    }
public static String videoInfo ( int videoID , Account a ) { String json = a . getAsJson ( ) ; Form f = new Form ( ) ; f . param ( ACCOUNT , json ) ; f . param ( VIDEO_ID , Integer . toString ( videoID ) ) ; Response response = post ( f , "videoInfo" ) ; return ( response == null ) ? FAILURE : response . readEntity ( String . class ) ; }
This class gets the Video information from the Server.
This class gets the Video information from the Server .