Add crc to responsebody

This commit is contained in:
Merijn Hendriks 2021-12-28 19:38:58 +01:00
parent b55c865715
commit 911b96997e

View File

@ -3,12 +3,14 @@ export class ResponseBody<T>
public err: number; public err: number;
public errcode: string | null; public errcode: string | null;
public data: T; public data: T;
public crc: number;
public constructor(data: T, err: number = 0, errcode: string | null = null) public constructor(data: T, crc: number = 0, err: number = 0, errcode: string | null = null)
{ {
this.err = err; this.err = err;
this.errcode = errcode; this.errcode = errcode;
this.data = data; this.data = data;
this.crc = crc;
} }
} }