CoreObjectBase is the base class for all objects and holds general data (for example, the object instance ID of the parent). Each object is assigned with a unique identification number (CoreObjectId)
More...
|
| bool | CanDispose () |
| | Returns the information about whether the object can be deleted. An object can only be deleted if no children live. More...
|
| |
| IList< Guid > | Children () |
| | Returns a list with CoreObjectId for all children More...
|
| |
|
void | Dispose () |
| |
|
|
| CoreObjectBase (IApiService apiService, Guid coreObjectId) |
| |
|
override void | Dispose (bool disposing) |
| |
| virtual void | OnSynchronizedEventReceived (ISynchronizedEvent synchronizedEvent) |
| | Gets called when a synchronized event was received. More...
|
| |
| void | RaiseIfFailed (BaseResponse response, [CallerMemberName] string callerMethod=null) |
| | Raises an ApiException if the stated BaseResponse indicates a failure. More...
|
| |
|
|
readonly IApiService | _apiService |
| |
CoreObjectBase is the base class for all objects and holds general data (for example, the object instance ID of the parent). Each object is assigned with a unique identification number (CoreObjectId)
◆ CanDispose()
| bool Ofcas.Lk.Api.Client.Core.CoreObjectBase.CanDispose |
( |
| ) |
|
Returns the information about whether the object can be deleted. An object can only be deleted if no children live.
- Returns
- true, if the core object can be deleted otherwise false
Implements Ofcas.Lk.Api.Client.Core.Interfaces.ICoreObject.
◆ Children()
| IList<Guid> Ofcas.Lk.Api.Client.Core.CoreObjectBase.Children |
( |
| ) |
|
◆ OnSynchronizedEventReceived()
| virtual void Ofcas.Lk.Api.Client.Core.CoreObjectBase.OnSynchronizedEventReceived |
( |
ISynchronizedEvent |
synchronizedEvent | ) |
|
|
protectedvirtual |
Gets called when a synchronized event was received.
- Parameters
-
| synchronizedEvent | The received synchronized event. |
◆ RaiseIfFailed()
| void Ofcas.Lk.Api.Client.Core.CoreObjectBase.RaiseIfFailed |
( |
BaseResponse |
response, |
|
|
[CallerMemberName] string |
callerMethod = null |
|
) |
| |
|
protected |
Raises an ApiException if the stated BaseResponse indicates a failure.
- Parameters
-
| response | The response to be checked. |
| callerMethod | The caller method. |
- Exceptions
-
| ApiException | Occurs if the BaseResponse indicates a failure. |
◆ CoreObjectId
| Guid Ofcas.Lk.Api.Client.Core.CoreObjectBase.CoreObjectId |
|
get |
The unique identifier of the object instance.
◆ Documents
The documentation for this class was generated from the following file:
- Core/src/CoreObjectBase.cs