Class EventService
Defined in File EventService.h
Page Contents
Inheritance Relationships
Base Type
public axr::sdk::ServiceBase< Event >
(Template Class ServiceBase)
Class Documentation
-
class EventService : public axr::sdk::ServiceBase<Event>
Public Functions
-
inline ~EventService()
-
pplx::task<std::vector<std::shared_ptr<Event>>> FindAll(const std::map<utility::string_t, utility::string_t> *searchParams = nullptr, const uint16_t startIndex = 0, const uint16_t maxResults = 1000, const utility::string_t &sortBy = _XPLATSTR(""))
Retrieves a list of objects matching the specified search parameters.
- Parameters
searchParams – A map of property names to values to search for.
startIndex – The index of the first object to include in the result.
maxResults – The maximum number of objects to evaluate during the search.
sortBy – The property name and order direction to sort the results using. (e.g. “MyProperty=ASC” to sort by MyProperty in ascending order, “MyProperty=DESC” to sort by MyProperty in descending order).
- Returns
A task whose result is a list of objects matching the specified search parameters.
Creates a new instance of Event, storing the object on the remote service and returning the final result.
- Parameters
obj – The object to persist with the remote service.
- Returns
A task whose result is the final object as it was persisted with the remote service.
-
pplx::task<uint64_t> Count(const std::map<utility::string_t, utility::string_t> *searchParams = nullptr, const uint16_t startIndex = 0, const uint16_t maxResults = 1000)
Retrieves the total number of objects matching the specified search parameters.
- Parameters
searchParams – A map of property names to values to search for.
startIndex – The index of the first object to include in the result.
maxResults – The maximum number of objects to evaluate during the search. Value cannot exceed 1000.
- Returns
A task whose result is the number of objects matching the specified search parameters.
Public Static Functions
-
static inline const utility::char_t *ClassName()
Returns the fully qualified name of the class.
-
inline ~EventService()