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) |
| |
| T | CallService< T > (Func< IApiService, T > serviceCall, [CallerMemberName] string callerMethod=null) |
| | Calls a service function and raises an error if it fails. More...
|
| |
| T | CallServiceWithMessage< T > (Func< IApiService, T > serviceCall, [CallerMemberName] string callerMethod=null) |
| | Calls a service function and raises an error if it fails. More...
|
| |
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)
◆ CallService< T >()
| T Ofcas.Lk.Api.Client.Core.CoreObjectBase.CallService< T > |
( |
Func< IApiService, T > |
serviceCall, |
|
|
[CallerMemberName] string |
callerMethod = null |
|
) |
| |
|
protected |
Calls a service function and raises an error if it fails.
- Template Parameters
-
| T | The type of BaseResponse expected. |
- Parameters
-
| serviceCall | The call to be executed. |
| callerMethod | The caller method. |
- Returns
◆ CallServiceWithMessage< T >()
| T Ofcas.Lk.Api.Client.Core.CoreObjectBase.CallServiceWithMessage< T > |
( |
Func< IApiService, T > |
serviceCall, |
|
|
[CallerMemberName] string |
callerMethod = null |
|
) |
| |
|
protected |
Calls a service function and raises an error if it fails.
- Template Parameters
-
| T | The type of MessageBase and IBaseResponse expected. |
- Parameters
-
| serviceCall | The call to be executed. |
| callerMethod | The caller method. |
- Returns
- Type Constraints
-
| T | : | MessageBase | |
| T | : | IBaseResponse | |
◆ 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 |
( |
| ) |
|
◆ NotSupportedCauseNotImplemented
| const string Ofcas.Lk.Api.Client.Core.CoreObjectBase.NotSupportedCauseNotImplemented |
|
protected |
Initial value:=
"This method is not implemented, therefore not supported."
Default message for methods which are not supported because they are not implemented.
◆ ApiService
| IApiService Ofcas.Lk.Api.Client.Core.CoreObjectBase.ApiService |
|
getprotected |
◆ CoreObjectId
| Guid Ofcas.Lk.Api.Client.Core.CoreObjectBase.CoreObjectId |
|
get |
The unique identifier of the object instance.
The documentation for this class was generated from the following file:
- Core/src/CoreObjectBase.cs