1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/macosx/TrackerNode.h

34 lines
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 <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