Skip to content
Snippets Groups Projects
Commit 2d57bcfa authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Fix: Update UserOrganizationDto and UserDto to remove optional properties...

parent ed005774
Branches
Tags
1 merge request!40Fix: Update UserOrganizationDto and UserDto to remove optional properties...
......@@ -5,10 +5,8 @@ Represents a Data Transfer Object (DTO) for user-related organization informatio
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Uri** | **string** | The ROR (Research Organization Registry) ID of the organization. |
**Uri** | **string** | The ROR (Research Organization Registry) ID of the organization. | [optional]
**DisplayName** | **string** | The display name of the organization. |
**Email** | **string** | The email address of the organization. | [optional]
**PublicationAdvisoryService** | [**PublicationAdvisoryServiceDto**](PublicationAdvisoryServiceDto.md) | | [optional]
**ReadOnly** | **bool** | Determines if the organization's details can be modified. |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
......
......@@ -73,24 +73,6 @@ namespace Coscine.ApiClient.Core.Test.Model
// TODO unit test for the property 'DisplayName'
}
/// <summary>
/// Test the property 'Email'
/// </summary>
[Fact]
public void EmailTest()
{
// TODO unit test for the property 'Email'
}
/// <summary>
/// Test the property 'PublicationAdvisoryService'
/// </summary>
[Fact]
public void PublicationAdvisoryServiceTest()
{
// TODO unit test for the property 'PublicationAdvisoryService'
}
/// <summary>
/// Test the property 'ReadOnly'
/// </summary>
......
......@@ -43,8 +43,8 @@ namespace Coscine.ApiClient.Core.Model
/// </summary>
/// <param name="id">The unique identifier of the user. (required).</param>
/// <param name="displayName">The display name of the user. (required).</param>
/// <param name="givenName">The given name of the user.</param>
/// <param name="familyName">The family name of the user.</param>
/// <param name="givenName">The given name of the user..</param>
/// <param name="familyName">The family name of the user..</param>
/// <param name="emails">The email addresses associated with the user. (required).</param>
/// <param name="title">title.</param>
/// <param name="language">language.</param>
......
......@@ -41,19 +41,11 @@ namespace Coscine.ApiClient.Core.Model
/// <summary>
/// Initializes a new instance of the <see cref="UserOrganizationDto" /> class.
/// </summary>
/// <param name="uri">The ROR (Research Organization Registry) ID of the organization. (required).</param>
/// <param name="uri">The ROR (Research Organization Registry) ID of the organization..</param>
/// <param name="displayName">The display name of the organization. (required).</param>
/// <param name="email">The email address of the organization..</param>
/// <param name="publicationAdvisoryService">publicationAdvisoryService.</param>
/// <param name="readOnly">Determines if the organization&#39;s details can be modified. (required).</param>
public UserOrganizationDto(string uri = default(string), string displayName = default(string), string email = default(string), PublicationAdvisoryServiceDto publicationAdvisoryService = default(PublicationAdvisoryServiceDto), bool readOnly = default(bool))
public UserOrganizationDto(string uri = default(string), string displayName = default(string), bool readOnly = default(bool))
{
// to ensure "uri" is required (not null)
if (uri == null)
{
throw new ArgumentNullException("uri is a required property for UserOrganizationDto and cannot be null");
}
this.Uri = uri;
// to ensure "displayName" is required (not null)
if (displayName == null)
{
......@@ -61,15 +53,14 @@ namespace Coscine.ApiClient.Core.Model
}
this.DisplayName = displayName;
this.ReadOnly = readOnly;
this.Email = email;
this.PublicationAdvisoryService = publicationAdvisoryService;
this.Uri = uri;
}
/// <summary>
/// The ROR (Research Organization Registry) ID of the organization.
/// </summary>
/// <value>The ROR (Research Organization Registry) ID of the organization.</value>
[DataMember(Name = "uri", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "uri", EmitDefaultValue = true)]
public string Uri { get; set; }
/// <summary>
......@@ -79,19 +70,6 @@ namespace Coscine.ApiClient.Core.Model
[DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)]
public string DisplayName { get; set; }
/// <summary>
/// The email address of the organization.
/// </summary>
/// <value>The email address of the organization.</value>
[DataMember(Name = "email", EmitDefaultValue = true)]
public string Email { get; set; }
/// <summary>
/// Gets or Sets PublicationAdvisoryService
/// </summary>
[DataMember(Name = "publicationAdvisoryService", EmitDefaultValue = false)]
public PublicationAdvisoryServiceDto PublicationAdvisoryService { get; set; }
/// <summary>
/// Determines if the organization&#39;s details can be modified.
/// </summary>
......@@ -109,8 +87,6 @@ namespace Coscine.ApiClient.Core.Model
sb.Append("class UserOrganizationDto {\n");
sb.Append(" Uri: ").Append(Uri).Append("\n");
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
sb.Append(" Email: ").Append(Email).Append("\n");
sb.Append(" PublicationAdvisoryService: ").Append(PublicationAdvisoryService).Append("\n");
sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n");
sb.Append("}\n");
return sb.ToString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment