fetchFileDescriptorById

abstract suspend fun fetchFileDescriptorById(    fileDescriptorId: String,     initialValue: (RainbowFileDescriptor) -> Unit? = null): RainbowResult<RainbowFileDescriptor>

Returns a RainbowFileDescriptor and fetch last data from the server

This method resolve the RainbowFileDescriptor from the server, it returns immediately the local RainbowFileDescriptor if found or null otherwise. The listener allows to be notified when the RainbowFileDescriptor has been resolved from the server. The local object is automatically updated with last data

Return

RainbowResult<RainbowFileDescriptor> callback (onSuccess, onError)

Parameters

fileDescriptorId

String the unique RainbowFileDescriptor identifier

initialValue

Lambda callback to get the local RainbowFileDescriptor