Skip to content

connect-sdk / de.proglove.sdk.utils / SdkResultObject

SdkResultObject

data class SdkResultObject<T> *

Main class for packing the result of sdk calls. Use this instead of passing the customer callback further down the sdk. This is for internal use only. TODO: make all internal classes and interfaces visibility "internal" https://proglove.atlassian.net/browse/AN-146

Constructors

Name Summary
<init>
SdkResultObject(result: T? = null, errorCode:Int? = null, errorMessage:String? = null)

Properties

Name Summary
errorCode should only be set, if there was an error with this callval errorCode:Int?
errorMessage might be set, if there were errors. These should be logged into the customer application's logval errorMessage:String?
result the result of this api call. If this is set, then this represents a successful call.val result: T?