2023-11-01 21:11:11 +00:00
|
|
|
// This file Copyright © Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2009-09-26 04:02:39 +00:00
|
|
|
|
2022-06-29 00:15:52 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
|
|
|
#include <libtransmission/transmission.h>
|
2009-09-26 04:02:39 +00:00
|
|
|
|
2010-02-13 04:30:47 +00:00
|
|
|
@class Torrent;
|
|
|
|
|
2009-09-26 04:02:39 +00:00
|
|
|
@interface TrackerNode : NSObject
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, weak, readonly) Torrent* torrent;
|
2012-01-20 02:41:49 +00:00
|
|
|
|
2021-12-08 16:55:52 +00:00
|
|
|
- (instancetype)initWithTrackerView:(tr_tracker_view const*)stat torrent:(Torrent*)torrent;
|
2009-09-26 04:02:39 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (BOOL)isEqual:(id)object;
|
2012-01-14 02:28:54 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSString* host;
|
|
|
|
@property(nonatomic, readonly) NSString* fullAnnounceAddress;
|
2009-09-26 04:02:39 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSInteger tier;
|
2009-09-29 03:02:44 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSUInteger identifier;
|
2010-01-10 02:34:00 +00:00
|
|
|
|
2022-05-14 05:31:24 +00:00
|
|
|
/// -1 if unknown
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSInteger totalSeeders;
|
2022-05-14 05:31:24 +00:00
|
|
|
/// -1 if unknown
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSInteger totalLeechers;
|
2022-05-14 05:31:24 +00:00
|
|
|
/// -1 if unknown
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSInteger totalDownloaded;
|
2009-09-28 14:13:20 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
@property(nonatomic, readonly) NSString* lastAnnounceStatusString;
|
|
|
|
@property(nonatomic, readonly) NSString* nextAnnounceStatusString;
|
|
|
|
@property(nonatomic, readonly) NSString* lastScrapeStatusString;
|
2009-09-28 01:57:35 +00:00
|
|
|
|
2009-09-26 04:02:39 +00:00
|
|
|
@end
|