UNPKG

855 BTypeScriptView Raw
1import * as rec from "@jayesol/jayeson.lib.record";
2import * as proto from "./protobuf_bundle";
3import { ICodec, EncodeAction } from "./codec";
4export declare class TennisCodec implements ICodec {
5 private codecHelper;
6 constructor();
7 private getMatch;
8 private getEvent;
9 decodeMatch(input: proto.BaseMatch[], pool: string[], action: EncodeAction, key: rec.PartitionKey): rec.IBetMatch[];
10 decodeEvent(input: proto.BaseEvent[], pool: string[], action: EncodeAction, partition: rec.PartitionKey): rec.IBetMatch[];
11 decodeRecord(input: proto.BaseRecord[], pool: string[], action: EncodeAction, partition: rec.PartitionKey): rec.IBetMatch[];
12 decodeState(matchId: string, eventId: string, input: proto.IBaseEventState, pool: string[], action: EncodeAction, partition: rec.PartitionKey, createTime?: number): rec.TennisEventState;
13}