FoolFuuka/Asagi

From Bibliotheca Anonoma
Revision as of 07:16, 19 August 2019 by Antonizoon (talk | contribs) (Created page with "How asagi does stuff When asagi does a thread update: in : YotsubaJSON.java, ln. 88: `public Topic getThread(int threadNum, String lastMod) throws ContentGetException, Cont...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How asagi does stuff

When asagi does a thread update:

in : YotsubaJSON.java, ln. 88:

`public Topic getThread(int threadNum, String lastMod) throws ContentGetException, ContentParseException, CfBicClearParseException {`

Loads thread JSON

Decodes JSON

For each post in the decoded thread JSON:

Check if resto value is zero, and if so create a new thread from that post, updating lastmodified time to the time from fetching the JSON. `t = this.makeThreadFromJson(pj);`

If resto is zero: Add the post to the current thread.

`t.addPost(this.makePostFromJson(pj));` (What if two posts were resto==0? We’d break!)