Maps dtring property names to Property objects. An instance of this class is returned for every GetProperties() lookup that matches an IP.
More...
|
| 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...
|
|
Maps dtring property names to Property objects. An instance of this class is returned for every GetProperties() lookup that matches an IP.
- Copyright
- Copyright (c) DeviceAtlas Limited 2022. All Rights Reserved. https://deviceatlas.com
- Author
- DeviceAtlas Limited
◆ Contains< T >()
virtual bool Mobi.Mtld.DA.Properties.Contains< T > |
( |
string |
propertyName, |
|
|
T |
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
-
propertyName | the property to check it's value |
valueToCheck | the 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
-
propertyName | the property name |
- Returns
- the value to be set
◆ IsEmpty()
bool Mobi.Mtld.DA.Properties.IsEmpty |
( |
| ) |
|
|
inline |
◆ 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
-
propertyName | the property name |
value | the 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:
- Api/src/main/dotnet/Properties.cs