Skip to content

Commit 23065cd

Browse files
committed
Change collection type from IList to List
1 parent 1435d2c commit 23065cd

File tree

15 files changed

+31
-31
lines changed

15 files changed

+31
-31
lines changed

src/redmine-net-api/Common/PagedResults.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public sealed class PagedResults<TOut> where TOut: class
3030
/// <param name="total"></param>
3131
/// <param name="offset"></param>
3232
/// <param name="pageSize"></param>
33-
public PagedResults(IEnumerable<TOut> items, int total, int offset, int pageSize)
33+
public PagedResults(List<TOut> items, int total, int offset, int pageSize)
3434
{
3535
Items = items;
3636
TotalItems = total;
@@ -75,6 +75,6 @@ public PagedResults(IEnumerable<TOut> items, int total, int offset, int pageSize
7575
/// <summary>
7676
///
7777
/// </summary>
78-
public IEnumerable<TOut> Items { get; }
78+
public List<TOut> Items { get; }
7979
}
8080
}

src/redmine-net-api/Extensions/ListExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static IList<T> Clone<T>(this IList<T> listToClone, bool resetId) where T
5454
/// <param name="listToClone">The list to be cloned.</param>
5555
/// <param name="resetId">Specifies whether to reset the ID for each cloned item.</param>
5656
/// <returns>A new list containing cloned copies of the elements from the original list. Returns null if the original list is null.</returns>
57-
public static IList<T> Clone<T>(this List<T> listToClone, bool resetId) where T : ICloneable<T>
57+
public static List<T> Clone<T>(this List<T> listToClone, bool resetId) where T : ICloneable<T>
5858
{
5959
if (listToClone == null)
6060
{

src/redmine-net-api/Types/CustomField.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ public sealed class CustomField : IdentifiableName, IEquatable<CustomField>
9898
/// <summary>
9999
///
100100
/// </summary>
101-
public IList<CustomFieldPossibleValue> PossibleValues { get; internal set; }
101+
public List<CustomFieldPossibleValue> PossibleValues { get; internal set; }
102102

103103
/// <summary>
104104
///
105105
/// </summary>
106-
public IList<TrackerCustomField> Trackers { get; internal set; }
106+
public List<TrackerCustomField> Trackers { get; internal set; }
107107

108108
/// <summary>
109109
///
110110
/// </summary>
111-
public IList<CustomFieldRole> Roles { get; internal set; }
111+
public List<CustomFieldRole> Roles { get; internal set; }
112112
#endregion
113113

114114
#region Implementation of IXmlSerializable

src/redmine-net-api/Types/Group.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ public Group(string name)
5555
/// <summary>
5656
/// Represents the group's users.
5757
/// </summary>
58-
public IList<GroupUser> Users { get; set; }
58+
public List<GroupUser> Users { get; set; }
5959

6060
/// <summary>
6161
/// Gets or sets the custom fields.
6262
/// </summary>
6363
/// <value>The custom fields.</value>
64-
public IList<IssueCustomField> CustomFields { get; internal set; }
64+
public List<IssueCustomField> CustomFields { get; internal set; }
6565

6666
/// <summary>
6767
/// Gets or sets the custom fields.
6868
/// </summary>
6969
/// <value>The custom fields.</value>
70-
public IList<Membership> Memberships { get; internal set; }
70+
public List<Membership> Memberships { get; internal set; }
7171
#endregion
7272

7373
#region Implementation of IXmlSerializable

src/redmine-net-api/Types/Issue.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public sealed class Issue :
137137
/// Gets or sets the custom fields.
138138
/// </summary>
139139
/// <value>The custom fields.</value>
140-
public IList<IssueCustomField> CustomFields { get; set; }
140+
public List<IssueCustomField> CustomFields { get; set; }
141141

142142
/// <summary>
143143
/// Gets or sets the created on.
@@ -212,31 +212,31 @@ public sealed class Issue :
212212
/// <value>
213213
/// The journals.
214214
/// </value>
215-
public IList<Journal> Journals { get; set; }
215+
public List<Journal> Journals { get; set; }
216216

217217
/// <summary>
218218
/// Gets or sets the change sets.
219219
/// </summary>
220220
/// <value>
221221
/// The change sets.
222222
/// </value>
223-
public IList<ChangeSet> ChangeSets { get; set; }
223+
public List<ChangeSet> ChangeSets { get; set; }
224224

225225
/// <summary>
226226
/// Gets or sets the attachments.
227227
/// </summary>
228228
/// <value>
229229
/// The attachments.
230230
/// </value>
231-
public IList<Attachment> Attachments { get; set; }
231+
public List<Attachment> Attachments { get; set; }
232232

233233
/// <summary>
234234
/// Gets or sets the issue relations.
235235
/// </summary>
236236
/// <value>
237237
/// The issue relations.
238238
/// </value>
239-
public IList<IssueRelation> Relations { get; set; }
239+
public List<IssueRelation> Relations { get; set; }
240240

241241
/// <summary>
242242
/// Gets or sets the issue children.
@@ -245,20 +245,20 @@ public sealed class Issue :
245245
/// The issue children.
246246
/// NOTE: Only Id, tracker and subject are filled.
247247
/// </value>
248-
public IList<IssueChild> Children { get; set; }
248+
public List<IssueChild> Children { get; set; }
249249

250250
/// <summary>
251251
/// Gets or sets the attachments.
252252
/// </summary>
253253
/// <value>
254254
/// The attachment.
255255
/// </value>
256-
public IList<Upload> Uploads { get; set; }
256+
public List<Upload> Uploads { get; set; }
257257

258258
/// <summary>
259259
///
260260
/// </summary>
261-
public IList<Watcher> Watchers { get; set; }
261+
public List<Watcher> Watchers { get; set; }
262262

263263
/// <summary>
264264
///

src/redmine-net-api/Types/IssueCustomField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public sealed class IssueCustomField :
4444
/// Gets or sets the value.
4545
/// </summary>
4646
/// <value>The value.</value>
47-
public IList<CustomFieldValue> Values { get; set; }
47+
public List<CustomFieldValue> Values { get; set; }
4848

4949
/// <summary>
5050
///

src/redmine-net-api/Types/Journal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public sealed class Journal :
8383
/// <value>
8484
/// The details.
8585
/// </value>
86-
public IList<Detail> Details { get; internal set; }
86+
public List<Detail> Details { get; internal set; }
8787

8888
/// <summary>
8989
///

src/redmine-net-api/Types/Membership.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public sealed class Membership : Identifiable<Membership>
5353
/// Gets or sets the type.
5454
/// </summary>
5555
/// <value>The type.</value>
56-
public IList<MembershipRole> Roles { get; internal set; }
56+
public List<MembershipRole> Roles { get; internal set; }
5757
#endregion
5858

5959
#region Implementation of IXmlSerialization

src/redmine-net-api/Types/Project.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public sealed class Project : IdentifiableName, IEquatable<Project>
108108
/// The trackers.
109109
/// </value>
110110
/// <remarks>Available in Redmine starting with 2.6.0 version.</remarks>
111-
public IList<ProjectTracker> Trackers { get; set; }
111+
public List<ProjectTracker> Trackers { get; set; }
112112

113113
/// <summary>
114114
/// Gets or sets the enabled modules.
@@ -117,7 +117,7 @@ public sealed class Project : IdentifiableName, IEquatable<Project>
117117
/// The enabled modules.
118118
/// </value>
119119
/// <remarks>Available in Redmine starting with 2.6.0 version.</remarks>
120-
public IList<ProjectEnabledModule> EnabledModules { get; set; }
120+
public List<ProjectEnabledModule> EnabledModules { get; set; }
121121

122122
/// <summary>
123123
///
@@ -136,13 +136,13 @@ public sealed class Project : IdentifiableName, IEquatable<Project>
136136
/// The issue categories.
137137
/// </value>
138138
/// <remarks>Available in Redmine starting with the 2.6.0 version.</remarks>
139-
public IList<ProjectIssueCategory> IssueCategories { get; internal set; }
139+
public List<ProjectIssueCategory> IssueCategories { get; internal set; }
140140

141141
/// <summary>
142142
/// Gets the time entry activities.
143143
/// </summary>
144144
/// <remarks>Available in Redmine starting with the 3.4.0 version.</remarks>
145-
public IList<ProjectTimeEntryActivity> TimeEntryActivities { get; internal set; }
145+
public List<ProjectTimeEntryActivity> TimeEntryActivities { get; internal set; }
146146

147147
/// <summary>
148148
///

src/redmine-net-api/Types/ProjectMembership.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public sealed class ProjectMembership : Identifiable<ProjectMembership>
6868
/// Gets or sets the type.
6969
/// </summary>
7070
/// <value>The type.</value>
71-
public IList<MembershipRole> Roles { get; set; }
71+
public List<MembershipRole> Roles { get; set; }
7272
#endregion
7373

7474
#region Implementation of IXmlSerialization

0 commit comments

Comments
 (0)