export interface ISerializedFile {
    path      : string;
    size      : number;
    downloaded: number;
    progress  : number;
    selected  : boolean;
}

export interface ISerializedTorrent {
    name         : string;
    infoHash     : string;
    downloaded   : number;
    uploaded     : number;
    ratio        : number;
    size         : number;
    downloadSpeed: number;
    uploadSpeed  : number;
    numPeers     : number;
    progress     : number;
    path         : string;
    state        : TorrentState;
    files        : ISerializedFile[];
}

export enum TorrentState {
    Ready  = 0x1,
    Paused = 0x2,
    Done   = 0x4
}
