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.
48 lines (36 loc) • 1.62 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 UserRewards extends jspb.Message {
getId(): number;
setId(value: number): UserRewards;
getRewardId(): number;
setRewardId(value: number): UserRewards;
getUserId(): string;
setUserId(value: string): UserRewards;
getClaimed(): boolean;
setClaimed(value: boolean): UserRewards;
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserRewards;
hasCreatedAt(): boolean;
clearCreatedAt(): UserRewards;
getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): UserRewards;
hasUpdatedAt(): boolean;
clearUpdatedAt(): UserRewards;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserRewards.AsObject;
static toObject(includeInstance: boolean, msg: UserRewards): UserRewards.AsObject;
static serializeBinaryToWriter(message: UserRewards, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UserRewards;
static deserializeBinaryFromReader(message: UserRewards, reader: jspb.BinaryReader): UserRewards;
}
export namespace UserRewards {
export type AsObject = {
id: number,
rewardId: number,
userId: string,
claimed: boolean,
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
}
}