-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vk-NAVIOS-309-traffic-tendency: added traffic tendency to AttributeOp…
…tions and RouteLeg. Corresponding new type added; unit tests and fixtures updated (#795)
- Loading branch information
Showing
8 changed files
with
304 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Foundation | ||
|
||
/// :nodoc: | ||
/// The tendency value conveys the changing state of traffic congestion (increasing, decreasing, constant etc). | ||
/// | ||
/// New values could be introduced in the future without an API version change. | ||
public enum TrafficTendency: Int, Codable, CaseIterable { | ||
/// Congestion tendency is unknown. | ||
case unknown = 0 | ||
/// Congestion tendency is not changing. | ||
case constant = 1 | ||
/// Congestion tendency is increasing. | ||
case increasing = 2 | ||
/// Congestion tendency is decreasing. | ||
case decreasing = 3 | ||
/// Congestion tendency is rapidly increasing. | ||
case rapidlyIncreasing = 4 | ||
/// Congestion tendency is rapidly decreasing. | ||
case rapidlyDecreasing = 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.