Closed KeyserDSoze closed 2 years ago
This looks like we need to update the v1.0 documentation and metadata. @nkramer can you take a look at this and confirm that we need to update the v1.0 documentation and metadata to contain a description of ConversationIdentitySet? It is defined in beta.
https://docs.microsoft.com/en-us/graph/api/resources/identityset?view=graph-rest-beta
This issue seems to be really old. I am not sure if this is applicable any more. The schema for chatMessageMention type and associated types is:
<ComplexType Name="chatMessageMention">
<Property Name="id" Type="Edm.Int32"/>
<Property Name="mentioned" Type="graph.chatMessageMentionedIdentitySet"/>
<Property Name="mentionText" Type="Edm.String"/>
</ComplexType>
<ComplexType Name="chatMessageMentionedIdentitySet" BaseType="graph.identitySet" OpenType="true">
<Property Name="conversation" Type="graph.teamworkConversationIdentity"/>
</ComplexType>
<ComplexType Name="teamworkConversationIdentity" BaseType="graph.identity" OpenType="true">
<Property Name="conversationIdentityType" Type="graph.teamworkConversationIdentityType"/>
</ComplexType>
All of these are documented in both beta and v1.
Thanks @AkJo!
Closing this for now as the types are already available in the latest v1.0 SDK versions
ChatMessageMention ChatMessageMentionedIdentitySet TeamworkConversationIdentity
Describe the bug It's not possible to add a mention to a team or channel because the identityset model misses the object Identity Conversation. In the graph api we need to send the conversation parameter in json to mention a team or channel. Probably the problem is in the metadata file https://graph.microsoft.com/v1.0/$metadata
To Reproduce Steps to reproduce the behavior:
Expected behavior Adding the needed parameters. My actual solution has been a sort of "decoration" private class ConversationIdentitySet : IdentitySet { ///
/// Gets or sets user.
/// Optional. The user associated with this action.
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "conversation", Required = Required.Default)]
public Identity Conversation { get; set; }
}
private class TeamsIdentity : Identity
{
public TeamsIdentity() : base()
{
}
///
/// Gets or sets @odata.type.
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "conversationIdentityType", Required = Newtonsoft.Json.Required.Default)]
public string ConversationIdentityType { get; set; }
}
Screenshots
![image](https://user-images.githubusercontent.com/40713438/111619452-e4c04b00-87e5-11eb-8bd6-15929556be33.png)
Desktop (please complete the following information):
Additional context No additional context AB#8652