Table of Contents

Class Person

Namespace
TCSystem.MetaData
Assembly
TCSystem.MetaData.dll

Represents a person associated with image metadata.

public sealed class Person : IEquatable<Person>
Inheritance
Person
Implements
Inherited Members
Extension Methods

Constructors

Person(long, string, string, string, string)

Represents a person associated with image metadata.

public Person(long _id, string _name, string _emailDigest, string _liveId, string _sourceId)

Parameters

_id long

The persistent person identifier.

_name string

The display name.

_emailDigest string

The email digest.

_liveId string

The external live identifier.

_sourceId string

The external source identifier.

Properties

AllAttributesDefined

Gets whether all textual attributes are defined.

public bool AllAttributesDefined { get; }

Property Value

bool

EmailDigest

Gets the email digest, or an empty string.

public string EmailDigest { get; }

Property Value

string

Id

Gets the persistent person identifier.

public long Id { get; }

Property Value

long

IsValid

Gets whether the person has a non-empty name.

public bool IsValid { get; }

Property Value

bool

LiveId

Gets the external live identifier, or an empty string.

public string LiveId { get; }

Property Value

string

Name

Gets the display name, or an empty string.

public string Name { get; }

Property Value

string

SourceId

Gets the external source identifier, or an empty string.

public string SourceId { get; }

Property Value

string

Methods

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.

Equals(Person)

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

public bool Equals(Person other)

Parameters

other Person

An object to compare with this object.

Returns

bool

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

FromJsonString(string)

Deserializes a person from JSON.

public static Person FromJsonString(string jsonString)

Parameters

jsonString string

Returns

Person

The person, or null for null or empty input.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToJsonString()

Serializes the person to compact JSON.

public string ToJsonString()

Returns

string

The serialized person.

ToString()

Serializes the person to indented JSON.

public override string ToString()

Returns

string

The formatted JSON.