SYIncidentWithRadius Class Reference

Incident which is valid within specified radius around its location. More...

#import <SYIncident.h>

Inheritance diagram for SYIncidentWithRadius:
Collaboration diagram for SYIncidentWithRadius:

Instance Methods

(nonnull instancetype) - initWithId:location:category:validTo:radius:
 
- Instance Methods inherited from SYIncident
(nonnull instancetype) - initWithId:location:category:validTo:
 
((unavailable("Use init with parameters.") - __attribute__
 

Properties

SYLength radius
 Radius around location (in meters) where the incident is valid. More...
 
- Properties inherited from SYIncident
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...
 

Additional Inherited Members

- Class Methods inherited from SYIncident
((unavailable("Use init with parameters.") + __attribute__
 

Detailed Description

Incident which is valid within specified radius around its location.

Method Documentation

◆ initWithId:location:category:validTo:radius:

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

Property Documentation

◆ radius

- (SYLength) radius
readwritenonatomicassign

Radius around location (in meters) where the incident is valid.


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