-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from jaspirot/beta/service-provider
v1.0-beta12
- Loading branch information
Showing
32 changed files
with
4,248 additions
and
2,792 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
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
66 changes: 66 additions & 0 deletions
66
...esSourceCode/Sherweb.Apis.ServiceProvider/HttpClient/Models/CustomerPlatformDetailsDto.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,66 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Sherweb.Apis.ServiceProvider.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
public partial class CustomerPlatformDetailsDto | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the CustomerPlatformDetailsDto class. | ||
/// </summary> | ||
public CustomerPlatformDetailsDto() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the CustomerPlatformDetailsDto class. | ||
/// </summary> | ||
public CustomerPlatformDetailsDto(System.Guid customerId, PlatformDetailsDto platformDetails) | ||
{ | ||
CustomerId = customerId; | ||
PlatformDetails = platformDetails; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "customerId")] | ||
public System.Guid CustomerId { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "platformDetails")] | ||
public PlatformDetailsDto PlatformDetails { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (PlatformDetails == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "PlatformDetails"); | ||
} | ||
if (PlatformDetails != null) | ||
{ | ||
PlatformDetails.Validate(); | ||
} | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...urceCode/Sherweb.Apis.ServiceProvider/HttpClient/Models/CustomerPlatformMeterUsagesDto.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,82 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Sherweb.Apis.ServiceProvider.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
public partial class CustomerPlatformMeterUsagesDto | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the CustomerPlatformMeterUsagesDto | ||
/// class. | ||
/// </summary> | ||
public CustomerPlatformMeterUsagesDto() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the CustomerPlatformMeterUsagesDto | ||
/// class. | ||
/// </summary> | ||
public CustomerPlatformMeterUsagesDto(System.Guid customerId, System.Guid platformId, IList<MeterUsageDto> meterUsages) | ||
{ | ||
CustomerId = customerId; | ||
PlatformId = platformId; | ||
MeterUsages = meterUsages; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "customerId")] | ||
public System.Guid CustomerId { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "platformId")] | ||
public System.Guid PlatformId { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
[JsonProperty(PropertyName = "meterUsages")] | ||
public IList<MeterUsageDto> MeterUsages { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (MeterUsages == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "MeterUsages"); | ||
} | ||
if (MeterUsages != null) | ||
{ | ||
foreach (var element in MeterUsages) | ||
{ | ||
if (element != null) | ||
{ | ||
element.Validate(); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.