Skip to content

Commit

Permalink
Remove DataContract usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nvborisenko committed Dec 22, 2023
1 parent ebaef7a commit ada1b40
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
using ReportPortal.Client.Abstractions.Responses;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ReportPortal.Client.Abstractions.Requests
{
/// <summary>
/// Defines a request for assigning issues to test items.
/// </summary>
[DataContract]
public class AssignTestItemIssuesRequest
{
/// <summary>
/// List of test items and their issues.
/// </summary>
[DataMember(Name = "issues")]
public List<TestItemIssueUpdate> Issues { get; set; }
}

[DataContract]
public class TestItemIssueUpdate
{
/// <summary>
/// A issue of test item.
/// </summary>
[DataMember(Name = "issue")]
public Issue Issue { get; set; }

/// <summary>
/// ID of test item to assign the issue.
/// </summary>
[DataMember(Name = "testItemId")]
public long TestItemId { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ReportPortal.Client.Abstractions.Responses.Project
{
[DataContract]
public class PreferenceResponse
{
/// <summary>
/// List of filters in a preference.
/// </summary>
[DataMember(Name = "filters")]
public IList<UserFilterResponse> Filters { get; set; }

[DataMember(Name = "projectId")]
public long ProjectId { get; set; }

[DataMember(Name = "userId")]
public long UserId { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
using System.Runtime.Serialization;

namespace ReportPortal.Client.Abstractions.Responses.Project
namespace ReportPortal.Client.Abstractions.Responses.Project
{
[DataContract]
public class ProjectDefectSubType
{
[DataMember(Name = "id")]
public long Id { get; set; }

[DataMember(Name = "color")]
public string Color { get; set; }

[DataMember(Name = "locator")]
public string Locator { get; set; }

[DataMember(Name = "longName")]
public string LongName { get; set; }

[DataMember(Name = "shortName")]
public string ShortName { get; set; }
}
}

0 comments on commit ada1b40

Please sign in to comment.