Table of Contents

Class Agent

Namespace
Xapi
Assembly
Xapi.Core.dll

An individual, identified by exactly one inverse functional identifier.

public sealed record Agent : Actor, IEquatable<StatementObject>, IEquatable<Actor>, IEquatable<Agent>
Inheritance
Agent
Implements
Inherited Members

Remarks

IEEE 9274.1.1, 4.2.2.1 "Actor as Agent Table".

Constructors

Agent(InverseFunctionalIdentifier)

Creates an Agent.

public Agent(InverseFunctionalIdentifier ifi)

Parameters

ifi InverseFunctionalIdentifier

The identifier.

Properties

Ifi

The identifier: Mbox, MboxSha1Sum, OpenId or Account.

public InverseFunctionalIdentifier Ifi { get; init; }

Property Value

InverseFunctionalIdentifier

Methods

FromAccount(Uri, string, string?)

Creates an Agent identified by an account on another system.

public static Agent FromAccount(Uri homePage, string name, string? displayName = null)

Parameters

homePage Uri

The absolute home page URI of the system the account is on.

name string

The account's unique id or login name.

displayName string

The Agent's full name, if any.

Returns

Agent

The Agent.

FromAccount(Iri, string, string?)

Creates an Agent identified by an account on another system.

public static Agent FromAccount(Iri homePage, string name, string? displayName = null)

Parameters

homePage Iri

The home page of the system the account is on.

name string

The account's unique id or login name.

displayName string

The Agent's full name, if any.

Returns

Agent

The Agent.

FromMbox(string, string?)

Creates an Agent identified by e-mail; mailto: is added when missing.

public static Agent FromMbox(string email, string? name = null)

Parameters

email string

An e-mail address or mailto: IRI.

name string

The full name, if any.

Returns

Agent

The Agent.