{"version":3,"file":"Read_VideoSourceState.cjs","names":["Request"],"sources":["../../generated/api/Read_VideoSourceState.ts"],"sourcesContent":["import { Packet, Request, Session } from '@novastar/codec';\nimport AddressMapping from '../AddressMapping';\n\ndeclare module '@novastar/codec' {\n  interface API {\n    Read_VideoSourceState(addr: number): Promise<Buffer>;\n    tryRead_VideoSourceState(addr: number): Promise<Packet | null>;\n  }\n}\nexport default function createRead_VideoSourceState(addr: number): Request {\n  const req = new Request(AddressMapping.Sender_VideoSourceStateOccupancy, 'Read_VideoSourceState');\n  req.destination = addr;\n  req.address = AddressMapping.Sender_VideoSourceStateAddr;\n  return req;\n}\nSession.prototype.Read_VideoSourceState = async function Read_VideoSourceState(\n  this: Session,\n  addr: number\n): Promise<Buffer> {\n  const req = createRead_VideoSourceState(addr);\n  return (await this.connection.send(req)).data;\n};\nSession.prototype.tryRead_VideoSourceState = async function tryRead_VideoSourceState(\n  this: Session,\n  addr: number\n): Promise<Packet | null> {\n  const req = createRead_VideoSourceState(addr);\n  return this.connection.trySend(req);\n};\n"],"mappings":";;;;;AASA,SAAwB,4BAA4B,MAAuB;CACzE,MAAM,MAAM,IAAIA,4BAAyD,uBAAuB;CAChG,IAAI,cAAc;CAClB,IAAI;CACJ,OAAO;AACT;AACA,wBAAQ,UAAU,wBAAwB,eAAe,sBAEvD,MACiB;CACjB,MAAM,MAAM,4BAA4B,IAAI;CAC5C,QAAQ,MAAM,KAAK,WAAW,KAAK,GAAG,GAAG;AAC3C;AACA,wBAAQ,UAAU,2BAA2B,eAAe,yBAE1D,MACwB;CACxB,MAAM,MAAM,4BAA4B,IAAI;CAC5C,OAAO,KAAK,WAAW,QAAQ,GAAG;AACpC"}