Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions libraries/Microsoft.Bot.Schema/Teams/Generated/CacheInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.

namespace Microsoft.Bot.Schema.Teams
{
using Newtonsoft.Json;

/// <summary>
/// A cache info object which notifies Teams how long an object should be cached for.
/// </summary>
public partial class CacheInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="CacheInfo"/> class.
/// </summary>
public CacheInfo()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the <see cref="CacheInfo"/> class.
/// </summary>
/// <param name="cacheType">Type of Cache Info.</param>
/// <param name="cacheDuration">Duration of the Cached Info.</param>
public CacheInfo(string cacheType = default(string), int cacheDuration = default(int))
{
CacheType = cacheType;
CacheDuration = cacheDuration;
CustomInit();
}

/// <summary>
/// Gets or sets cache type.
/// </summary>
/// <value>The type of cache for this object.</value>
[JsonProperty(PropertyName = "cacheType")]
public string CacheType { get; set; }

/// <summary>
/// Gets or sets cache duration.
/// </summary>
/// <value>The time in seconds for which the cached object should remain in the cache.</value>
[JsonProperty(PropertyName = "cacheDuration")]
public int CacheDuration { get; set; }

/// <summary>
/// An initialization method that performs custom operations like setting defaults.
/// </summary>
partial void CustomInit();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,10 @@ public MessagingExtensionActionResponse()
[JsonProperty(PropertyName = "composeExtension")]
public MessagingExtensionResult ComposeExtension { get; set; }

/// <summary>
/// Gets or sets the CacheInfo for this MessagingExtensionActionResponse.
/// </summary>
[JsonProperty(PropertyName = "cacheInfo")]
public CacheInfo CacheInfo { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public MessagingExtensionResponse()
/// <summary>
/// Initializes a new instance of the MessagingExtensionResponse class.
/// </summary>
/// <param name="composeExtension">A <see cref="MessagingExtensionResult"/> that initializes the current object's ComposeExension property.</param>
public MessagingExtensionResponse(MessagingExtensionResult composeExtension = default(MessagingExtensionResult))
{
ComposeExtension = composeExtension;
Expand All @@ -45,5 +46,11 @@ public MessagingExtensionResponse()
[JsonProperty(PropertyName = "composeExtension")]
public MessagingExtensionResult ComposeExtension { get; set; }

/// <summary>
/// Gets or sets the CacheInfo for this MessagingExtensionResponse.
/// module.
/// </summary>
[JsonProperty(PropertyName = "cacheInfo")]
public CacheInfo CacheInfo { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <auto-generated>
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
Expand Down Expand Up @@ -49,5 +49,11 @@ public TaskModuleResponse()
[JsonProperty(PropertyName = "task")]
public TaskModuleResponseBase Task { get; set; }

/// <summary>
/// Gets or sets the CacheInfo for this TaskModuleResponse.
/// module.
/// </summary>
[JsonProperty(PropertyName = "cacheInfo")]
public CacheInfo CacheInfo { get; set; }
}
}