SocialReportParameters class Core
Parameters for a social-report overlay item.
Contains fields commonly provided for user-generated social reports such as the
report type, optional TTS text (tts), owner information, a numeric score,
optional coordinates, and lifecycle timestamps (created/updated/expiry).
- Inheritance
-
- Object
- OverlayItemParameters
- SocialReportParameters
Constructors
- SocialReportParameters({required int? id, required DateTime? createStampUtc, required int? iconId, required String? type, required String? tts, required Coordinates? coordinates, required String? description, required int? ownerId, required String? ownerName, required int? score, required DateTime? updateStampUtc, required DateTime? expireStampUtc, required int? validityMins, required bool? hasSnapshot, required double? direction, required bool? allowThumb, required bool? allowUpdate, required bool? allowDelete, required bool? ownReport, required String? country})
Properties
- allowDelete ↔ bool?
-
Whether the report can be deleted
getter/setter pair
- allowThumb ↔ bool?
-
Whether the report can be thumbed up or down (eg. your own reports cannot be thumbed or the admin inhibitor blocks the user if it considers him as a vandalizer).
Thumbing increases the report score.
getter/setter pair
- allowUpdate ↔ bool?
-
Whether the report can be updated
getter/setter pair
- coordinates ↔ Coordinates?
-
Reported location coordinates
getter/setter pair
- country ↔ String?
-
The country ISO3 code
getter/setter pair
- createStampUtc ↔ DateTime?
-
The creation timestamp of the overlay item in UTC.
getter/setter pairoverride-getter
- description ↔ String?
-
Report description
getter/setter pair
- direction ↔ double?
-
The azimuth direction of the report, relative to the north axis
getter/setter pair
- expireStampUtc ↔ DateTime?
-
Expiration timestamp in UTC
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSnapshot ↔ bool?
-
Returns true if the report has a snapshot image, the SocialOverlay.getReportSnapshot method can be used on OverlayItem to retrieve the image
getter/setter pair
- iconId ↔ int?
-
The Overlay item category id.
getter/setter pairoverride-getter
- id ↔ int?
-
The unique identifier of the overlay item.
getter/setter pairoverride-getter
- ownerId ↔ int?
-
Report owner identifier
getter/setter pair
- ownerName ↔ String?
-
Report owner name
getter/setter pair
- ownReport ↔ bool?
-
Whether this is the user's own report
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score ↔ int?
-
Report score
getter/setter pair
- tts ↔ String?
-
Text to speech description of the report, depends on the SDK language
getter/setter pair
- type ↔ String?
-
Reported subject type (eg: Police, Fixed Camera, Traffic, Crash, Road Hazard, Weather Hazard or Road Closure)
getter/setter pair
- updateStampUtc ↔ DateTime?
-
Last update timestamp in UTC
getter/setter pair
- validityMins ↔ int?
-
Validity time left in minutes
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited