public class Common extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PER_PAGE_PARAM |
| Constructor and Description |
|---|
Common() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatTxid(String companyBcid,
String uuid)
concatenates a company bcid and a uuid into a txid.
|
static HashMap<String,String> |
getPaginationQueryParams(int page,
int perPage)
returns the query params array to request a pagination.
|
static okhttp3.HttpUrl |
getUri(String basePath,
String[] paths,
HashMap<String,String> queryValues)
joins the base path and paths array and adds the query values to return a new uri.
|
public static final int DEFAULT_PER_PAGE_PARAM
public static okhttp3.HttpUrl getUri(String basePath, String[] paths, HashMap<String,String> queryValues)
basePath - paths - queryValues - public static String formatTxid(String companyBcid, String uuid)
companyBcid - uuid - Copyright © 2020 Transchain. All rights reserved.