Search in sources :

Example 1 with ServerboundForSaleFilterResponsePacket

use of com.almuradev.almura.feature.exchange.network.ServerboundForSaleFilterResponsePacket in project Almura by AlmuraDev.

the class ClientExchangeManager method handleForSaleFilter.

public void handleForSaleFilter(final String id) {
    checkNotNull(id);
    this.network.sendToServer(new ServerboundForSaleFilterResponsePacket(id, this.currentFilter, this.currentSort, this.currentSkip, this.currentLimit));
}
Also used : ServerboundForSaleFilterResponsePacket(com.almuradev.almura.feature.exchange.network.ServerboundForSaleFilterResponsePacket)

Example 2 with ServerboundForSaleFilterResponsePacket

use of com.almuradev.almura.feature.exchange.network.ServerboundForSaleFilterResponsePacket in project Almura by AlmuraDev.

the class ClientExchangeManager method queryForSaleItemsFor.

public void queryForSaleItemsFor(final String id, @Nullable final String filter, @Nullable final String sort, final int skip, final int limit) {
    checkNotNull(id);
    this.currentFilter = filter;
    this.currentSort = sort;
    this.currentSkip = skip;
    this.currentLimit = limit;
    this.network.sendToServer(new ServerboundForSaleFilterResponsePacket(id, filter, sort, skip, limit));
}
Also used : ServerboundForSaleFilterResponsePacket(com.almuradev.almura.feature.exchange.network.ServerboundForSaleFilterResponsePacket)

Aggregations

ServerboundForSaleFilterResponsePacket (com.almuradev.almura.feature.exchange.network.ServerboundForSaleFilterResponsePacket)2