ChannelAccountEx.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 
5 namespace Microsoft.Bot.Connector
6 {
7  public partial class ChannelAccount : IEquatable<ChannelAccount>
8  {
9  public bool Equals(ChannelAccount other)
10  {
11  return other != null
12  && this.Id == other.Id
13  && this.Name == other.Name;
14 
15  }
16 
17  public override bool Equals(object obj)
18  {
19  return this.Equals(obj as ChannelAccount);
20  }
21 
22  public override int GetHashCode()
23  {
24  var code
25  = this.Id.GetHashCode()
26  ^ this.Name.GetHashCode();
27  return code;
28  }
29  }
30 }
string Name
Display friendly name
bool Equals(ChannelAccount other)
string Id
Channel id for the user or bot on this channel (Example: joe@smith.com, or or 123456) ...
Channel account information needed to route a message