ConversationAccountEx.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 
5 namespace Microsoft.Bot.Connector
6 {
7  public partial class ConversationAccount : IEquatable<ConversationAccount>
8  {
9  public bool Equals(ConversationAccount other)
10  {
11  return other != null
12  && this.Id == other.Id
13  && this.Name == other.Name
14  && this.IsGroup == other.IsGroup;
15 
16 
17  }
18 
19  public override bool Equals(object obj)
20  {
21  return this.Equals(obj as ConversationAccount);
22  }
23 
24  public override int GetHashCode()
25  {
26  var code
27  = this.Id.GetHashCode()
28  ^ this.Name.GetHashCode()
29  ^ this.IsGroup.GetHashCode();
30  return code;
31  }
32  }
33 }
Channel account information for a conversation