-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GetPagedFailedEntriesAsync method.
- Loading branch information
1 parent
c295eb4
commit c70cd2b
Showing
6 changed files
with
410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
libraries/Microsoft.Bot.Schema/Teams/BatchFailedEntriesResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Specifies the failed entries response. | ||
/// Contains a list of <see cref="BatchFailedEntry"/>. | ||
/// </summary> | ||
public class BatchFailedEntriesResponse | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BatchFailedEntriesResponse"/> class. | ||
/// </summary> | ||
public BatchFailedEntriesResponse() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the continuation token for paginated results. | ||
/// </summary> | ||
/// <value>The continuation token for paginated results.</value> | ||
[JsonProperty(PropertyName = "continuationToken")] | ||
public string ContinuationToken { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the list of failed entries result of a batch operation. | ||
/// </summary> | ||
/// <value>The list of failed entries result of a batch operation.</value> | ||
[JsonProperty(PropertyName = "failedEntries")] | ||
public IList<BatchFailedEntry> FailedEntries { get; private set; } = new List<BatchFailedEntry>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Bot.Schema.Teams | ||
{ | ||
/// <summary> | ||
/// Specifies the failed entry with its id and error. | ||
/// </summary> | ||
public class BatchFailedEntry | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="BatchFailedEntry"/> class. | ||
/// </summary> | ||
public BatchFailedEntry() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the id of the failed entry. | ||
/// </summary> | ||
/// <value>The id of the failed entry.</value> | ||
[JsonProperty(PropertyName = "id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the error of the failed entry. | ||
/// </summary> | ||
/// <value>The error of the failed entry.</value> | ||
[JsonProperty(PropertyName = "error")] | ||
public string Error { get; set; } | ||
} | ||
} |
Oops, something went wrong.