echofi-client
Version:
A comprehensive TypeScript/JavaScript client library for EchoFi services with automatic gRPC-Web code generation, unified service access, and real-time WebSocket communication.
46 lines (34 loc) • 1.61 kB
TypeScript
import * as jspb from 'google-protobuf'
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
export class UserStatistics extends jspb.Message {
getUserId(): string;
setUserId(value: string): UserStatistics;
getTotalPoints(): number;
setTotalPoints(value: number): UserStatistics;
getTotalListeningSeconds(): number;
setTotalListeningSeconds(value: number): UserStatistics;
getUniqueSongsPlayed(): number;
setUniqueSongsPlayed(value: number): UserStatistics;
getTotalPlays(): number;
setTotalPlays(value: number): UserStatistics;
getLastCalculated(): google_protobuf_timestamp_pb.Timestamp | undefined;
setLastCalculated(value?: google_protobuf_timestamp_pb.Timestamp): UserStatistics;
hasLastCalculated(): boolean;
clearLastCalculated(): UserStatistics;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserStatistics.AsObject;
static toObject(includeInstance: boolean, msg: UserStatistics): UserStatistics.AsObject;
static serializeBinaryToWriter(message: UserStatistics, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UserStatistics;
static deserializeBinaryFromReader(message: UserStatistics, reader: jspb.BinaryReader): UserStatistics;
}
export namespace UserStatistics {
export type AsObject = {
userId: string,
totalPoints: number,
totalListeningSeconds: number,
uniqueSongsPlayed: number,
totalPlays: number,
lastCalculated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}