mirror of
https://github.com/zhigang1992/transshift.git
synced 2026-06-11 08:49:31 +08:00
26 lines
779 B
Objective-C
26 lines
779 B
Objective-C
//
|
|
// TorrentFile.h
|
|
// TransmissionRPCClient
|
|
//
|
|
// Created by Alexey Chechetkin on 31.08.15.
|
|
// Copyright (c) 2015 Alexey Chechetkin. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "FSDirectory.h"
|
|
|
|
@interface TorrentFile : NSObject
|
|
|
|
/// init and return new instance of TorrentFile
|
|
/// or nil if file can not be parsed or readed
|
|
+ (instancetype)torrentFileWithURL:(NSURL *)fileURL;
|
|
|
|
@property( nonatomic, readonly ) NSString *name;
|
|
@property( nonatomic, readonly ) NSArray *trackerList;
|
|
@property( nonatomic, readonly ) FSDirectory *fileList;
|
|
@property( nonatomic, readonly ) long long torrentSize;
|
|
@property( nonatomic, readonly ) NSString *torrentSizeString;
|
|
@property( nonatomic, readonly ) NSData *torrentData;
|
|
|
|
@end
|