;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\207" [require sx-method sx-cache sx-site sx-networks sx-filter] 2) (defconst sx-favorite-list-filter '((question\.question_id \.backoff \.error_id \.error_message \.error_name \.has_more \.items \.page \.page_size \.quota_max \.quota_remaining) nil nil)) #@156 Alist of questions favorited by the user. Each element has the form (SITE FAVORITE-LIST). And each element in FAVORITE-LIST is the numerical QUESTION_ID. (defvar sx-favorites--user-favorite-list nil (#$ . 417)) #@80 Ensure question-favorites cache is available. Added as hook to initialization. (defalias 'sx-favorites--initialize #[0 "\301\302!\211\206\n\303 \207" [sx-favorites--user-favorite-list sx-cache-get question-favorites sx-favorites-update] 2 (#$ . 635)]) #@58 Obtain list of starred QUESTION_IDs for SITE. (fn SITE) (defalias 'sx-favorites--retrieve-favorites #[257 "\301\302\303\304\305\306\307\310& \207" [sx-favorite-list-filter sx-method-call me :submethod favorites :site :filter :auth t] 11 (#$ . 895)]) #@99 Update list of starred QUESTION_IDs for SITE. Writes list to cache QUESTION-FAVORITES. (fn SITE) (defalias 'sx-favorites--update-site-favorites #[257 "\301!\302\"\303\304\"\203\241\210\202BB\305\306\"\207" [sx-favorites--user-favorite-list sx-favorites--retrieve-favorites assoc mapcar cdar sx-cache-set question-favorites] 7 (#$ . 1154)]) #@59 Update all sites retrieved from `sx-network--user-sites'. (defalias 'sx-favorites-update #[0 "\301\302\"\207" [sx-network--user-sites mapc sx-favorites--update-site-favorites] 3 (#$ . 1517)]) (provide 'sx-favorites)