Skip to content

Commit a5c4c63

Browse files
committed
refactor: Change method access modifiers from virtual to public for Variants class methods
1 parent 59a621f commit a5c4c63

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Contentstack.Management.Core/Models/Variants.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal Variants(Stack stack, string uid = null)
3333
/// </code></pre>
3434
/// </example>
3535
/// <returns>The <see cref="ContentstackResponse"/> containing the deletion result.</returns>
36-
public virtual ContentstackResponse Delete()
36+
public ContentstackResponse Delete()
3737
{
3838
stack.ThrowIfNotLoggedIn();
3939
ThrowIfUidEmpty();
@@ -52,7 +52,7 @@ public virtual ContentstackResponse Delete()
5252
/// </code></pre>
5353
/// </example>
5454
/// <returns>The Task containing <see cref="ContentstackResponse"/> with the deletion result.</returns>
55-
public virtual Task<ContentstackResponse> DeleteAsync()
55+
public Task<ContentstackResponse> DeleteAsync()
5656
{
5757
stack.ThrowIfNotLoggedIn();
5858
ThrowIfUidEmpty();
@@ -72,7 +72,7 @@ public virtual Task<ContentstackResponse> DeleteAsync()
7272
/// </code></pre>
7373
/// </example>
7474
/// <returns>The <see cref="ContentstackResponse"/> containing the variant data.</returns>
75-
public virtual ContentstackResponse Fetch(ParameterCollection collection = null)
75+
public ContentstackResponse Fetch(ParameterCollection collection = null)
7676
{
7777
stack.ThrowIfNotLoggedIn();
7878
ThrowIfUidEmpty();
@@ -92,7 +92,7 @@ public virtual ContentstackResponse Fetch(ParameterCollection collection = null)
9292
/// </code></pre>
9393
/// </example>
9494
/// <returns>The Task containing <see cref="ContentstackResponse"/> with the variant data.</returns>
95-
public virtual Task<ContentstackResponse> FetchAsync(ParameterCollection collection = null)
95+
public Task<ContentstackResponse> FetchAsync(ParameterCollection collection = null)
9696
{
9797
stack.ThrowIfNotLoggedIn();
9898
ThrowIfUidEmpty();
@@ -113,7 +113,7 @@ public virtual Task<ContentstackResponse> FetchAsync(ParameterCollection collect
113113
/// </code></pre>
114114
/// </example>
115115
/// <returns>The <see cref="ContentstackResponse"/> containing the created variant data.</returns>
116-
public virtual ContentstackResponse Create(VariantsModel model)
116+
public ContentstackResponse Create(VariantsModel model)
117117
{
118118
ThrowIfUidNotEmpty();
119119

@@ -133,7 +133,7 @@ public virtual ContentstackResponse Create(VariantsModel model)
133133
/// </code></pre>
134134
/// </example>
135135
/// <returns>The Task containing <see cref="ContentstackResponse"/> with the created variant data.</returns>
136-
public virtual Task<ContentstackResponse> CreateAsync(VariantsModel model)
136+
public Task<ContentstackResponse> CreateAsync(VariantsModel model)
137137
{
138138
ThrowIfUidNotEmpty();
139139
stack.ThrowIfNotLoggedIn();
@@ -155,7 +155,7 @@ public virtual Task<ContentstackResponse> CreateAsync(VariantsModel model)
155155
/// </code></pre>
156156
/// </example>
157157
/// <returns>The <see cref="ContentstackResponse"/> containing the requested variants data.</returns>
158-
public virtual ContentstackResponse FetchByUid(string[] uids)
158+
public ContentstackResponse FetchByUid(string[] uids)
159159
{
160160
stack.ThrowIfNotLoggedIn();
161161
ThrowIfUidNotEmpty();
@@ -185,7 +185,7 @@ public virtual ContentstackResponse FetchByUid(string[] uids)
185185
/// </code></pre>
186186
/// </example>
187187
/// <returns>The Task containing <see cref="ContentstackResponse"/> with the requested variants data.</returns>
188-
public virtual Task<ContentstackResponse> FetchByUidAsync(string[] uids)
188+
public Task<ContentstackResponse> FetchByUidAsync(string[] uids)
189189
{
190190
stack.ThrowIfNotLoggedIn();
191191
ThrowIfUidNotEmpty();

0 commit comments

Comments
 (0)