Skip to main content
Module

x/feoblog_client/mod.ts>protobuf.ItemListEntry

a JavaScript client for feoblog written for Deno
Latest
class protobuf.ItemListEntry
extends Message<ItemListEntry>
import { protobuf } from "https://deno.land/x/feoblog_client@v0.7.0/mod.ts";
const { ItemListEntry } = protobuf;

The unique ID of an item is its (user_id,signature) This type encapsulates that, plus some additional metadata which

Constructors

new
ItemListEntry(data?: PartialMessage<ItemListEntry>)

Properties

itemType

Specify the type of this item. This allows clients to skip fetching item types they're not interested in for a particular view. (ex: profile updates and/or comments, etc.)

optional
signature: Signature

REQUIRED.

timestampMsUtc

REQUIRED The timestamp coantained within Item.timestamp_ms_utc. This is used for ordering Items, and to fetch more ItemIDs in the event that this list is truncated/incomplete.

optional
userId: UserID

user_id may be unspecified if it can be inferred from context. (ex: in an ItemList which lists posts for a specific userID)

Static Properties

readonly
fields: FieldList
readonly
runtime
readonly
typeName: string

Static Methods

equals(a: ItemListEntry | PlainMessage<ItemListEntry> | undefined, b: ItemListEntry | PlainMessage<ItemListEntry> | undefined): boolean
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ItemListEntry
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ItemListEntry
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ItemListEntry