Skip to content

Riko's quirks

Rishabh Joshi edited this page Oct 15, 2018 · 1 revision

ServiceGenerator::rebuildWithUrl(HttpUrl url)

The ServiceGenerator class has a public method - rebuildWithUrl(HttpUrl url), that allows for easy unit testing of Riko. Hence, this method should only be used when your are developing Riko. Ignore this function, otherwise.

Constants

Some constants have been declared under the package com.github.rishabh9.riko.upstox.common.constants that you can make use of in your application development.

NumberString

Certain endpoints of the Upstox API, returns certain numeric data as empty String if a value doesn't exists for the same. In a dynamic typed language this may work, but in a strongly typed language like Java, this causes a lot of pain. To support such data, we have the NumberString class and a set of serializers and deserializers, to support it.