src/main/java/edu/kit/informatik/pcc/webinterface/serverconnection/ServerProxy.java
/**
     * This method gets the Video as File from the Server
     *
     * @param videoID Video which is wanted
     * @param a Account to which the video is referred
     * @return Answer from the Server
     */
This method gets the Video as File from the Server
@param videoID Video which is wanted
@param a Account to which the video is referred
@return Answer from the Server
This method gets the Video as File from the Server @param videoID Video which is wanted @param a Account to which the video is referred @return Answer from the Server
public static InputStream videoDownload(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, "videoDownload");
        if (response == null)
            return null;
        return response.readEntity(InputStream.class);
    }
public static InputStream videoDownload ( 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 , "videoDownload" ) ; if ( response == null ) return null ; return response . readEntity ( InputStream . class ) ; }
This method gets the Video as File from the Server
 @param videoID Video which is wanted
 @param a Account to which the video is referred
 @return Answer from the Server
This method gets the Video as File from the Server @param videoID Video which is wanted @param a Account to which the video is referred @return Answer from the Server