Skip to content

Jimin/2025 ga #50191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
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
19 changes: 8 additions & 11 deletions sdk/communication/Azure.Communication.Chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ Once you initialized a `ChatThreadClient` class, you can do the following chat o
```C# Snippet:Azure_Communication_Chat_Tests_Samples_UpdateThread_KeyConcepts
chatThreadClient.UpdateTopic(topic: "Launch meeting");
```

### Send a message
```C# Snippet:Azure_Communication_Chat_Tests_Samples_SendMessage_KeyConcepts
SendChatMessageResult sendChatMessageResult = chatThreadClient.SendMessage("Let's meet at 11am");
Expand Down Expand Up @@ -215,9 +214,7 @@ await chatClient.DeleteChatThreadAsync(threadId);

### Update a thread

Use `UpdateTopic` to update the chat thread topic.
- `topic` is used to describe the updated topic for the thread.

Use `UpdatePropertiesAsync` to update the chat thread topic or metadata.
```C# Snippet:Azure_Communication_Chat_Tests_Samples_UpdateThread
await chatThreadClient.UpdateTopicAsync(topic: "new topic !");
```
Expand Down Expand Up @@ -376,12 +373,12 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc_contact]: mailto:[email protected]
[nuget]: https://www.nuget.org/
[netstandars2mappings]:https://github.com/dotnet/standard/blob/master/docs/versions.md
[useraccesstokens]:https://learn.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-csharp
[communication_resource_docs]: https://learn.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_portal]: https://learn.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_power_shell]: https://learn.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
[communication_resource_create_net]: https://learn.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-net
[nextsteps]:https://learn.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-csharp
[useraccesstokens]:https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-csharp
[communication_resource_docs]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_portal]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp
[communication_resource_create_power_shell]: https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice
[communication_resource_create_net]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-net
[nextsteps]:https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-csharp
[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Chat/src
[product_docs]: https://learn.microsoft.com/azure/communication-services/overview
[product_docs]: https://docs.microsoft.com/azure/communication-services/overview
[package]: https://www.nuget.org/packages/Azure.Communication.Chat
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public partial class ChatClient
{
protected ChatClient() { }
public ChatClient(System.Uri endpoint, Azure.Communication.CommunicationTokenCredential communicationTokenCredential, Azure.Communication.Chat.ChatClientOptions options = null) { }
public virtual Azure.Response<Azure.Communication.Chat.CreateChatThreadResult> CreateChatThread(Azure.Communication.Chat.CreateChatThreadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.Communication.Chat.CreateChatThreadResult> CreateChatThread(string topic, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants, string idempotencyToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>> CreateChatThreadAsync(Azure.Communication.Chat.CreateChatThreadOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>> CreateChatThreadAsync(string topic, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants = null, string idempotencyToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response DeleteChatThread(string threadId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteChatThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand All @@ -52,13 +54,14 @@ public ChatClient(System.Uri endpoint, Azure.Communication.CommunicationTokenCre
}
public partial class ChatClientOptions : Azure.Core.ClientOptions
{
public ChatClientOptions(Azure.Communication.Chat.ChatClientOptions.ServiceVersion version = Azure.Communication.Chat.ChatClientOptions.ServiceVersion.V2024_03_07) { }
public ChatClientOptions(Azure.Communication.Chat.ChatClientOptions.ServiceVersion version = Azure.Communication.Chat.ChatClientOptions.ServiceVersion.V2025_03_15) { }
public enum ServiceVersion
{
V2021_03_07 = 1,
V2021_09_07 = 2,
V2023_11_07 = 3,
V2024_03_07 = 4,
V2025_03_15 = 5,
}
}
public partial class ChatError
Expand Down Expand Up @@ -136,19 +139,26 @@ public static partial class ChatModelFactory
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static Azure.Communication.Chat.ChatMessageReadReceipt ChatMessageReadReceipt(Azure.Communication.CommunicationIdentifier sender, string chatMessageId, System.DateTimeOffset readOn) { throw null; }
public static Azure.Communication.Chat.ChatParticipant ChatParticipant(Azure.Communication.CommunicationIdentifier user, string displayName, System.DateTimeOffset? shareHistoryTime) { throw null; }
public static Azure.Communication.Chat.ChatParticipant ChatParticipant(Azure.Communication.CommunicationIdentifier user, string displayName, System.DateTimeOffset? shareHistoryTime, System.Collections.Generic.IDictionary<string, string> metadata) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public static Azure.Communication.Chat.ChatThreadItem ChatThreadItem(string id, string topic, System.DateTimeOffset? deletedOn, System.DateTimeOffset? lastMessageReceivedOn) { throw null; }
public static Azure.Communication.Chat.ChatThreadProperties ChatThreadProperties(string id, string topic, System.DateTimeOffset createdOn, Azure.Communication.CommunicationIdentifier createdBy, System.DateTimeOffset deletedOn) { throw null; }
public static Azure.Communication.Chat.ChatThreadProperties ChatThreadProperties(string id, string topic, System.DateTimeOffset createdOn, Azure.Communication.CommunicationIdentifier createdBy, System.DateTimeOffset deletedOn, System.Collections.Generic.IDictionary<string, string> metadata) { throw null; }
public static Azure.Communication.Chat.CreateChatThreadResult CreateChatThreadResult(Azure.Communication.Chat.ChatThreadProperties chatThread, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatError> invalidParticipants) { throw null; }
public static Azure.Communication.Chat.SendChatMessageResult SendChatMessageResult(string id) { throw null; }
}
public partial class ChatParticipant
{
public ChatParticipant(Azure.Communication.CommunicationIdentifier identifier) { }
public string DisplayName { get { throw null; } set { } }
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } }
public System.DateTimeOffset? ShareHistoryTime { get { throw null; } set { } }
public Azure.Communication.CommunicationIdentifier User { get { throw null; } set { } }
}
public abstract partial class ChatRetentionPolicy
{
protected ChatRetentionPolicy() { }
}
public partial class ChatThreadClient
{
protected ChatThreadClient() { }
Expand Down Expand Up @@ -186,6 +196,8 @@ public ChatThreadClient(string threadId, System.Uri endpoint, Azure.Communicatio
public virtual Azure.Response UpdateMessage(string messageId, string content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateMessageAsync(Azure.Communication.Chat.UpdateChatMessageOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateMessageAsync(string messageId, string content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response UpdateProperties(Azure.Communication.Chat.UpdateChatThreadPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UpdatePropertiesAsync(Azure.Communication.Chat.UpdateChatThreadPropertiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response UpdateTopic(string topic, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateTopicAsync(string topic, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
Expand All @@ -204,6 +216,17 @@ internal ChatThreadProperties() { }
public System.DateTimeOffset CreatedOn { get { throw null; } }
public System.DateTimeOffset? DeletedOn { get { throw null; } }
public string Id { get { throw null; } }
public System.Collections.Generic.IReadOnlyDictionary<string, string> Metadata { get { throw null; } }
public Azure.Communication.Chat.ChatRetentionPolicy RetentionPolicy { get { throw null; } }
public string Topic { get { throw null; } }
}
public partial class CreateChatThreadOptions
{
public CreateChatThreadOptions(string topic) { }
public string IdempotencyToken { get { throw null; } set { } }
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } }
public System.Collections.Generic.IList<Azure.Communication.Chat.ChatParticipant> Participants { get { throw null; } }
public Azure.Communication.Chat.ChatRetentionPolicy RetentionPolicy { get { throw null; } set { } }
public string Topic { get { throw null; } }
}
public partial class CreateChatThreadResult
Expand All @@ -212,6 +235,28 @@ internal CreateChatThreadResult() { }
public Azure.Communication.Chat.ChatThreadProperties ChatThread { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.Communication.Chat.ChatError> InvalidParticipants { get { throw null; } }
}
public partial class NoneRetentionPolicy : Azure.Communication.Chat.ChatRetentionPolicy
{
public NoneRetentionPolicy() { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct RetentionPolicyKind : System.IEquatable<Azure.Communication.Chat.RetentionPolicyKind>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public RetentionPolicyKind(string value) { throw null; }
public static Azure.Communication.Chat.RetentionPolicyKind None { get { throw null; } }
public static Azure.Communication.Chat.RetentionPolicyKind ThreadCreationDate { get { throw null; } }
public bool Equals(Azure.Communication.Chat.RetentionPolicyKind other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
public static bool operator ==(Azure.Communication.Chat.RetentionPolicyKind left, Azure.Communication.Chat.RetentionPolicyKind right) { throw null; }
public static implicit operator Azure.Communication.Chat.RetentionPolicyKind (string value) { throw null; }
public static bool operator !=(Azure.Communication.Chat.RetentionPolicyKind left, Azure.Communication.Chat.RetentionPolicyKind right) { throw null; }
public override string ToString() { throw null; }
}
public partial class SendChatMessageOptions
{
public SendChatMessageOptions() { }
Expand All @@ -225,6 +270,11 @@ public partial class SendChatMessageResult
internal SendChatMessageResult() { }
public string Id { get { throw null; } }
}
public partial class ThreadCreationDateRetentionPolicy : Azure.Communication.Chat.ChatRetentionPolicy
{
public ThreadCreationDateRetentionPolicy(int deleteThreadAfterDays) { }
public int DeleteThreadAfterDays { get { throw null; } set { } }
}
public partial class TypingNotificationOptions
{
public TypingNotificationOptions() { }
Expand All @@ -237,4 +287,11 @@ public UpdateChatMessageOptions() { }
public string MessageId { get { throw null; } set { } }
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } }
}
public partial class UpdateChatThreadPropertiesOptions
{
public UpdateChatThreadPropertiesOptions() { }
public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } }
public Azure.Communication.Chat.ChatRetentionPolicy RetentionPolicy { get { throw null; } set { } }
public string Topic { get { throw null; } set { } }
}
}
Loading
Loading