Skip to content

Commit 4efa540

Browse files
committed
fix: Mark PublishQueue and PublishRule params nullable
1 parent c1d9aff commit 4efa540

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Contentstack.Management.Core/Models/PublishQueue.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ namespace Contentstack.Management.Core.Models
99
public class PublishQueue
1010
{
1111
internal Stack stack;
12-
public string Uid { get; set; }
12+
public string? Uid { get; set; }
1313

1414
internal string resourcePath;
1515

16-
internal PublishQueue(Stack stack, string uid = null)
16+
internal PublishQueue(Stack stack, string? uid = null)
1717
{
1818
stack.ThrowIfAPIKeyEmpty();
1919

Contentstack.Management.Core/Models/PublishRule.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal PublishRule(Stack stack, string uid)
2323
/// </code></pre>
2424
/// </example>
2525
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
26-
public virtual ContentstackResponse FindAll(ParameterCollection collection = null)
26+
public virtual ContentstackResponse FindAll(ParameterCollection? collection = null)
2727
{
2828
stack.ThrowIfNotLoggedIn();
2929
ThrowIfUidNotEmpty();
@@ -43,7 +43,7 @@ public virtual ContentstackResponse FindAll(ParameterCollection collection = nul
4343
/// </code></pre>
4444
/// </example>
4545
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
46-
public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection collection = null)
46+
public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection? collection = null)
4747
{
4848
stack.ThrowIfNotLoggedIn();
4949
ThrowIfUidNotEmpty();
@@ -64,7 +64,7 @@ public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection colle
6464
/// </example>
6565
/// <param name="model">PublishRule Model for creating workflow.</param>
6666
/// <returns></returns>
67-
public override ContentstackResponse Create(PublishRuleModel model, ParameterCollection collection = null)
67+
public override ContentstackResponse Create(PublishRuleModel model, ParameterCollection? collection = null)
6868
{
6969
return base.Create(model, collection);
7070
}
@@ -81,7 +81,7 @@ public override ContentstackResponse Create(PublishRuleModel model, ParameterCol
8181
/// </example>
8282
/// <param name="model">PublishRule Model for creating workflow.</param>
8383
/// <returns></returns>
84-
public override Task<ContentstackResponse> CreateAsync(PublishRuleModel model, ParameterCollection collection = null)
84+
public override Task<ContentstackResponse> CreateAsync(PublishRuleModel model, ParameterCollection? collection = null)
8585
{
8686
return base.CreateAsync(model, collection);
8787
}
@@ -98,7 +98,7 @@ public override Task<ContentstackResponse> CreateAsync(PublishRuleModel model, P
9898
/// </example>
9999
/// <param name="model">PublishRule Model for updating Content Type.</param>
100100
/// <returns></returns>
101-
public override ContentstackResponse Update(PublishRuleModel model, ParameterCollection collection = null)
101+
public override ContentstackResponse Update(PublishRuleModel model, ParameterCollection? collection = null)
102102
{
103103
return base.Update(model, collection);
104104
}
@@ -115,7 +115,7 @@ public override ContentstackResponse Update(PublishRuleModel model, ParameterCol
115115
/// </example>
116116
/// <param name="model">PublishRule Model for updating Content Type.</param>
117117
/// <returns></returns>
118-
public override Task<ContentstackResponse> UpdateAsync(PublishRuleModel model, ParameterCollection collection = null)
118+
public override Task<ContentstackResponse> UpdateAsync(PublishRuleModel model, ParameterCollection? collection = null)
119119
{
120120
return base.UpdateAsync(model, collection);
121121
}
@@ -130,7 +130,7 @@ public override Task<ContentstackResponse> UpdateAsync(PublishRuleModel model, P
130130
/// </code></pre>
131131
/// </example>
132132
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
133-
public override ContentstackResponse Fetch(ParameterCollection collection = null)
133+
public override ContentstackResponse Fetch(ParameterCollection? collection = null)
134134
{
135135
return base.Fetch(collection);
136136
}
@@ -145,7 +145,7 @@ public override ContentstackResponse Fetch(ParameterCollection collection = null
145145
/// </code></pre>
146146
/// </example>
147147
/// <returns>The Task.</returns>
148-
public override Task<ContentstackResponse> FetchAsync(ParameterCollection collection = null)
148+
public override Task<ContentstackResponse> FetchAsync(ParameterCollection? collection = null)
149149
{
150150
return base.FetchAsync(collection);
151151
}
@@ -160,7 +160,7 @@ public override Task<ContentstackResponse> FetchAsync(ParameterCollection collec
160160
/// </code></pre>
161161
/// </example>
162162
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
163-
public override ContentstackResponse Delete(ParameterCollection collection = null)
163+
public override ContentstackResponse Delete(ParameterCollection? collection = null)
164164
{
165165
return base.Delete(collection);
166166
}
@@ -175,7 +175,7 @@ public override ContentstackResponse Delete(ParameterCollection collection = nul
175175
/// </code></pre>
176176
/// </example>
177177
/// <returns>The Task.</returns>
178-
public override Task<ContentstackResponse> DeleteAsync(ParameterCollection collection = null)
178+
public override Task<ContentstackResponse> DeleteAsync(ParameterCollection? collection = null)
179179
{
180180
return base.DeleteAsync(collection);
181181
}

0 commit comments

Comments
 (0)