Table of Contents

Class User

Namespace
KartaViewSharp.V2.Response.Resources.Sequence
Assembly
KartaViewSharp.dll
public sealed class User : IEquatable<User>
Inheritance
User
Implements
Inherited Members

Properties

Category

[JsonPropertyName("category")]
[JsonConverter(typeof(StringAsUserCategoryJsonConverter))]
public UserCategory Category { get; set; }

Property Value

UserCategory

DriverType

[JsonPropertyName("driverType")]
[JsonConverter(typeof(StringAsDriverTypeJsonConverter))]
public DriverType DriverType { get; set; }

Property Value

DriverType

FullName

[JsonPropertyName("fullName")]
public string FullName { get; set; }

Property Value

string

Id

[JsonPropertyName("id")]
[JsonConverter(typeof(StringAsIntJsonConverter))]
public int Id { get; set; }

Property Value

int

Username

[JsonPropertyName("username")]
public string Username { get; set; }

Property Value

string

Methods

Equals(User?)

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

public bool Equals(User? other)

Parameters

other User

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.