Class Person
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
_idlongThe persistent person identifier.
_namestringThe display name.
_emailDigeststringThe email digest.
_liveIdstringThe external live identifier.
_sourceIdstringThe external source identifier.
Properties
AllAttributesDefined
Gets whether all textual attributes are defined.
public bool AllAttributesDefined { get; }
Property Value
EmailDigest
Gets the email digest, or an empty string.
public string EmailDigest { get; }
Property Value
Id
Gets the persistent person identifier.
public long Id { get; }
Property Value
IsValid
Gets whether the person has a non-empty name.
public bool IsValid { get; }
Property Value
LiveId
Gets the external live identifier, or an empty string.
public string LiveId { get; }
Property Value
Name
Gets the display name, or an empty string.
public string Name { get; }
Property Value
SourceId
Gets the external source identifier, or an empty string.
public string SourceId { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(Person)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Person other)
Parameters
otherPersonAn object to compare with this object.
Returns
FromJsonString(string)
Deserializes a person from JSON.
public static Person FromJsonString(string jsonString)
Parameters
jsonStringstring
Returns
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.