Table of Contents

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

string

Name

Gets the name of the nameplate given to user.

public string Name { get; }

Property Value

string

Tips

Gets the tips of the nameplate given to user.

public string Tips { get; }

Property Value

string

Type

Gets the type of the nameplate given to user.

public int Type { get; }

Property Value

int

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 string

The name of the nameplate given to user.

type int

The type of the nameplate given to user.

icon string

The resource uri of the icon of the nameplate given to user.

tips string

The tips of the nameplate given to user.

Returns

Nameplate

A Nameplate representing the given parameters.

Equals(Nameplate?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Nameplate? other)

Parameters

other Nameplate

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.