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
TypeMapentity
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
Remarks
All overrides MUST call this using
base(typeMap, false)
Exceptions
- InvalidOperationException
If
is true and the entity type already exists in the graphextendGraph
- InvalidOperationException
If
is true and the entity requires another entity that is missing from the graphextendGraph
- InvalidCastException
If
is false and the object is not of typeextendGraph
TEntity
- See Also
Fields
PlaceType
ActivityStreams type name for "Place" types.
[PublicAPI]
public const string PlaceType = "Place"
Field Value
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
- 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
- See Also
Entity
private PlaceObjectEntity Entity { get; }
Property Value
Latitude
The latitude of a place.
public float? Latitude { get; set; }
Property Value
- See Also
Longitude
The longitude of a place.
public float? Longitude { get; set; }
Property Value
- 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
- 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
- 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
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