ExWapp.AppState.Engine (ExWapp v0.1.2)

Copy Markdown View Source

Public façade for WhatsApp app-state sync.

This module is the stable entry point; the work lives in five modules, each with one reason to change:

Reference: whatsmeow appstate/encode.go, appstate/decode.go, appstate.go.

The types for the shapes crossing this boundary (patch_info, mutation_info, hash_state, decoded_mutation) are declared where they are produced, in Builders and Codec.

Summary

Functions

Functions

all_collections()

See ExWapp.AppState.Engine.State.all_collections/0.

apply_collection_response(store, collection_name, response)

See ExWapp.AppState.Engine.Sync.apply_collection_response/3.

apply_collection_response(store, collection_name, response, session)

See ExWapp.AppState.Engine.Sync.apply_collection_response/4.

apply_collection_response(store, collection_name, response, session, opts)

See ExWapp.AppState.Engine.Sync.apply_collection_response/5.

apply_outgoing_patch(store, patch_info)

See ExWapp.AppState.Engine.Dispatch.apply_outgoing_patch/2.

apply_outgoing_patch(store, patch_info, opts)

See ExWapp.AppState.Engine.Dispatch.apply_outgoing_patch/3.

build_archive(jid, archived)

See ExWapp.AppState.Engine.Builders.build_archive/2.

build_archive(jid, archived, last_msg_ts)

See ExWapp.AppState.Engine.Builders.build_archive/3.

build_clear_chat(jid)

See ExWapp.AppState.Engine.Builders.build_clear_chat/1.

build_clear_chat(jid, last_msg_ts)

See ExWapp.AppState.Engine.Builders.build_clear_chat/2.

build_contact(jid, full_name)

See ExWapp.AppState.Engine.Builders.build_contact/2.

build_contact(jid, full_name, first_name)

See ExWapp.AppState.Engine.Builders.build_contact/3.

build_delete_chat(jid)

See ExWapp.AppState.Engine.Builders.build_delete_chat/1.

build_delete_chat(jid, last_msg_ts)

See ExWapp.AppState.Engine.Builders.build_delete_chat/2.

build_delete_contact(jid)

See ExWapp.AppState.Engine.Builders.build_delete_contact/1.

build_mark_read(jid, read)

See ExWapp.AppState.Engine.Builders.build_mark_read/2.

build_mark_read(jid, read, last_msg_ts)

See ExWapp.AppState.Engine.Builders.build_mark_read/3.

build_mute(jid, muted)

See ExWapp.AppState.Engine.Builders.build_mute/2.

build_mute(jid, muted, mute_end_timestamp)

See ExWapp.AppState.Engine.Builders.build_mute/3.

build_pin(jid, pinned)

See ExWapp.AppState.Engine.Builders.build_pin/2.

decode_mutations(mutations, key_store)

See ExWapp.AppState.Engine.Codec.decode_mutations/2.

decode_mutations(mutations, key_store, validate_macs)

See ExWapp.AppState.Engine.Codec.decode_mutations/3.

decode_patch(patch, collection_name, hash_state, mutation_macs, key_store)

See ExWapp.AppState.Engine.Codec.decode_patch/5.

decode_patch(patch, collection_name, hash_state, mutation_macs, key_store, validate_macs)

See ExWapp.AppState.Engine.Codec.decode_patch/6.

dispatch_mutation(store, index, action_value)

See ExWapp.AppState.Engine.Dispatch.dispatch_mutation/3.

dispatch_mutation(store, operation, index, action_value)

See ExWapp.AppState.Engine.Dispatch.dispatch_mutation/4.

dispatch_mutation(store, operation, index, action_value, opts)

See ExWapp.AppState.Engine.Dispatch.dispatch_mutation/5.

encode_patch(patch_info, key_id, key_data, hash_state)

See ExWapp.AppState.Engine.Codec.encode_patch/4.

encode_patch(patch_info, key_id, key_data, hash_state, mutation_macs)

See ExWapp.AppState.Engine.Codec.encode_patch/5.

fetch_collection(session, store, collection_name)

See ExWapp.AppState.Engine.Sync.fetch_collection/3.

fetch_collection(session, store, collection_name, opts)

See ExWapp.AppState.Engine.Sync.fetch_collection/4.

get_collection_state(store, collection_name)

See ExWapp.AppState.Engine.State.get_collection_state/2.

persist_collection_state(store, collection_name, hash_state, mutation_macs)

See ExWapp.AppState.Engine.State.persist_collection_state/4.

reset_collection_state(store, collection_name)

See ExWapp.AppState.Engine.State.reset_collection_state/2.

send_mutation(session, patch_info, store)

See ExWapp.AppState.Engine.Sync.send_mutation/3.

send_mutation(session, patch_info, store, opts)

See ExWapp.AppState.Engine.Sync.send_mutation/4.