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
ifiInverseFunctionalIdentifierThe identifier.
Properties
Ifi
The identifier: Mbox, MboxSha1Sum, OpenId or Account.
public InverseFunctionalIdentifier Ifi { get; init; }
Property Value
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
homePageUriThe absolute home page URI of the system the account is on.
namestringThe account's unique id or login name.
displayNamestringThe 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
homePageIriThe home page of the system the account is on.
namestringThe account's unique id or login name.
displayNamestringThe 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
Returns
- Agent
The Agent.