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
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: SignatureREQUIRED.
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: UserIDuser_id may be unspecified if it can be inferred from context. (ex: in an ItemList which lists posts for a specific userID)
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