SYIncident Class Reference

Incident representation. Typically incident is a potentially dangerous event or warning, which has temporary and unpredictable nature, it may appear/disappear randomly (like road works, vehicle accident, weather conditions). More...

#import <SYIncident.h>

Inheritance diagram for SYIncident:
Collaboration diagram for SYIncident:

Instance Methods

(nonnull instancetype) - initWithId:location:category:validTo:
 
((unavailable("Use init with parameters.") - __attribute__
 

Class Methods

((unavailable("Use init with parameters.") + __attribute__
 

Properties

SYIncidentIdid
 Identifier of the incident. More...
 
SYGeoCoordinatelocation
 Geographicatl position of the incident. More...
 
NSString * category
 Incident category. Typically it's one of SYIncidentType constants, but not limited to them. More...
 
NSDate * validTo
 Time until which the incident is considered valid (because incidents are often temporary by their nature). More...
 

Detailed Description

Incident representation. Typically incident is a potentially dangerous event or warning, which has temporary and unpredictable nature, it may appear/disappear randomly (like road works, vehicle accident, weather conditions).

Method Documentation

◆ initWithId:location:category:validTo:

- (nonnull instancetype) initWithId: (nonnull SYIncidentId *)  id
location: (nonnull SYGeoCoordinate *)  location
category: (nonnull NSString *)  category
validTo: (nonnull NSDate *)  validTo 

◆ __attribute__ [1/2]

- ((unavailable("Use init with parameters.") __attribute__

◆ __attribute__ [2/2]

+ ((unavailable("Use init with parameters.") __attribute__

Property Documentation

◆ id

- (SYIncidentId*) id
readwritenonatomicstrong

Identifier of the incident.

◆ location

- (SYGeoCoordinate*) location
readwritenonatomicstrong

Geographicatl position of the incident.

◆ category

- (NSString*) category
readwritenonatomicstrong

Incident category. Typically it's one of SYIncidentType constants, but not limited to them.

◆ validTo

- (NSDate*) validTo
readwritenonatomicstrong

Time until which the incident is considered valid (because incidents are often temporary by their nature).


The documentation for this class was generated from the following file: