TripGroup

Objective-C

@interface TripGroup : NSManagedObject

@property (nonatomic, strong, nullable) NSString * classification;
@property (nonatomic, strong, nullable) NSNumber * frequency;

/// :nodoc:
@property (nonatomic, strong) NSNumber * flags;

/// :nodoc:
@property (nonatomic, strong, nullable) NSArray<id<NSCoding, NSObject>> *sourcesRaw;

/// :nodoc:
@property (nonatomic, strong) NSNumber * visibilityRaw;

@property (nonatomic, strong, null_resettable) TripRequest *request;
@property (nonatomic, strong) NSSet<Trip *> *trips;
@property (nonatomic, strong, nullable) Trip *visibleTrip;

// Non-CoreData properties

@property (nonatomic, assign) TKTripGroupVisibility visibility;

/// :nodoc:
- (void)adjustVisibleTrip;

- (nullable NSDate *)earliestDeparture;

- (NSSet<NSString *> *)usedModeIdentifiers;

/// :nodoc:
- (NSString *)debugString;

#pragma mark - Caches

/**
 A set of 'pairIdentifiers' for public transport segments for quicker timetable look-up.
 
 @see DLSEntry
 */
- (void)setPairIdentifiers:(NSSet<NSString *> *)pairIdentifiers forPublicSegment:(TKSegment *)segment;

- (nullable NSSet<NSString *> *)pairIdentifiersForPublicSegment:(TKSegment *)segment;

#pragma mark - User interaction

/// :nodoc:
@property (nonatomic, assign) BOOL userDidSaveToCalendar;

@end

Swift

class TripGroup : NSManagedObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString * classification

    Swift

    var classification: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSNumber * frequency

    Swift

    var frequency: NSNumber? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, null_resettable) TripRequest *request

    Swift

    var request: TripRequest! { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong) NSSet<Trip *> *trips

    Swift

    var trips: Set<AnyHashable> { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) Trip *visibleTrip

    Swift

    var visibleTrip: Trip? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) TKTripGroupVisibility visibility

    Swift

    var visibility: TKTripGroupVisibility { get set }
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSDate *)earliestDeparture;

    Swift

    func earliestDeparture() -> Date?
  • Undocumented

    Declaration

    Objective-C

    - (NSSet<NSString *> *)usedModeIdentifiers;

    Swift

    func usedModeIdentifiers() -> Set<String>

Caches

  • A set of ‘pairIdentifiers’ for public transport segments for quicker timetable look-up.

    See

    DLSEntry

    Declaration

    Objective-C

    - (void)setPairIdentifiers:(nonnull NSSet<NSString *> *)pairIdentifiers
              forPublicSegment:(nonnull TKSegment *)segment;

    Swift

    func setPairIdentifiers(_ pairIdentifiers: Set<String>, forPublicSegment segment: TKSegment)
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSSet<NSString *> *)pairIdentifiersForPublicSegment:(TKSegment *)segment;

    Swift

    func pairIdentifiers(forPublicSegment segment: TKSegment) -> Set<String>?
  • Declaration

    Swift

    public var sources: [TKAPI.DataAttribution] { get }