Add setter for real-time flag
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / ClientGet.java
index ce2abf1..d340cf0 100644 (file)
@@ -89,8 +89,8 @@ public class ClientGet extends FcpMessage {
        }
 
        /**
-        * Sets the maximum size of the file to retrieve. If the file is larger than
-        * this size the request will fail!
+        * Sets the maximum size of the file to retrieve. If the file is larger
+        * than this size the request will fail!
         *
         * @param maxSize
         *            The maximum size of the file to retrieve
@@ -131,6 +131,10 @@ public class ClientGet extends FcpMessage {
                setField("PriorityClass", String.valueOf(priority));
        }
 
+       public void setRealTimeFlag(boolean realTimeFlag) {
+               setField("RealTimeFlag", String.valueOf(realTimeFlag));
+       }
+
        /**
         * Sets the persistence of the request.
         *
@@ -207,8 +211,8 @@ public class ClientGet extends FcpMessage {
        }
 
        /**
-        * Sets the name for the temporary file. You should only call this method if
-        * your return type is {@link ReturnType#disk}!
+        * Sets the name for the temporary file. You should only call this method
+        * if your return type is {@link ReturnType#disk}!
         *
         * @param tempFilename
         *            The name of the temporary file