Table of Contents

Class TimeToBeat

Namespace
Playnite
Assembly
Playnite.SDK.dll

A base class for objects of which the properties must be observable.

[Equatable(IgnoreInheritedMembers = true)]
public class TimeToBeat : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging, ICopyable<TimeToBeat>, IEquatable<TimeToBeat>
Inheritance
TimeToBeat
Implements
Inherited Members

Constructors

TimeToBeat()

public TimeToBeat()

TimeToBeat(uint, uint, uint)

public TimeToBeat(uint mainStory, uint mainStoryAndSide, uint completionist)

Parameters

mainStory uint
mainStoryAndSide uint
completionist uint

Properties

Completionist

[ExcludeFromCodeCoverage]
public uint Completionist { get; set; }

Property Value

uint

MainStory

[ExcludeFromCodeCoverage]
public uint MainStory { get; set; }

Property Value

uint

MainStoryAndSide

[ExcludeFromCodeCoverage]
public uint MainStoryAndSide { get; set; }

Property Value

uint

Methods

CompareTimeToBeats(TimeToBeat?, TimeToBeat?)

public static HashSet<string> CompareTimeToBeats(TimeToBeat? one, TimeToBeat? two)

Parameters

one TimeToBeat
two TimeToBeat

Returns

HashSet<string>

Equals(TimeToBeat?)

protected bool Equals(TimeToBeat? other)

Parameters

other TimeToBeat

Returns

bool

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.

GetCopy()

public TimeToBeat GetCopy()

Returns

TimeToBeat

GetDiffProperties(TimeToBeat)

public HashSet<string> GetDiffProperties(TimeToBeat target)

Parameters

target TimeToBeat

Returns

HashSet<string>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

HasData()

public bool HasData()

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(TimeToBeat?, TimeToBeat?)

Indicates whether the object on the left is equal to the object on the right.

public static bool operator ==(TimeToBeat? left, TimeToBeat? right)

Parameters

left TimeToBeat

The left object

right TimeToBeat

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(TimeToBeat?, TimeToBeat?)

Indicates whether the object on the left is not equal to the object on the right.

public static bool operator !=(TimeToBeat? left, TimeToBeat? right)

Parameters

left TimeToBeat

The left object

right TimeToBeat

The right object

Returns

bool

true if the objects are not equal; otherwise, false.