title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
||||||||||||||||||||||||||||||||
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|||||||||||||||||||||||||||||||||
x
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
|||||||||||||||||||||||||||||||||
Tuesday, February 28, 2017 | |||||||||||||||||||||||||||||||||
Have you ever tried to use QuickBlox to add chat to your products? Were you surprised that message objects returned from different API calls could have wildly different object models? Boy, I sure was. And it surprised me enough, I figured I'd blog about it. Because that's what tech bloggers do. Here's one message I received from a
And now here's a different message pulled in from an event handler listening to (Aside: Looking back, I really enjoy how much time I see I put into making sure the message bodies reflect real-world message contents.)
Huh? Let's see if we can match any of these up to close relatives...
What is the world is going on there? I've taken to wrapping QB with a QB Extensions singleton of a ton of convenience classes to access dialogs and messages, and those convenience methods add properties to make sure the objects map up a little better, so I'm adding stuff like...
I'm not super happy with all these kludges, but it makes accessing and displaying objects downstream a lot DRYer. (Note: Dialogs are similarly variable in their object models, depending on where you get them from. /sigh) Labels: javascript, OMs, quickblox posted by ruffin at 2/28/2017 04:33:00 PM |
|||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
All posts can be accessed here: Just the last year o' posts: |
||||||||||||||||||||||
|