28 lines
494 B
C#
28 lines
494 B
C#
using System;
|
|
|
|
|
|
public class WebSocketChannleKey
|
|
{
|
|
public string name;
|
|
public string type;
|
|
|
|
|
|
public WebSocketChannleKey(string name, string type)
|
|
{
|
|
this.name = name;
|
|
this.type = type;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is WebSocketChannleKey key &&
|
|
name == key.name &&
|
|
type == key.type;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return HashCode.Combine(name, type);
|
|
}
|
|
}
|