Commit Graph

5 Commits

Author SHA1 Message Date
Anna Schumaker 1e767dbfe9 Implement a single fetch_info() function
This already existed, so I just had to define the api calls to use.
Unfortunately, groups return a similar group object so I also have to
define what return object needs to be looked up.  Additionally, IMs have
an extra "return_im" object that needs to be passed to get the full
channel info.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 10:18:16 -05:00
Anna Schumaker 53d9aa4e3d Implement a single mark_messages() function
Rather than having each thread type define its own mark method, let's
instead have them tell us what api call to use to avoid duplicating
work.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 09:18:29 -05:00
Anna Schumaker f517f8c391 Implement a single fetch_messages() function
Rather than having each thread type define its own fetch history method,
let's instead have them tell us what api call to use to avoid
duplicating work

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-11-22 08:47:03 -05:00
Anna Schumaker ca89d98e3a Add support for reading messages through the Thread class
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-09 10:22:58 -04:00
Anna Schumaker 6859f8c3ec Add Group class
And pull more things out of the Channel class and into the Thread class.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-09 09:57:25 -04:00