UNPKG

883 BTypeScriptView Raw
1import { IBetMatch, BasketballMatchImpl, BasketballEventState, PartitionKey } from '@jayesol/jayeson.lib.record';
2import * as proto from './protobuf_bundle';
3import { ICodec, EncodeAction, CodecHelper } from './codec';
4export declare class BasketballCodec implements ICodec {
5 private codecHelper;
6 constructor(codecHelper?: CodecHelper);
7 decodeMatch(input: proto.BaseMatch[], pool: string[], action: EncodeAction, key: PartitionKey): BasketballMatchImpl[];
8 decodeEvent(input: proto.BaseEvent[], pool: string[], action: EncodeAction, key: PartitionKey): IBetMatch[];
9 decodeRecord(input: proto.BaseRecord[], pool: string[], action: EncodeAction, key: PartitionKey): BasketballMatchImpl[];
10 decodeState(matchId: string, eventId: string, state: proto.IBaseEventState, pool: string[], action: EncodeAction, key: PartitionKey, time?: number): BasketballEventState;
11}