Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • coscine/backend/libraries/apiclient
1 result
Select Git revision
Show changes
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// Represents the data transfer object (DTO) for manipulating the visibility of a resource.
/// </summary>
[DataContract(Name = "VisibilityForResourceManipulationDto")]
public partial class VisibilityForResourceManipulationDto : IEquatable<VisibilityForResourceManipulationDto>, IValidatableObject
public partial class VisibilityForResourceManipulationDto : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VisibilityForResourceManipulationDto" /> class.
......@@ -75,58 +75,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VisibilityForResourceManipulationDto);
}
/// <summary>
/// Returns true if VisibilityForResourceManipulationDto instances are equal
/// </summary>
/// <param name="input">Instance of VisibilityForResourceManipulationDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VisibilityForResourceManipulationDto input)
{
if (input == null)
{
return false;
}
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// Represents a Data Transfer Object (DTO) for vocabulary details.
/// </summary>
[DataContract(Name = "VocabularyDto")]
public partial class VocabularyDto : IEquatable<VocabularyDto>, IValidatableObject
public partial class VocabularyDto : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VocabularyDto" /> class.
......@@ -100,85 +100,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VocabularyDto);
}
/// <summary>
/// Returns true if VocabularyDto instances are equal
/// </summary>
/// <param name="input">Instance of VocabularyDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VocabularyDto input)
{
if (input == null)
{
return false;
}
return
(
this.GraphUri == input.GraphUri ||
(this.GraphUri != null &&
this.GraphUri.Equals(input.GraphUri))
) &&
(
this.ClassUri == input.ClassUri ||
(this.ClassUri != null &&
this.ClassUri.Equals(input.ClassUri))
) &&
(
this.DisplayName == input.DisplayName ||
(this.DisplayName != null &&
this.DisplayName.Equals(input.DisplayName))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.GraphUri != null)
{
hashCode = (hashCode * 59) + this.GraphUri.GetHashCode();
}
if (this.ClassUri != null)
{
hashCode = (hashCode * 59) + this.ClassUri.GetHashCode();
}
if (this.DisplayName != null)
{
hashCode = (hashCode * 59) + this.DisplayName.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// VocabularyDtoPagedResponse
/// </summary>
[DataContract(Name = "VocabularyDtoPagedResponse")]
public partial class VocabularyDtoPagedResponse : IEquatable<VocabularyDtoPagedResponse>, IValidatableObject
public partial class VocabularyDtoPagedResponse : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VocabularyDtoPagedResponse" /> class.
......@@ -111,91 +111,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VocabularyDtoPagedResponse);
}
/// <summary>
/// Returns true if VocabularyDtoPagedResponse instances are equal
/// </summary>
/// <param name="input">Instance of VocabularyDtoPagedResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VocabularyDtoPagedResponse input)
{
if (input == null)
{
return false;
}
return
(
this.Data == input.Data ||
this.Data != null &&
input.Data != null &&
this.Data.SequenceEqual(input.Data)
) &&
(
this.IsSuccess == input.IsSuccess ||
this.IsSuccess.Equals(input.IsSuccess)
) &&
(
this.StatusCode == input.StatusCode ||
(this.StatusCode != null &&
this.StatusCode.Equals(input.StatusCode))
) &&
(
this.TraceId == input.TraceId ||
(this.TraceId != null &&
this.TraceId.Equals(input.TraceId))
) &&
(
this.Pagination == input.Pagination ||
(this.Pagination != null &&
this.Pagination.Equals(input.Pagination))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Data != null)
{
hashCode = (hashCode * 59) + this.Data.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode();
if (this.StatusCode != null)
{
hashCode = (hashCode * 59) + this.StatusCode.GetHashCode();
}
if (this.TraceId != null)
{
hashCode = (hashCode * 59) + this.TraceId.GetHashCode();
}
if (this.Pagination != null)
{
hashCode = (hashCode * 59) + this.Pagination.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// Represents a Data Transfer Object (DTO) for vocabulary instance details.
/// </summary>
[DataContract(Name = "VocabularyInstanceDto")]
public partial class VocabularyInstanceDto : IEquatable<VocabularyInstanceDto>, IValidatableObject
public partial class VocabularyInstanceDto : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VocabularyInstanceDto" /> class.
......@@ -120,103 +120,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VocabularyInstanceDto);
}
/// <summary>
/// Returns true if VocabularyInstanceDto instances are equal
/// </summary>
/// <param name="input">Instance of VocabularyInstanceDto to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VocabularyInstanceDto input)
{
if (input == null)
{
return false;
}
return
(
this.GraphUri == input.GraphUri ||
(this.GraphUri != null &&
this.GraphUri.Equals(input.GraphUri))
) &&
(
this.InstanceUri == input.InstanceUri ||
(this.InstanceUri != null &&
this.InstanceUri.Equals(input.InstanceUri))
) &&
(
this.TypeUri == input.TypeUri ||
(this.TypeUri != null &&
this.TypeUri.Equals(input.TypeUri))
) &&
(
this.SubClassOfUri == input.SubClassOfUri ||
(this.SubClassOfUri != null &&
this.SubClassOfUri.Equals(input.SubClassOfUri))
) &&
(
this.DisplayName == input.DisplayName ||
(this.DisplayName != null &&
this.DisplayName.Equals(input.DisplayName))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.GraphUri != null)
{
hashCode = (hashCode * 59) + this.GraphUri.GetHashCode();
}
if (this.InstanceUri != null)
{
hashCode = (hashCode * 59) + this.InstanceUri.GetHashCode();
}
if (this.TypeUri != null)
{
hashCode = (hashCode * 59) + this.TypeUri.GetHashCode();
}
if (this.SubClassOfUri != null)
{
hashCode = (hashCode * 59) + this.SubClassOfUri.GetHashCode();
}
if (this.DisplayName != null)
{
hashCode = (hashCode * 59) + this.DisplayName.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// VocabularyInstanceDtoPagedResponse
/// </summary>
[DataContract(Name = "VocabularyInstanceDtoPagedResponse")]
public partial class VocabularyInstanceDtoPagedResponse : IEquatable<VocabularyInstanceDtoPagedResponse>, IValidatableObject
public partial class VocabularyInstanceDtoPagedResponse : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VocabularyInstanceDtoPagedResponse" /> class.
......@@ -111,91 +111,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VocabularyInstanceDtoPagedResponse);
}
/// <summary>
/// Returns true if VocabularyInstanceDtoPagedResponse instances are equal
/// </summary>
/// <param name="input">Instance of VocabularyInstanceDtoPagedResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VocabularyInstanceDtoPagedResponse input)
{
if (input == null)
{
return false;
}
return
(
this.Data == input.Data ||
this.Data != null &&
input.Data != null &&
this.Data.SequenceEqual(input.Data)
) &&
(
this.IsSuccess == input.IsSuccess ||
this.IsSuccess.Equals(input.IsSuccess)
) &&
(
this.StatusCode == input.StatusCode ||
(this.StatusCode != null &&
this.StatusCode.Equals(input.StatusCode))
) &&
(
this.TraceId == input.TraceId ||
(this.TraceId != null &&
this.TraceId.Equals(input.TraceId))
) &&
(
this.Pagination == input.Pagination ||
(this.Pagination != null &&
this.Pagination.Equals(input.Pagination))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Data != null)
{
hashCode = (hashCode * 59) + this.Data.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode();
if (this.StatusCode != null)
{
hashCode = (hashCode * 59) + this.StatusCode.GetHashCode();
}
if (this.TraceId != null)
{
hashCode = (hashCode * 59) + this.TraceId.GetHashCode();
}
if (this.Pagination != null)
{
hashCode = (hashCode * 59) + this.Pagination.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -30,7 +30,7 @@ namespace Coscine.ApiClient.Core.Model
/// VocabularyInstanceDtoResponse
/// </summary>
[DataContract(Name = "VocabularyInstanceDtoResponse")]
public partial class VocabularyInstanceDtoResponse : IEquatable<VocabularyInstanceDtoResponse>, IValidatableObject
public partial class VocabularyInstanceDtoResponse : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VocabularyInstanceDtoResponse" /> class.
......@@ -102,81 +102,12 @@ namespace Coscine.ApiClient.Core.Model
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as VocabularyInstanceDtoResponse);
}
/// <summary>
/// Returns true if VocabularyInstanceDtoResponse instances are equal
/// </summary>
/// <param name="input">Instance of VocabularyInstanceDtoResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(VocabularyInstanceDtoResponse input)
{
if (input == null)
{
return false;
}
return
(
this.Data == input.Data ||
(this.Data != null &&
this.Data.Equals(input.Data))
) &&
(
this.IsSuccess == input.IsSuccess ||
this.IsSuccess.Equals(input.IsSuccess)
) &&
(
this.StatusCode == input.StatusCode ||
(this.StatusCode != null &&
this.StatusCode.Equals(input.StatusCode))
) &&
(
this.TraceId == input.TraceId ||
(this.TraceId != null &&
this.TraceId.Equals(input.TraceId))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Data != null)
{
hashCode = (hashCode * 59) + this.Data.GetHashCode();
}
hashCode = (hashCode * 59) + this.IsSuccess.GetHashCode();
if (this.StatusCode != null)
{
hashCode = (hashCode * 59) + this.StatusCode.GetHashCode();
}
if (this.TraceId != null)
{
hashCode = (hashCode * 59) + this.TraceId.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
......
......@@ -3,8 +3,8 @@
<OutputType>Library</OutputType>
<RootNamespace>Coscine.ApiClient</RootNamespace>
<AssemblyName>Coscine.ApiClient</AssemblyName>
<TargetFramework>net7.0</TargetFramework>
<Version>1.9.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Version>1.9.1</Version>
</PropertyGroup>
<PropertyGroup>
......