?

Log in

No account? Create an account
current mood & icons - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

current mood & icons [Dec. 9th, 2002|10:10 pm]
LiveJournal Client Discussions

lj_clients

[anam_uk]
Apologies if I've missed this in the docs.
I'm writing a lightweight command line client (well thats what it is at the moment) and I'm having a little trouble with the current_mood setting, if I pass a recognised mood such as thoughtful it appears in the journal without an icon.If however I edit the journal & make no changes then the icon appears. I assume this is to do with current_mood_id, if this is the case is there a text file of mood->id mapping ? If its not where do I look ?
linkReply

Comments:
[User Picture]From: youngoat
2002-12-09 10:31 am (UTC)

Mood list

You have to log in and send getmoods=1.
(Reply) (Thread)
[User Picture]From: phil99
2002-12-09 01:16 pm (UTC)

Re: Mood list

When you log in with "getmoods" the server sends back a list:
mood_1_id / 1
mood_1_name / bored

Argh, it's been ages since I played with this, I think that's roughly accurate. You then have to map it yourself.
(Reply) (Parent) (Thread)
[User Picture]From: xb95
2002-12-11 06:41 am (UTC)

Re: Mood list

Right. Then, when someone types "thoughtful", you send back "thoughtful" plus the ID for that particular mood.
(Reply) (Parent) (Thread)
[User Picture]From: phil99
2002-12-14 02:02 pm (UTC)

Re: Mood list

Don't you you only need to send MoodID? If you're sending something in the big list, you send the ID, if not in the list, the text. Though I guess sending both won't hurt.
(Reply) (Parent) (Thread)
[User Picture]From: xb95
2002-12-14 02:05 pm (UTC)

Re: Mood list

I honestly don't know. I always send both. I guess that it could operate on id alone, but I don't know.
(Reply) (Parent) (Thread)