Class Nameplate
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Representing a nameplate an IUser can have.
public class Nameplate : IEquatable<Nameplate>
- Inheritance
-
Nameplate
- Implements
- Inherited Members
Properties
Icon
Gets the resource uri of the icon of the nameplate given to user.
public string Icon { get; }
Property Value
Name
Gets the name of the nameplate given to user.
public string Name { get; }
Property Value
Tips
Gets the tips of the nameplate given to user.
public string Tips { get; }
Property Value
Type
Gets the type of the nameplate given to user.
public int Type { get; }
Property Value
Methods
Create(string, int, string, string)
Initializes a new instance of the Nameplate class.
public static Nameplate Create(string name, int type, string icon, string tips)
Parameters
name
stringThe name of the nameplate given to user.
type
intThe type of the nameplate given to user.
icon
stringThe resource uri of the icon of the nameplate given to user.
tips
stringThe tips of the nameplate given to user.
Returns
Equals(Nameplate?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Nameplate? other)
Parameters
other
NameplateAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.