This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.atol.tabletpos.engine.mapper | |
import ru.atol.tabletpos.engine.fprint.result.Result | |
import ru.atol.tabletpos.engine.fprint.result.ResultCode | |
import ru.evotor.receipt_storage.db.entity.ResultEntity | |
object ErrorResultMapper { | |
@JvmStatic | |
fun fromErrorResultEntity(resultEntity: ResultEntity?): Result? { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.evotor.drivers.kkm; | |
import ru.evotor.devices.commons.printable.BarcodeSettings; | |
import ru.evotor.devices.commons.printable.ImageSettings; | |
import ru.evotor.devices.commons.printable.TextSettings; | |
import ru.evotor.devices.commons.kkm_state.KKMStatus; | |
import ru.evotor.devices.commons.kkm_state.Result; | |
import ru.evotor.devices.commons.kkm_state.ZReportOptions; | |
import ru.evotor.devices.commons.paysystem.TaxationSystem; | |
import ru.evotor.framework.receipt.PrintableReceipt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.evotor.drivers.kkm; | |
import ru.evotor.devices.commons.barcode.PrintableBarcode; | |
import ru.evotor.devices.commons.kkm_state.KKMStatus; | |
import ru.evotor.devices.commons.kkm_state.Result; | |
import ru.evotor.devices.commons.kkm_state.ZReportOptions; | |
import ru.evotor.framework.receipt.PrintableReceipt; | |
interface IKKMRemoteDriver { | |
Result printString(in String string); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val cal = Calendar.getInstance() | |
cal.add(Calendar.HOUR, Random().nextInt(1000) - 500) | |
cal.add(Calendar.MINUTE, Random().nextInt(120) - 60) | |
cal.add(Calendar.SECOND, Random().nextInt(120) - 60) | |
Log.d(TAG, "Setting time: " + SimpleDateFormat("dd-MMM-yyyy HH:mm:ss").format(Date(cal.timeInMillis)) + "...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.evotor.drivers.kkm; | |
import ru.evotor.devices.commons.kkm_state.KKMStatus; | |
import ru.evotor.devices.commons.kkm_state.Result; | |
import ru.evotor.devices.commons.kkm_state.ZReportOptions; | |
import ru.evotor.framework.receipt.PrintableReceipt; | |
interface IKKMRemoteDriver { | |
Result printString(in String string); | |
Result setTime(long time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.evotor.drivers.kkm; | |
import ru.evotor.devices.commons.kkm_state.KKMStatus; | |
import ru.evotor.devices.commons.kkm_state.Result; | |
import ru.evotor.devices.commons.kkm_state.ZReportOptions; | |
import ru.evotor.framework.receipt.PrintableReceipt; | |
interface IKKMRemoteDriver { | |
Result printString(in String string); | |
Result setTime(long time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.evotor.kkm_client; | |
import ru.evotor.devices.commons.kkm_state.KKMStatus; | |
import ru.evotor.devices.commons.kkm_state.ZReportOptions; | |
import ru.evotor.framework.receipt.PrintableReceipt; | |
import ru.evotor.kkm_client.IKKMCallback; | |
interface IKKMRemoteService { | |
void attachCallback(String operationUuid, in IKKMCallback callback); | |
ParcelUuid getCurrentStatus(in IKKMCallback callback); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PayInfo implements Parcelable { | |
// цена | |
private final BigDecimal price; | |
public PayInfo(BigDecimal price) { | |
this.price = price; | |
} | |
private PayInfo(Parcel parcel) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IKKMRemoteDriver { | |
void printString(in String string); | |
void setTime(long time); | |
long getTime(); | |
KKMStatus getCurrentStatus(); | |
ReceiptResult printSellReceipt(in PrintableReceipt receipt); | |
int getTableIntegerField(int table, int row, int field); | |
void writeTableIntegerField(int table, int row, int field, int value); | |
String getTableStringField(int table, int row, int field); | |
void writeTableStringField(int table, int row, int field, in String value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
04-02 16:09:19.913 1672-1678/? I/PerfService: PerfServiceNative_getPackName | |
04-02 16:09:19.914 681-1455/? I/libPerfService: perfGetLastBoostPid 2366 | |
04-02 16:09:19.914 681-1455/? D/PerfServiceManager: [PerfService] getLastBoostPid 2366 | |
04-02 16:09:19.914 681-1455/? I/libPerfService: perfGetLastBoostPid 2366 | |
04-02 16:09:20.252 681-880/? D/WifiStateMachine: ConnectedState (when=-4ms what=131155 arg1=1!CMD_RSSI_POLL rt=1158777/1158777 1 0 "EvotorHack" 00:f6:63:d7:8f:d1 rssi=-51 f=2412 sc=60 link=65 tx=51,3, 0,0, 0,0 rx=61,2 bcn=0 [on:0 tx:0 rx:0 period:3003] from screen [on:0 period:-2038829828] gl hn rssi=-46 ag=0 hr ticks 0,0,0 ls-=0 [56,56,60,60,65] brc=0 lrc=0 offload-stopped | |
04-02 16:09:20.256 681-880/? D/WifiStateMachine: L2ConnectedState (when=-6ms what=131155 arg1=1!CMD_RSSI_POLL rt=1158779/1158779 1 0 "EvotorHack" 00:f6:63:d7:8f:d1 rssi=-51 f=2412 sc=60 link=65 tx=51,3, 0,0, 0,0 rx=61,2 bcn=0 [on:0 tx:0 rx:0 period:4] from screen [on:0 period:-2038829824] gl hn rssi=-46 ag=0 hr ticks 0,0,0 ls-=0 |