yieldprobe / com.yieldlab.yieldprobe.helper / NetworkRequest

NetworkRequest

class NetworkRequest

Class to hold all data for one network request. Can not be implemented as data class. Future variable can not be referenced on lower API levels (!)

Constructors

<init>

default constructor used in unit tests.

NetworkRequest()

constructor for requests with EventBus.

NetworkRequest(adslotIds: Set<Int>?)

constructor for request with Futures.

NetworkRequest(adslotIds: Set<Int>?, futureBid: CompletableFuture<Bid>?, futureBids: CompletableFuture<HashMap<Int, Bid>>?)

Properties

mAdslotIds

var mAdslotIds: Set<Int>?

mFutureBid

Do not reference these variables on low API levels (!).

var mFutureBid: CompletableFuture<Bid>?

mFutureBids

var mFutureBids: CompletableFuture<HashMap<Int, Bid>>?

mId

Identifier for the request. Not used right now. Could be used to remove request from queue.

var mId: String?

mURL

var mURL: String

mUseFutures

If this variable is unset EventBus will be used. Otherwise Futures.

var mUseFutures: Boolean