The DeviceAtlas CarrierApi documentation
Public Member Functions | List of all members
Mobi.Mtld.DA.Properties Class Reference

Maps dtring property names to Property objects. An instance of this class is returned for every GetProperties() lookup that matches an IP. More...

Inheritance diagram for Mobi.Mtld.DA.Properties:

Public Member Functions

 Properties (int capacity)
 
virtual bool Contains< T > (string propertyName, T valueToCheck)
 Check if a property has a specific value. Returns false if property name is invalid or property does not exists or the value to check passed is invalid. More...
 
void Put (string propertyName, Property value)
 Alias to method "Add" for adding Property objects. For compatibility with older DeviceAtlas Apis. More...
 
Property Get (string propertyName)
 Alternate way to Properties[propertyName] for getting the value of a property. For compatibility with older DeviceAtlas Apis. More...
 
int Size ()
 Get the properties count. For compatibility with older DeviceAtlas Apis. More...
 
bool IsEmpty ()
 Check if Properties contains any Property. More...
 

Detailed Description

Maps dtring property names to Property objects. An instance of this class is returned for every GetProperties() lookup that matches an IP.

Author
DeviceAtlas Limited

Member Function Documentation

◆ Contains< T >()

virtual bool Mobi.Mtld.DA.Properties.Contains< T > ( string  propertyName,
valueToCheck 
)
inlinevirtual

Check if a property has a specific value. Returns false if property name is invalid or property does not exists or the value to check passed is invalid.

Parameters
propertyNamethe property to check it's value
valueToCheckthe value to be checked against property's value
Returns
true if value to check matches the property's value

◆ Get()

Property Mobi.Mtld.DA.Properties.Get ( string  propertyName)
inline

Alternate way to Properties[propertyName] for getting the value of a property. For compatibility with older DeviceAtlas Apis.

Parameters
propertyNamethe property name
Returns
the value to be set

◆ IsEmpty()

bool Mobi.Mtld.DA.Properties.IsEmpty ( )
inline

Check if Properties contains any Property.

Returns
true=this object contains no Property objects

◆ Put()

void Mobi.Mtld.DA.Properties.Put ( string  propertyName,
Property  value 
)
inline

Alias to method "Add" for adding Property objects. For compatibility with older DeviceAtlas Apis.

Parameters
propertyNamethe property name
valuethe value to be set

◆ Size()

int Mobi.Mtld.DA.Properties.Size ( )
inline

Get the properties count. For compatibility with older DeviceAtlas Apis.

Returns
the Property object count

The documentation for this class was generated from the following file: