35 lines
1.0 KiB
Objective-C
35 lines
1.0 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 <Cocoa/Cocoa.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;
|
|
|
|
@property(nonatomic, readonly) NSInteger totalSeeders;
|
|
@property(nonatomic, readonly) NSInteger totalLeechers;
|
|
@property(nonatomic, readonly) NSInteger totalDownloaded;
|
|
|
|
@property(nonatomic, readonly) NSString* lastAnnounceStatusString;
|
|
@property(nonatomic, readonly) NSString* nextAnnounceStatusString;
|
|
@property(nonatomic, readonly) NSString* lastScrapeStatusString;
|
|
|
|
@end
|