SendCommand(string type, string command, arraylist params)

Xlobby plugin development

SendCommand(string type, string command, arraylist params)

Postby S Pittaway on Wed Oct 18, 2006 8:14 am

Sorry if i am thick... :)

how do i use this? i want to sort music via a plugin?

i cant seam to get this to work, tried the obvious stuff like

ArrayList Params = new ArrayList();
Params.Add("set sort order");
Params.Add("music");
Params.Add("artist");
Params.Add("albumname");
Params.Add("tracknumber");
Params.Add("trackname");
m_Helper.SendCommand("command", "category", Params);


ArrayList Params = new ArrayList();
Params.Add("music");
Params.Add("artist");
Params.Add("albumname");
Params.Add("tracknumber");
Params.Add("trackname");
m_Helper.SendCommand("command", "category:set sort order", Params);
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Postby m_ski on Wed Oct 18, 2006 11:14 am

Haven't done this myself but maybe...

Code: Select all
ArrayList Params = new ArrayList();
Params.Add("set sort order");
Params.Add("music");
Params.Add("artist:albumname:tracknumber:trackname");
m_Helper.SendCommand("command", "category", Params);


I think the sortorder string probably wants to be a single string.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby S Pittaway on Wed Oct 18, 2006 12:13 pm

it should be

Params.Add("music");
Params.Add("artist.sort");
Params.Add("albumname.sort");
Params.Add("tracknumber");
Params.Add("albumartist.sort");
Params.Add("trackname");
Params.Add("trackfilename");
m_Helper.SendCommand("category", "set sort order", Params);
S Pittaway
 
Posts: 651
Joined: Wed Jan 25, 2006 11:08 am
Location: Manchester, England

Postby P3rv3rt B3ar on Wed Oct 18, 2006 12:52 pm

this is something which im saying just from intuituition, so it might be very well wrong... but i dont think that in that form of sendcommand u actually put literal string "command" explisitly at all, i believe its omitted... and implisitly asumed.
P3rv3rt B3ar
 
Posts: 1364
Joined: Fri Apr 07, 2006 9:52 pm
Location: West Coast Funland