use of fr.lelouet.tools.holders.impl.collections.ListHolderImpl in project JCELechat by guiguilechat.
the class Characters method contracts_bids.
/**
* Lists bids on a particular auction contract
*
* cache over {@link Swagger#get_characters_contracts_bids}<br />
*
* @param character_id
* An EVE character ID
* @param contract_id
* ID of a contract
*/
public ListHolder<M_get_contracts_contract_bids_4> contracts_bids(int character_id, int contract_id) {
K_2_int_int param = new K_2_int_int(contract_id, character_id);
ListHolderImpl<M_get_contracts_contract_bids_4> ret = get_characters_character_id_contracts_contract_id_bids_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_characters_character_id_contracts_contract_id_bids_holder);
try {
synchronized (get_characters_character_id_contracts_contract_id_bids_holder) {
LockWatchDog.BARKER.hld(get_characters_character_id_contracts_contract_id_bids_holder);
{
ret = get_characters_character_id_contracts_contract_id_bids_holder.get(param);
if (ret == null) {
ret = new ListHolderImpl<M_get_contracts_contract_bids_4>();
get_characters_character_id_contracts_contract_id_bids_holder.put(param, ret);
ListHolderImpl<M_get_contracts_contract_bids_4> finalRet = ret;
(cache).addFetchCacheArray("get_characters_character_id_contracts_contract_id_bids", (page, properties) -> (cache.swagger).get_characters_contracts_bids(character_id, contract_id, properties), arr -> finalRet.set(arr));
}
}
LockWatchDog.BARKER.rel(get_characters_character_id_contracts_contract_id_bids_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_characters_character_id_contracts_contract_id_bids_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.collections.ListHolderImpl in project JCELechat by guiguilechat.
the class Characters method wallet_transactions.
/**
* Get wallet transactions of a character
*
* cache over {@link Swagger#get_characters_wallet_transactions}<br />
*
* @param character_id
* An EVE character ID
* @param from_id
* Only show transactions happened before the one referenced by this id
*/
public ListHolder<R_get_characters_character_id_wallet_transactions> wallet_transactions(int character_id, Long from_id) {
K_6_Long_int param = new K_6_Long_int(from_id, character_id);
ListHolderImpl<R_get_characters_character_id_wallet_transactions> ret = get_characters_character_id_wallet_transactions_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_characters_character_id_wallet_transactions_holder);
try {
synchronized (get_characters_character_id_wallet_transactions_holder) {
LockWatchDog.BARKER.hld(get_characters_character_id_wallet_transactions_holder);
{
ret = get_characters_character_id_wallet_transactions_holder.get(param);
if (ret == null) {
ret = new ListHolderImpl<R_get_characters_character_id_wallet_transactions>();
get_characters_character_id_wallet_transactions_holder.put(param, ret);
ListHolderImpl<R_get_characters_character_id_wallet_transactions> finalRet = ret;
(cache).addFetchCacheArray("get_characters_character_id_wallet_transactions", (page, properties) -> (cache.swagger).get_characters_wallet_transactions(character_id, from_id, properties), arr -> finalRet.set(arr));
}
}
LockWatchDog.BARKER.rel(get_characters_character_id_wallet_transactions_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_characters_character_id_wallet_transactions_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.collections.ListHolderImpl in project JCELechat by guiguilechat.
the class Corporation method mining_observers.
/**
* Paginated record of all mining seen by an observer
*
* cache over {@link Swagger#get_corporation_mining_observers}<br />
*
* @param corporation_id
* An EVE corporation ID
* @param observer_id
* A mining observer id
*/
public ListHolder<R_get_corporation_corporation_id_mining_observers_observer_id> mining_observers(int corporation_id, long observer_id) {
K_7_int_long param = new K_7_int_long(corporation_id, observer_id);
ListHolderImpl<R_get_corporation_corporation_id_mining_observers_observer_id> ret = get_corporation_corporation_id_mining_observers_observer_id_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_corporation_corporation_id_mining_observers_observer_id_holder);
try {
synchronized (get_corporation_corporation_id_mining_observers_observer_id_holder) {
LockWatchDog.BARKER.hld(get_corporation_corporation_id_mining_observers_observer_id_holder);
{
ret = get_corporation_corporation_id_mining_observers_observer_id_holder.get(param);
if (ret == null) {
ret = new ListHolderImpl<R_get_corporation_corporation_id_mining_observers_observer_id>();
get_corporation_corporation_id_mining_observers_observer_id_holder.put(param, ret);
ListHolderImpl<R_get_corporation_corporation_id_mining_observers_observer_id> finalRet = ret;
(cache).addFetchCacheArray("get_corporation_corporation_id_mining_observers_observer_id", (page, properties) -> (cache.swagger).get_corporation_mining_observers(corporation_id, observer_id, page, properties), arr -> finalRet.set(arr), new String[] { "Accountant" });
}
}
LockWatchDog.BARKER.rel(get_corporation_corporation_id_mining_observers_observer_id_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_corporation_corporation_id_mining_observers_observer_id_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.collections.ListHolderImpl in project JCELechat by guiguilechat.
the class Corporations method wallets_transactions.
/**
* Get wallet transactions of a corporation
*
* cache over {@link Swagger#get_corporations_wallets_transactions}<br />
*
* @param corporation_id
* An EVE corporation ID
* @param division
* Wallet key of the division to fetch journals from
* @param from_id
* Only show journal entries happened before the transaction referenced by this id
*/
public ListHolder<R_get_corporations_corporation_id_wallets_division_transactions> wallets_transactions(int corporation_id, int division, Long from_id) {
K_10_int_int_Long param = new K_10_int_int_Long(division, corporation_id, from_id);
ListHolderImpl<R_get_corporations_corporation_id_wallets_division_transactions> ret = get_corporations_corporation_id_wallets_division_transactions_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_corporations_corporation_id_wallets_division_transactions_holder);
try {
synchronized (get_corporations_corporation_id_wallets_division_transactions_holder) {
LockWatchDog.BARKER.hld(get_corporations_corporation_id_wallets_division_transactions_holder);
{
ret = get_corporations_corporation_id_wallets_division_transactions_holder.get(param);
if (ret == null) {
ret = new ListHolderImpl<R_get_corporations_corporation_id_wallets_division_transactions>();
get_corporations_corporation_id_wallets_division_transactions_holder.put(param, ret);
ListHolderImpl<R_get_corporations_corporation_id_wallets_division_transactions> finalRet = ret;
(cache).addFetchCacheArray("get_corporations_corporation_id_wallets_division_transactions", (page, properties) -> (cache.swagger).get_corporations_wallets_transactions(corporation_id, division, from_id, properties), arr -> finalRet.set(arr), new String[] { "Accountant", "Junior_Accountant" });
}
}
LockWatchDog.BARKER.rel(get_corporations_corporation_id_wallets_division_transactions_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_corporations_corporation_id_wallets_division_transactions_holder);
}
}
return ret;
}
use of fr.lelouet.tools.holders.impl.collections.ListHolderImpl in project JCELechat by guiguilechat.
the class Corporations method contracts_bids.
/**
* Lists bids on a particular auction contract
*
* cache over {@link Swagger#get_corporations_contracts_bids}<br />
*
* @param contract_id
* ID of a contract
* @param corporation_id
* An EVE corporation ID
*/
public ListHolder<M_get_contracts_contract_bids_4> contracts_bids(int contract_id, int corporation_id) {
K_8_int_int param = new K_8_int_int(corporation_id, contract_id);
ListHolderImpl<M_get_contracts_contract_bids_4> ret = get_corporations_corporation_id_contracts_contract_id_bids_holder.get(param);
if (ret == null) {
LockWatchDog.BARKER.tak(get_corporations_corporation_id_contracts_contract_id_bids_holder);
try {
synchronized (get_corporations_corporation_id_contracts_contract_id_bids_holder) {
LockWatchDog.BARKER.hld(get_corporations_corporation_id_contracts_contract_id_bids_holder);
{
ret = get_corporations_corporation_id_contracts_contract_id_bids_holder.get(param);
if (ret == null) {
ret = new ListHolderImpl<M_get_contracts_contract_bids_4>();
get_corporations_corporation_id_contracts_contract_id_bids_holder.put(param, ret);
ListHolderImpl<M_get_contracts_contract_bids_4> finalRet = ret;
(cache).addFetchCacheArray("get_corporations_corporation_id_contracts_contract_id_bids", (page, properties) -> (cache.swagger).get_corporations_contracts_bids(contract_id, corporation_id, page, properties), arr -> finalRet.set(arr));
}
}
LockWatchDog.BARKER.rel(get_corporations_corporation_id_contracts_contract_id_bids_holder);
}
} finally {
LockWatchDog.BARKER.rel(get_corporations_corporation_id_contracts_contract_id_bids_holder);
}
}
return ret;
}
Aggregations