mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
37 lines
1.1 KiB
Objective-C
37 lines
1.1 KiB
Objective-C
// This file Copyright © 2009-2022 Transmission authors and contributors.
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#include <libtransmission/transmission.h>
|
|
|
|
@class Torrent;
|
|
|
|
@interface TrackerNode : NSObject
|
|
|
|
@property(nonatomic, weak, readonly) Torrent* torrent;
|
|
|
|
- (instancetype)initWithTrackerView:(tr_tracker_view const*)stat torrent:(Torrent*)torrent;
|
|
|
|
- (BOOL)isEqual:(id)object;
|
|
|
|
@property(nonatomic, readonly) NSString* host;
|
|
@property(nonatomic, readonly) NSString* fullAnnounceAddress;
|
|
|
|
@property(nonatomic, readonly) NSInteger tier;
|
|
|
|
@property(nonatomic, readonly) NSUInteger identifier;
|
|
|
|
/// -1 if unknown
|
|
@property(nonatomic, readonly) NSInteger totalSeeders;
|
|
/// -1 if unknown
|
|
@property(nonatomic, readonly) NSInteger totalLeechers;
|
|
/// -1 if unknown
|
|
@property(nonatomic, readonly) NSInteger totalDownloaded;
|
|
|
|
@property(nonatomic, readonly) NSString* lastAnnounceStatusString;
|
|
@property(nonatomic, readonly) NSString* nextAnnounceStatusString;
|
|
@property(nonatomic, readonly) NSString* lastScrapeStatusString;
|
|
|
|
@end
|