-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
270,511 additions
and
102 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,111 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using Route4MeSDK.QueryTypes; | ||
|
||
namespace Route4MeSDKLibrary.DataTypes | ||
{ | ||
/// <summary> | ||
/// The response structure from the endpoint /connections | ||
/// </summary> | ||
[DataContract] | ||
public sealed class TelematicsConnection : GenericParameters | ||
{ | ||
/// <summary> | ||
/// Telematics connection access account_id | ||
/// </summary> | ||
[DataMember(Name = "account_id", EmitDefaultValue = false)] | ||
public string AccountId { get; set; } | ||
|
||
/// <summary> | ||
/// Telematics connection access username | ||
/// </summary> | ||
[DataMember(Name = "username", EmitDefaultValue = false)] | ||
public string UserName { get; set; } | ||
|
||
/// <summary> | ||
/// Telematics connection access password | ||
/// </summary> | ||
[DataMember(Name = "password", EmitDefaultValue = false)] | ||
public string Password { get; set; } | ||
|
||
/// <summary> | ||
/// Telematics connection access host | ||
/// </summary> | ||
[DataMember(Name = "host", EmitDefaultValue = false)] | ||
public string Host { get; set; } | ||
|
||
/// <summary> | ||
/// Telemetics connection type ID | ||
/// </summary> | ||
[DataMember(Name = "vendor_id", EmitDefaultValue = false)] | ||
public int? VendorId { get; set; } | ||
|
||
/// <summary> | ||
/// Telemetics connection name | ||
/// </summary> | ||
[DataMember(Name = "name", EmitDefaultValue = false)] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Vehicle tracking interval in seconds | ||
/// </summary> | ||
[DataMember(Name = "vehicle_position_refresh_rate", EmitDefaultValue = false)] | ||
public int? VehiclePositionRefreshRate { get; set; } | ||
|
||
/// <summary> | ||
/// Telematics connection access token | ||
/// </summary> | ||
[DataMember(Name = "connection_token", EmitDefaultValue = false)] | ||
public string ConnectionToken { get; set; } | ||
|
||
/// <summary> | ||
/// Connection user ID | ||
/// </summary> | ||
[DataMember(Name = "user_id", EmitDefaultValue = false)] | ||
public int? UserId { get; set; } | ||
|
||
/// <summary> | ||
/// When the connection updated | ||
/// </summary> | ||
[DataMember(Name = "updated_at", EmitDefaultValue = false)] | ||
public string UpdatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// When the connection created | ||
/// </summary> | ||
[DataMember(Name = "created_at", EmitDefaultValue = false)] | ||
public string CreatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// Telemetics connection ID | ||
/// </summary> | ||
[DataMember(Name = "id", EmitDefaultValue = false)] | ||
public int? Id { get; set; } | ||
|
||
/// <summary> | ||
/// Metadata, custom key-value storage. | ||
/// </summary> | ||
[DataMember(Name = "metadata", EmitDefaultValue = false)] | ||
public Dictionary<string, string> Metadata { get; set; } | ||
|
||
/// <summary> | ||
/// Total vehicles count | ||
/// </summary> | ||
[DataMember(Name = "total_vehicles_count", EmitDefaultValue = false)] | ||
public int? TotalVehiclesCount { get; set; } | ||
|
||
/// <summary> | ||
/// Syncronized vehicles count | ||
/// </summary> | ||
[DataMember(Name = "synced_vehicles_count", EmitDefaultValue = false)] | ||
public int? SyncedVehiclesCount { get; set; } | ||
|
||
/// <summary> | ||
/// Telemetics connection vendor <see cref="Enum.TelematicsVendorType" /> | ||
/// </summary> | ||
[DataMember(Name = "vendor", EmitDefaultValue = false)] | ||
public string Vendor { get; set; } | ||
|
||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
Route4MeSDKLibrary/DataTypes/TelematicsRegisterMemberResponse.cs
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,36 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Route4MeSDK.DataTypes | ||
{ | ||
/// <summary> | ||
/// Response from the process of a telematics member registering. | ||
/// </summary> | ||
[DataContract] | ||
public sealed class TelematicsRegisterMemberResponse | ||
{ | ||
/// <summary> | ||
/// API token | ||
/// Use for the operations: Get Telematics Connections, Register Telematics Connection | ||
/// </summary> | ||
[DataMember(Name = "api_token", EmitDefaultValue = false)] | ||
public string ApiToken { get; set; } | ||
|
||
/// <summary> | ||
/// When the registered member updated | ||
/// </summary> | ||
[DataMember(Name = "updated_at", EmitDefaultValue = false)] | ||
public string UpdatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// When the registered member created | ||
/// </summary> | ||
[DataMember(Name = "created_at", EmitDefaultValue = false)] | ||
public string CreatedAt { get; set; } | ||
|
||
/// <summary> | ||
/// Telemetics member ID | ||
/// </summary> | ||
[DataMember(Name = "id", EmitDefaultValue = false)] | ||
public int? Id { get; set; } | ||
} | ||
} |
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,41 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Route4MeSDK.DataTypes.V5 | ||
{ | ||
/// <summary> | ||
/// Account profile | ||
/// </summary> | ||
[DataContract] | ||
public sealed class AccountProfile | ||
{ | ||
/// <summary> | ||
/// Account profile email | ||
/// </summary> | ||
[DataMember(Name = "email", EmitDefaultValue = false)] | ||
public string Email { get; set; } | ||
|
||
/// <summary> | ||
/// Acount member ID | ||
/// </summary> | ||
[DataMember(Name = "member_id", EmitDefaultValue = false)] | ||
public int? MemberIId { get; set; } | ||
|
||
/// <summary> | ||
/// Account API key | ||
/// </summary> | ||
[DataMember(Name = "api_key", EmitDefaultValue = false)] | ||
public string ApiKey { get; set; } | ||
|
||
/// <summary> | ||
/// Account root member ID | ||
/// </summary> | ||
[DataMember(Name = "root_member_id", EmitDefaultValue = false)] | ||
public int? RootMemberId { get; set; } | ||
|
||
/// <summary> | ||
/// Prefered unnits of the account | ||
/// </summary> | ||
[DataMember(Name = "preferred_units", EmitDefaultValue = false)] | ||
public string PreferredUnits { get; set; } | ||
} | ||
} |
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.