{"version":3,"file":"ReadSender_AuthorizeTime.mjs","names":[],"sources":["../../generated/api/ReadSender_AuthorizeTime.ts"],"sourcesContent":["import { decodeUIntLE, Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    ReadSender_AuthorizeTime(addr: number): Promise<number>;\n    tryReadSender_AuthorizeTime(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createReadSender_AuthorizeTime(addr: number): Request {\n  const req = new Request(AddressMapping.Sender_AuthorizeTimeOccupancy, 'ReadSender_AuthorizeTime');\n  req.destination = addr;\n  req.address = AddressMapping.Sender_AuthorizeTimeAddr;\n  return req;\n}\nSession.prototype.ReadSender_AuthorizeTime = async function ReadSender_AuthorizeTime(\n  this: Session,\n  addr: number\n): Promise<number> {\n  const req = createReadSender_AuthorizeTime(addr);\n  return decodeUIntLE(await this.connection.send(req));\n};\nSession.prototype.tryReadSender_AuthorizeTime = async function tryReadSender_AuthorizeTime(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createReadSender_AuthorizeTime(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;AASA,SAAwB,+BAA+B,MAAuB;CAC5E,MAAM,MAAM,IAAI,WAAsD,0BAA0B;CAChG,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,QAAQ,UAAU,2BAA2B,eAAe,yBAE1D,MACiB;CACjB,MAAM,MAAM,+BAA+B,IAAI;CAC/C,OAAO,aAAa,MAAM,KAAK,WAAW,KAAK,GAAG,CAAC;AACrD;AACA,QAAQ,UAAU,8BAA8B,eAAe,4BAE7D,MACwB;CACxB,MAAM,MAAM,+BAA+B,IAAI;CAC/C,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}