Table of Contents

Class PlaceObject

Namespace
ActivityPub.Types.AS.Extended.Object
Assembly
ActivityPub.Types.dll

Represents a logical or physical location.

public class PlaceObject : ASObject, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<PlaceObject, PlaceObjectEntity, ASObject>, IASModel<PlaceObject, PlaceObjectEntity>, IASModel<PlaceObject>
Inheritance
PlaceObject
Implements
Inherited Members

Constructors

PlaceObject()

Constructs a new instance and attaches it to a new, empty type graph.

public PlaceObject()

PlaceObject(ASType)

Constructs a new instance and extends an existing type graph from a provided model.

public PlaceObject(ASType existingGraph)

Parameters

existingGraph ASType
See Also
Extend<TModel, TEntity>()

PlaceObject(TypeMap, PlaceObjectEntity?)

public PlaceObject(TypeMap typeMap, PlaceObjectEntity? entity)

Parameters

typeMap TypeMap
entity PlaceObjectEntity

PlaceObject(TypeMap, bool)

Constructs a new instance from an existing type graph. The existing graph is either extended or wrapped, depending on the value of

isExtending
public PlaceObject(TypeMap typeMap, bool isExtending = true)

Parameters

typeMap TypeMap
isExtending bool

Remarks

All overrides MUST call this using

base(typeMap, false)

Exceptions

InvalidOperationException

If

extendGraph
is true and the entity type already exists in the graph
InvalidOperationException

If

extendGraph
is true and the entity requires another entity that is missing from the graph
InvalidCastException

If

extendGraph
is false and the object is not of type
TEntity
See Also
ProjectTo<TModel, TEntity>(bool)

Fields

PlaceType

ActivityStreams type name for "Place" types.

[PublicAPI]
public const string PlaceType = "Place"

Field Value

string

Properties

Accuracy

Indicates the accuracy of position coordinates on a Place objects. Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".

public float? Accuracy { get; set; }

Property Value

float?
See Also

Altitude

Indicates the altitude of a place. The measurement units is indicated using the units property. If units is not specified, the default is assumed to be "m" indicating meters.

public float? Altitude { get; set; }

Property Value

float?
See Also

Entity

private PlaceObjectEntity Entity { get; }

Property Value

PlaceObjectEntity

Latitude

The latitude of a place.

public float? Latitude { get; set; }

Property Value

float?
See Also

Longitude

The longitude of a place.

public float? Longitude { get; set; }

Property Value

float?
See Also

Radius

The radius from the given latitude and longitude for a Place. The units is expressed by the units property. If units is not specified, the default is assumed to be "m" indicating "meters".

public float? Radius { get; set; }

Property Value

float?
See Also

Units

Specifies the measurement units for the radius and altitude properties on a Place object. If not specified, the default is assumed to be "m" for "meters".

public string? Units { get; set; }

Property Value

string
See Also

Explicit Interface Implementations

IASModel<PlaceObject>.ASTypeName

AS type name of this entity. For the full list of names in the object graph, use ASTypes.

static string IASModel<PlaceObject>.ASTypeName { get; }

Returns

string

IASModel<PlaceObject>.FromGraph(TypeMap)

Constructs an instance from this type from a pre-populated type graph. The provided TypeMap instance is guaranteed to include an instance of type EntityType.

static PlaceObject IASModel<PlaceObject>.FromGraph(TypeMap typeMap)

Parameters

typeMap TypeMap

Returns

PlaceObject