Skip to content

Commit 727e880

Browse files
committed
feat: new data properties
1 parent 968dec5 commit 727e880

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

Fossology.Rest.Dotnet.Model/ReuseInfo.cs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ---------------------------------------------------------------------------
22
// <copyright file="ReuseInfo.cs" company="Tethys">
3-
// Copyright (C) 2019-2020 T. Graf
3+
// Copyright (C) 2019-2022 T. Graf
44
// </copyright>
55
//
66
// Licensed under the MIT License.
@@ -40,10 +40,24 @@ public class ReuseInfo
4040
public bool ReuseMain { get; set; }
4141

4242
/// <summary>
43-
/// Gets or sets a value indicating whether to reuse
44-
/// bulk phrases from reused packages.
43+
/// Gets or sets a value indicating whether to run the
44+
/// enhanced reuser with diff tool (slow).
4545
/// </summary>
4646
[JsonProperty("reuse_enhanced")]
4747
public bool ReuseEnhanced { get; set; }
48+
49+
/// <summary>
50+
/// Gets or sets a value indicating whether to copy all
51+
/// report configuration from conf page.
52+
/// </summary>
53+
[JsonProperty("reuse_report")]
54+
public bool ReuseReport { get; set; }
55+
56+
/// <summary>
57+
/// Gets or sets a value indicating whether to copy the
58+
/// copyright deactivation and edits.
59+
/// </summary>
60+
[JsonProperty("reuse_copyright")]
61+
public bool ReuseCopyright { get; set; }
4862
} // ReuseInfo
4963
}

Fossology.Rest.Dotnet.Model/Upload.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ---------------------------------------------------------------------------
22
// <copyright file="Upload.cs" company="Tethys">
3-
// Copyright (C) 2019 T. Graf
3+
// Copyright (C) 2019-2022 T. Graf
44
// </copyright>
55
//
66
// Licensed under the MIT License.
@@ -71,21 +71,21 @@ public class Upload
7171
public string UploadDate { get; set; }
7272

7373
/// <summary>
74-
/// Gets or sets the file size.
74+
/// Gets or sets the assignee id of the upload.
7575
/// </summary>
76-
[JsonProperty("filesize")]
77-
public int Filesize { get; set; }
76+
[JsonProperty("assignee", DefaultValueHandling = DefaultValueHandling.Ignore)]
77+
public string Assignee { get; set; }
7878

7979
/// <summary>
80-
/// Gets or sets the SHA1 digest of the file.
80+
/// Gets or sets the hash of the file.
8181
/// </summary>
82-
[JsonProperty("filesha1")]
83-
public string FileSha1 { get; set; }
82+
[JsonProperty("hash")]
83+
public Hash Hash { get; set; }
8484

8585
/// <inheritdoc />
8686
public override string ToString()
8787
{
88-
return $"{this.Id}: {this.UploadName}, folder={this.FolderId}, size={this.Filesize}, {this.UploadDate} '{this.Description}'";
88+
return $"{this.Id}: {this.UploadName}, folder={this.FolderId}, size={this.Hash.Size}, {this.UploadDate} '{this.Description}'";
8989
}
9090
} // Upload
9191
}

Fossology.Rest.Dotnet.Model/UploadSummary.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ---------------------------------------------------------------------------
22
// <copyright file="UploadSummary.cs" company="Tethys">
3-
// Copyright (C) 2020 T. Graf
3+
// Copyright (C) 2020-2022 T. Graf
44
// </copyright>
55
//
66
// Licensed under the MIT License.
@@ -33,6 +33,12 @@ public class UploadSummary
3333
[JsonProperty("uploadName")]
3434
public string UploadName { get; set; }
3535

36+
/// <summary>
37+
/// Gets or sets the assignee id of the upload.
38+
/// </summary>
39+
[JsonProperty("assignee")]
40+
public int Assignee { get; set; }
41+
3642
/// <summary>
3743
/// Gets or sets the main license.
3844
/// </summary>

0 commit comments

Comments
 (0)