package org.merapi.helper.messages; import java.util.ArrayList; import java.util.List; import org.merapi.messages.Message; import org.milipede.modules.list.model.vo.ListVO; import org.torrent.data.FileInfo; import org.torrent.internal.data.MetaInfoFile; public class DLControlRespondMessage extends Message { // -------------------------------------------------------------------------- // // Constants // // -------------------------------------------------------------------------- public static final String ITEM_ADDED = "itemAdded"; public static final String ITEM_REMOVED = "itemRemoved"; public static final String ITEM_UPDATED = "itemUpdated"; public static final String SELECT_CONTENT = "selectContent"; public static final String SELECTED_CONTENT = "selectedContent"; /** * Message type for a SAY_IT message. */ public static final String DL_CONTROL_RESPOND = "dlControlRespond"; // -------------------------------------------------------------------------- // // Constructor // // -------------------------------------------------------------------------- /** * Constructor. */ public DLControlRespondMessage() { super(DL_CONTROL_RESPOND); } // -------------------------------------------------------------------------- // // Properties // // -------------------------------------------------------------------------- /** * A custom data property that contains the action data */ public String action = null; /** * A custom data property that contains the hash value removeTorrent */ public String infoHash = null; public String name = null; public long size = 0; public int cols = 0; public int rows = 0; //local Up/Down -Bandwidth and -Transfer public long luB = 0; public long luT = 0; public long ldB = 0; public long ldT = 0; public float progress = 0; //for selection operation public ArrayList<FileInfo> files = null; public MetaInfoFile mif = null; public String savePath = ""; public ListVO list = null; // /** // * A set of args to use as the system execute parameters // */ // public String[] getArgs() { // Object[] data = (Object[]) getData(); // String[] args = new String[data.length]; // for (int i = 0; i < data.length; i++) { // args[i] = (String) data[i]; // } // return args; // } // // public void setArgs(String[] stringArray) { // // for (int i = 0; i< stringArray.length ; i++) { // // this.setData(stringArray[i]); // // } // this.setData(stringArray); // } }